Skip to content

Instantly share code, notes, and snippets.

View Pratik151's full-sized avatar

Pratik Patel Pratik151

  • Hyderabad, India.
View GitHub Profile
push 0x77209850 ;ExitProcess Address
xor ecx,ecx
push ecx ; Stack -> [0, Exit()]
push 0x7478742e ;Stack -> [".txt", 0, Exit()]
push 0x615c3a45 ; Stack -> ["E:\a", ".txt", 0, Exit()]
mov ebx,esp ; ebx = Path
xor ecx,ecx
push ecx ; Stack -> [0, "E:\a", ".txt", 0, Exit()]
mov cx,0x2b77 ; "W+"
push ecx ; Stack ->["w+",0, "E:\a", ".txt", 0, Exit()]