SMALL
d = subprocess.Popen("gdb -ex 'py rax = " + str(i) + "' -x ./gg.py ", shell=True, stdout=subprocess.PIPE).stdout.read().strip()
#gg.py 파일
import gdb | |
class MyBreakpoint(gdb.Breakpoint): | |
def stop (self): | |
return True | |
gdb.execute('file ./OS.BIN') | |
gdb.execute("set environment LD_PRELOAD /home/sudhakar/tools/preeny/x86_64-linux-gnu/desleep.so") | |
MyBreakpoint("*0x400a62") | |
gdb.execute("run") | |
gdb.execute('set $rax=0x%x' % rax) | |
gdb.execute("continue") | |
gdb.execute('quit') |
리버싱할때 특정 루틴 분석
[출처] https://gist.github.com/sudhackar/b90987864dd88dfe528542bea9d901be
LIST
'reversing > reversing' 카테고리의 다른 글
SCTF Rev[100] (0) | 2018.07.07 |
---|---|
GO 언어 리버싱 (0) | 2018.06.12 |
gdbserver script (0) | 2018.03.28 |
C++ 리버싱 연습 [2] -이론 (0) | 2018.03.10 |
SMT - z3[sudoku] (0) | 2018.01.24 |