mirror of
https://github.com/thomasxm/amber
synced 2026-06-08 17:46:04 +00:00
File names changed
This commit is contained in:
@@ -34,7 +34,7 @@ IAT_API: ;
|
||||
jz OpEnd ; If VirtualAlloc fails don't bother :/
|
||||
push eax ; Save the new base address to stack
|
||||
call GetAOE ; Get the AOE and image base
|
||||
%include "Relocate.asm" ; Make image base relocation
|
||||
%include "relocate.asm" ; Make image base relocation
|
||||
%include "BuildImportTable.asm" ; Call the module responsible for building the import address table
|
||||
xor ecx,ecx ; Zero out the ECX
|
||||
call GetAOE ; Get image base and AOE
|
||||
@@ -17,7 +17,7 @@
|
||||
|
||||
cld ; Clear out direction flags
|
||||
call Start ; Start OP
|
||||
%include "HASH-API.asm" ; hash_api
|
||||
%include "block_api.asm" ; block_api
|
||||
GetAOE:
|
||||
mov eax,[esi+0x3C] ; Get the offset of "PE" to eax
|
||||
mov ebx,[eax+esi+0x34] ; Get the image base address to ebx
|
||||
@@ -42,7 +42,7 @@ Stub:
|
||||
jz OpEnd ; If VirtualAlloc fails don't bother :/
|
||||
push eax ; Save the new base address to stack
|
||||
call GetAOE ; Get the AOE and image base
|
||||
%include "Relocate.asm" ; Make image base relocation
|
||||
%include "relocate.asm" ; Make image base relocation
|
||||
%include "BuildImportTable.asm" ; Call the module responsible for building the import address table
|
||||
xor ecx,ecx ; Zero out the ECX
|
||||
call GetAOE ; Get image base and AOE
|
||||
@@ -9,7 +9,7 @@
|
||||
|
||||
cld
|
||||
call Start
|
||||
%include "HASH-API.asm"
|
||||
%include "block_api.asm"
|
||||
GetAOE:
|
||||
mov eax,[esi+0x3C] ; Get the offset of "PE" to eax
|
||||
mov ebx,[eax+esi+0x34] ; Get the image base address to ebx
|
||||
+2
-2
@@ -30,7 +30,7 @@ func assemble() {
|
||||
Cdir("/usr/share/Amber/core/Fixed/iat")
|
||||
}
|
||||
progress()
|
||||
nasm, Err := exec.Command("nasm","-f","bin","Stub.asm","-o","/usr/share/Amber/Payload").Output()
|
||||
nasm, Err := exec.Command("nasm","-f","bin","stub.asm","-o","/usr/share/Amber/Payload").Output()
|
||||
ParseError(Err,"While assembling payload :(",string(nasm))
|
||||
progress()
|
||||
} else {
|
||||
@@ -45,7 +45,7 @@ func assemble() {
|
||||
Cdir("/usr/share/Amber/core/ASLR/iat/")
|
||||
}
|
||||
progress()
|
||||
nasm, Err := exec.Command("nasm","-f","bin","Stub.asm","-o","/usr/share/Amber/Payload").Output()
|
||||
nasm, Err := exec.Command("nasm","-f","bin","stub.asm","-o","/usr/share/Amber/Payload").Output()
|
||||
ParseError(Err,"While assembling payload :(",string(nasm))
|
||||
progress()
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user