Skip to content

Commit 6140789

Browse files
authored
Update 2024-11-1-x64 Assembly & Shellcoding 101.md
1 parent 6ebbb34 commit 6140789

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

_posts/2024-11-1-x64 Assembly & Shellcoding 101.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -178,7 +178,7 @@ and rsp, 0xFFFFFFFFFFFFFFF0
178178
xor rcx, rcx ;RCX = 0
179179
mov rax, [gs:rcx + 0x60] ;RAX = PEB
180180
mov rax, [rax + 0x18] ;RAX = PEB / Ldr
181-
mov rsi,[rax+0x10] ;PEB_Ldr / InMemOrderModuleList
181+
mov rsi,[rax+0x10] ;PEB_Ldr / InLoadOrderModuleList
182182
mov rsi, [rsi] ;could substitute lodsq here instead if you like
183183
mov rsi,[rsi] ;also could substitute lodsq here too
184184
mov rbx, [rsi+0x30] ;kernel32.dll base address
@@ -196,7 +196,7 @@ Now that we have our kernel32 base address, let's go ahead and get our total fun
196196
mov ebx, [rbx+0x3C] ; Get Kernel32 PE Signature (0x3C) into EBX
197197
add rbx, r8 ; signature offset
198198
mov edx, [rbx+0x88] ; PE32 Signature / Export Address Table
199-
add rdx, r8 ; kernel32.dll & RVA ExportTable = ExportTable Address
199+
add rdx, r8 ; kernel32.dll + RVA ExportTable = ExportTable Address
200200
mov r10d, [rdx+0x14] ; Total count for number of functions
201201
xor r11, r11 ; clear R11
202202
mov r11d, [rdx+0x20] ; AddressOfNames = RVA

0 commit comments

Comments
 (0)