Proj 6x: Remote Shell via Format String Exploit (20 pts.)

What You Need

A 32-bit x86 Kali Linux 2.0 machine, real or virtual.

Challenge: Remote Server with Symbols (20 pts.)

To connect to the server, in a Terminal window, execute this command:

nc attack32direct.samsclass.info 6010
If you'd like a local copy of the server program to analyze, use these commands:

curl https://samsclass.info/127/proj/p6x.c > p6x.c

curl https://samsclass.info/127/proj/p6x > p6x
Exploit this process and get a shell on the server. Then put your name in this file:

/home/p6x/winners
Create this file:

/home/p6x/updatenow
After one minute, your name will appear on the WINNERS page here:

http://attack32direct.samsclass.info/winners6.html

Troubleshooting

If your exploit fails, it might be that the port is in use. You can check the local network connections at this page:

http://attack32direct.samsclass.info/netstat.htm

That page is updated every 5 seconds.

NOTES:

If you kill the server, it will restart after one minute

There are two other identical servers running on ports 6011 and 6012

Every 15 minutes, all three servers are restarted

Saving a Screen Image

Make sure YOUR NAME (or an alias) is visible on the WINNERS page.

Capture a full-screen image.

YOU MUST SUBMIT A FULL-SCREEN IMAGE FOR FULL CREDIT!

Save the image with the filename "YOUR NAME Proj 6x", replacing "YOUR NAME" with your real name.


Turning in your Project

Email the images to cnit.127sam@gmail.com with the subject line: Proj 6x from YOUR NAME
Posted 9-30-15 by Sam Bowne
URl changed to "direct" 1-19-17