Skip to content

Instantly share code, notes, and snippets.

@yasar11732
Created September 14, 2018 19:46
Show Gist options
  • Select an option

  • Save yasar11732/dd393d6a6011c20a43e24be59eaf1f48 to your computer and use it in GitHub Desktop.

Select an option

Save yasar11732/dd393d6a6011c20a43e24be59eaf1f48 to your computer and use it in GitHub Desktop.
GCC stack protector
0x08048464 <+0>: push ebp
0x08048465 <+1>: mov ebp,esp
0x08048467 <+3>: sub esp,0x14
0x0804846a <+6>: mov eax,gs:0x14
0x08048470 <+12>: mov DWORD PTR [ebp-0x4],eax
0x08048473 <+15>: xor eax,eax
0x08048475 <+17>: lea eax,[ebp-0x10]
0x08048478 <+20>: mov DWORD PTR [esp],eax
0x0804847b <+23>: call 0x8048360 <gets@plt>
0x08048480 <+28>: lea eax,[ebp-0x10]
0x08048483 <+31>: mov DWORD PTR [esp],eax
0x08048486 <+34>: call 0x8048380 <puts@plt>
0x0804848b <+39>: mov eax,DWORD PTR [ebp-0x4]
0x0804848e <+42>: xor eax,DWORD PTR gs:0x14
0x08048495 <+49>: je 0x804849c <return_input+56>
0x08048497 <+51>: call 0x8048370 <__stack_chk_fail@plt>
0x0804849c <+56>: leave
0x0804849d <+57>: ret
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment