Skip to content

Commit c60d82c

Browse files
author
Josh Lospinoso
committed
Fixing trampoline name
1 parent 569d7a2 commit c60d82c

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

setup.nasm

+3-3
Original file line numberDiff line numberDiff line change
@@ -15,13 +15,13 @@ STRUC Configuration
1515
.gadget: RESD 1
1616
.shadow: RESD 2
1717
.stack: RESB 0x10000
18-
.cast: RESD 9
18+
.trampoline: RESD 9
1919
ENDSTRUC
2020

2121
; Call me like void (*__cdecl callable)(void* workspace);
2222

2323
mov ebx, [esp+4] ; Configuration in ebx now
24-
lea esp, [ebx + Configuration.cast - 4] ; Bottom of "stack"
24+
lea esp, [ebx + Configuration.trampoline - 4] ; Bottom of "stack"
2525
mov ebp, esp
2626
mov edx, [ebx + Configuration.initialized]
2727

@@ -58,7 +58,7 @@ ENDSTRUC
5858
; Replace the return address on our trampoline
5959
reset_trampoline:
6060
mov ecx, [ebx + Configuration.VirtualProtectEx]
61-
mov [ebx + Configuration.cast], ecx
61+
mov [ebx + Configuration.trampoline], ecx
6262

6363
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
6464
;;;; Arbitrary code goes here. Note that the

0 commit comments

Comments
 (0)