# check file type (ex: 32bit, 64bit
file binary
# check sec
checksec --file=a.out
- ropshell
- ROPgadget find gadget
- Ropper find gadget and semantic
- ROPGenerator semantic
# install ropper
pacman -S ropper
pacaur -S python-z3 python-pyvex-git python-archinfo-git # if need semantic
ropper
semantic
not found gadgets using--clear-cache
debug
# show log
context.log_level ='debug'
# gdb
context.terminal = ['alacritty', '-e', 'sh', '-c']
gdb.attach(c)
- find plt/got
objdump -R binfile
- SSRF
sqlmap -u "https://hackme.inndy.tw/gb/?mod=post" --method POST -p "content,title" --data "title=a&content=b"
sqlmap -u "https://hackme.inndy.tw/gb/?mod=post" --method POST -p "content,title" --data "title=a&content=b" --level=3 --risk=3 # if above not working
hashcat insall
sudo pacman -S hashcat, opencl-mesa # or opencl-nvidia