Debugger/GDB
[GDB] 사용자 input으로 hex값 입력 값하기
우와해커
2019. 12. 28. 18:08
*문자가 아닌 핵사 값 그자체를 넣는 방법
Supplying the input through the pipeline: 바이너리 실행 전 사용법
$ python -c "print '\xde\xad\xbe\xef'" | ./binary
$ python -c "print 0xdeadbeef" | ./binary
Supplying the input from within GDB: GDB내부에서 사용법
(gdb) r <<< $(python -c "print '\xde\xad\xbe\xef'")
(gdb) r <<< $(python -c "print 0xdeadbeef")