Skip to content

Instantly share code, notes, and snippets.

@rayepeng
Created June 16, 2021 01:38
Show Gist options
  • Save rayepeng/169c1db623461e8c17fe4cc21d91d2fd to your computer and use it in GitHub Desktop.
Save rayepeng/169c1db623461e8c17fe4cc21d91d2fd to your computer and use it in GitHub Desktop.
shellcode 编写
# 参考 https://bbs.pediy.com/thread-256000.htm
利用FPU获取EIP
section .text
BITS 32
global CMAIN
CMAIN:
fldz
fnstenv [esp-0xc]
pop eax
add al,0x09
xor eax, eax
ret
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment