FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

commit tester · attackgithub/DllToShellCode@2c9875b · GitHub

Commit 2c9875b

Browse files
killeven
committed
commit tester
1 parent 64699a3 commit 2c9875b

7 files changed

Lines changed: 192 additions & 0 deletions

‎Tester/gen.bat‎

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
del aplib_x86.bin
2+
del ntdll_x86.bin
3+
del main_x86.bin
4+
del aplib_x86.h
5+
del ntdll_x86.h
6+
del main_x86.h
7+
del TestDll_aplib.dll
8+
del TestDll_nt.dll
9+
ShellCode_Aplib.exe
10+
ShellCode_Ntdll.exe
11+
ShellCode_Main.exe
12+
DllToShellCode.exe c 1 TestDll.dll TestDll_nt.dll
13+
DllToShellCode.exe c 2 TestDll.dll TestDll_aplib.dll
14+
DllToShellCode.exe b aplib_x86.bin aplib_x86.h
15+
DllToShellCode.exe b ntdll_x86.bin ntdll_x86.h
16+
DllToShellCode.exe b main_x86.bin main_x86.h
17+
fasm tester_main_mode1.asm
18+
fasm tester_main_mode2.asm
19+
fasm tester_aplib_mode1.asm
20+
fasm tester_aplib_mode2.asm
21+
fasm tester_nt_mode1.asm
22+
fasm tester_nt_mode2.asm
23+
@pause

‎Tester/tester_aplib_mode1.asm‎

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
format PE
2+
3+
entry start
4+
5+
section '.text' code readable executable
6+
7+
tester:
8+
file 'main_x86.bin'
9+
10+
param_data:
11+
invokeMode db 0
12+
depackCodeOffset dd aplib_unpack_code - param_data
13+
unpackSize dd 179712
14+
packedSize dd dll_data_end - dll_data_start
15+
dllDataOffset dd dll_data_start - param_data
16+
param db 'Tester'
17+
reserved rb 100 - 6
18+
19+
start:
20+
call tester
21+
ret
22+
23+
aplib_unpack_code:
24+
file 'aplib_x86.bin'
25+
26+
dll_data_start:
27+
file 'TestDll_aplib.dll'
28+
29+
dll_data_end:

‎Tester/tester_aplib_mode2.asm‎

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
format PE
2+
3+
entry start
4+
5+
section '.text' code readable executable
6+
7+
tester:
8+
file 'main_x86.bin'
9+
10+
param_data:
11+
invokeMode db 1
12+
depackCodeOffset dd aplib_unpack_code - param_data
13+
unpackSize dd 179712
14+
packedSize dd dll_data_end - dll_data_start
15+
dllDataOffset dd dll_data_start - param_data
16+
param db 'Test'
17+
reserved rb 100 - 4
18+
19+
start:
20+
call tester
21+
call eax
22+
ret
23+
24+
aplib_unpack_code:
25+
file 'aplib_x86.bin'
26+
27+
dll_data_start:
28+
file 'TestDll_aplib.dll'
29+
30+
dll_data_end:

‎Tester/tester_main_mode1.asm‎

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
format PE
2+
3+
entry start
4+
5+
section '.text' code readable executable
6+
7+
tester:
8+
file 'main_x86.bin'
9+
10+
param_data:
11+
invokeMode db 0
12+
depackCodeOffset dd 0
13+
unpackSize dd dll_data_end - dll_data_start
14+
packedSize dd dll_data_end - dll_data_start
15+
dllDataOffset dd dll_data_start - param_data
16+
param db 'Tester'
17+
reserved rb 100 - 6
18+
19+
start:
20+
call tester
21+
ret
22+
dll_data_start:
23+
file 'TestDll.dll'
24+
25+
dll_data_end:

‎Tester/tester_main_mode2.asm‎

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
format PE
2+
3+
entry start
4+
5+
section '.text' code readable executable
6+
7+
tester:
8+
file 'main_x86.bin'
9+
10+
param_data:
11+
invokeMode db 1
12+
depackCodeOffset dd 0
13+
unpackSize dd dll_data_end - dll_data_start
14+
packedSize dd dll_data_end - dll_data_start
15+
dllDataOffset dd dll_data_start - param_data
16+
param db 'Test'
17+
reserved rb 100 - 4
18+
19+
start:
20+
call tester
21+
call eax
22+
ret
23+
dll_data_start:
24+
file 'TestDll.dll'
25+
26+
dll_data_end:

‎Tester/tester_nt_mode1.asm‎

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
format PE
2+
3+
entry start
4+
5+
section '.text' code readable executable
6+
7+
tester:
8+
file 'main_x86.bin'
9+
10+
param_data:
11+
invokeMode db 0
12+
depackCodeOffset dd nt_unpack_code - param_data
13+
unpackSize dd 179712
14+
packedSize dd dll_data_end - dll_data_start
15+
dllDataOffset dd dll_data_start - param_data
16+
param db 'Tester'
17+
reserved rb 100 - 6
18+
19+
start:
20+
call tester
21+
ret
22+
23+
nt_unpack_code:
24+
file 'ntdll_x86.bin'
25+
26+
dll_data_start:
27+
file 'TestDll_nt.dll'
28+
29+
dll_data_end:

‎Tester/tester_nt_mode2.asm‎

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
format PE
2+
3+
entry start
4+
5+
section '.text' code readable executable
6+
7+
tester:
8+
file 'main_x86.bin'
9+
10+
param_data:
11+
invokeMode db 1
12+
depackCodeOffset dd nt_unpack_code - param_data
13+
unpackSize dd 179712
14+
packedSize dd dll_data_end - dll_data_start
15+
dllDataOffset dd dll_data_start - param_data
16+
param db 'Test'
17+
reserved rb 100 - 4
18+
19+
start:
20+
call tester
21+
call eax
22+
ret
23+
24+
nt_unpack_code:
25+
file 'ntdll_x86.bin'
26+
27+
dll_data_start:
28+
file 'TestDll_nt.dll'
29+
30+
dll_data_end:

0 commit comments

Comments
 (0)

Back | FazBrowse Home | New Git URL