disas main
b* 0x40168c
run
p $eax
run
p $eax
run
p $eax
run
p $eax
p/d $eax
run
p/d $eax
run
p $eax
ni
b* 0x4017d4
c
si
si
si
si
si
c
run
si
set $eflags ^= (1<<6)
p $eflags
si
c
run
p $eflags
si
p $eflags
set $eflags ^= (1<<6)
p $eflags
c
p $eax
run
si
set $eax=0x1468753
c
run
set $eax = 0x1468753
c
p $eax
i b
b* 0x401920
b* 0x401a6b
b* 0x401bb7
b* 0x401d06
b* 0x401e52
b* 0x401fa0
b* 0x4020e8
b* 0x402234
b* 0x402378
b* 0x402499
b* 0x4025ba
i b
run
source gdb_hack 
p $rip
c
run
source gdb_hack 
hack
q
start
b* main
source gdb_hack 
disas
b* 0x40168c
b* 0x4017d4
b* 0x401920
b* 0x401a6b
b* 0x401bb7
b* 0x401d06
b* 0x401e52
b* 0x401fa0
b* 0x4020e8
b* 0x402234
b* 0x402378
b* 0x402499
source gdb_hack 
hack
q
b* main
run 
b* CheckSolution 
c
run
1
0
c
x/200 $rip
x/100i $rip
c
run 
c
x/100i $rip
x/200i $rip
b* 0x40168c
b* 0x4017d4
b* 0x401920
b* 0x401a6b
b* 0x401bb7
b* 0x401d06
b* 0x401e52
b* 0x401fa0
b* 0x4020e8
b* 0x402234
b* 0x402378
b* 0x402499
run
1
c
c
p $rax
run
c
c
p $rax
run
c
q
b* main
run
b* 0x40168c
b* 0x4017d4
b* 0x401920
b* 0x401a6b
b* 0x401bb7
b* 0x401d06
b* 0x401e52
b* 0x401fa0
b* 0x4020e8
b* 0x402234
b* 0x402378
b* 0x402499
source gdb_hack 
hack
q
