New filters on the Home Feed, take a look!
view details

This post has been de-listed (Author was flagged for spam)

It is no longer included in search results and normal feeds (front page, hot posts, subreddit posts, etc). It remains visible only via the author's post history.

4
Fuzzing not working for Buffer Overflow
Post Flair (click to view more posts with a particular flair)
Post Body

I am trying to learn buffer overflow with Immunity Debugger and Vulnserver. I reached the fuzzing phase and I am trying to use the below python script:

#!/usr/bin/python

import sys, socket

from time import sleep

buffer = "A" * 100

while True:

try:

    s = socket.scoket(socket.AF\_INET, socket.SOCK\_STREAM)

    sconnect(('<IP of the vulnserver>', 9999))

    s.send(('TRUN /.:/'   buffer))

    s.close()

    sleep(1)

    buffer = buffer   "A" \* 100



except:

    print("Fuzzing crashed at %s bytes" % str(len(buffer)))

    sys.exit() 

Yet, when I execute the script I instantly receive this message:

./fuzzing.py

Fuzzing crashed at 100 bytes

When I check the Immunity Debugger nothing happened, it didn't pause as expected, while in the Vulnserver I cannot see any connections. Any idea why? I Googled it and I cannot find any solutions.

Thank you.

Author
Account Strength
0%
Account Age
4 years
Verified Email
Yes
Verified Flair
No
Total Karma
220
Link Karma
187
Comment Karma
33
Profile updated: 3 months ago
Posts updated: 3 months ago

Subreddit

Post Details

We try to extract some basic information from the post title. This is not always successful or accurate, please use your best judgement and compare these values to the post title and body for confirmation.
Posted
1 year ago