need help with socket fuzzer

need help with socket fuzzer

Postby invalidpython » Wed Jul 20, 2016 8:20 am

currently making a fuzzer for information security the while loop does not seem to output any print function or loop for some reason.
not sure if my code is incorrect can anyone spot it please let me know.

currently i get the socket open but then . it doesnt print any of the stuff below so im not sure if its sending the junkdata too or not.
serpose to place it in a loop and junk data resend and does a counter
Code: Select all
    while conn.open(counter,junkData):
        counter =+ 1
        junkData = junkData + 1
        print(counter)
        print(junkData)
        data = conn.recv(1024)
        if not data: break
        conn.sendall(junkData)
        conn.open()
Last edited by Yoriz on Wed Jul 20, 2016 12:22 pm, edited 1 time in total.
Reason: First post lock. Added code tags.
invalidpython
 
Posts: 2
Joined: Wed Jul 20, 2016 8:16 am

while loop not returning ? condition

Postby invalidpython » Wed Jul 20, 2016 9:38 am

hey guys just started learning python 1 to 2 weeks ago , just wondering why this conditional syntax is not printing like it should when its run it just hangs just wondering if anyone can spot problems with the condition or the syntax

i does the nectwork connection up to this point where it just hangs cant tell if its sending data or if its remain connected it just kinda dieds with no printable instruction beening set

Code: Select all
    while conn.open(counter,junkData,data):
        counter =+ 1
        junkData = junkData + 1
        print(counter)
        print(junkData)
        data = conn.recv(1024)
        if not data: break
        conn.sendall(junkData)
        conn.open()

Last edited by Yoriz on Wed Jul 20, 2016 12:25 pm, edited 1 time in total.
Reason: First post lock.
invalidpython
 
Posts: 2
Joined: Wed Jul 20, 2016 8:16 am

Re: need help with socket fuzzer

Postby micseydel » Wed Jul 20, 2016 7:38 pm

There's not enough information here. As a general rule, you should provide enough code to reproduce your problem, and no more. (Here, 10 lines is probably sufficient, 20 is likely too much.)
Due to the reasons discussed here we will be moving to python-forum.io on October 1, 2016.

This forum will be locked down and no one will be able to post/edit/create threads, etc. here from thereafter. Please create an account at the new site to continue discussion.
User avatar
micseydel
 
Posts: 3000
Joined: Tue Feb 12, 2013 2:18 am
Location: Mountain View, CA


Return to Networking

Who is online

Users browsing this forum: No registered users and 1 guest