前面的就不说了,很简单

15

1
2
3
4
5
6
7
8
9
10
11
12
13
14
start
break *main+653
commands
silent
set $addr = $rbp-0x18

break *main+738
commands
silent
set $local_variable = *(unsigned long long*)$addr
printf "Current value: %llx\n", $local_variable
continue
end
continue

16

勉强能用

1
2
3
4
5
6
7
8
9
start
catch syscall read
commands
silent
set *(unsigned long long*)($rbp-0x10) = *(unsigned long long*)($rbp-0x18)
end
continue
end
continue