-
Notifications
You must be signed in to change notification settings - Fork 14
BO Attacks
lethanhtung01011980 edited this page Jan 6, 2020
·
24 revisions
- To exploit BO
- Good ref: https://reboare.github.io/htb/htb-jail.html
- Source code with array[xx]
- gcc -o jail jail.c -m32 -z execstack
- service jail stop
- cp jail /usr/local/bin/jail
- service jail start
In Kali, to use the below mode in GDB to make the process debug the forked process (optionally). "jail" is the executable to run.
apt-get install gdb
- NEED TO USE gcc -ggdb to compile!!!!
- https://web.eecs.umich.edu/~sugih/pointers/summary.html
gdb jail
list 1
info inferiors
(gdb) set follow-fork-mode child
(gdb) set detach-on-fork off
run
In case the firewall blocks outgoing connection
To write payload program fast and return shell to the same socket.