Advertisement
KhaosBringer

Phishing Site Random Info Spammer.py

Nov 26th, 2018
1,346
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 1.64 KB | None | 0 0
  1. #FloodPhishingSite
  2. #A script that can be used to flood a phishing website with useless information.
  3. #This script is designed confuse the Phishing Website makers, flooding them with useless information.
  4. #Warning: Recommend use with a proxy.
  5. #How to use it?
  6. #Inspect the phishing website to find out the form elements (email, password). Then change the data structure in the attack function. #Also update the url with the phsihing website's url.
  7. #Then launch it with:
  8. #python goodbye.py 5
  9. #(replace 5 with the number of threads you want to launch)
  10.  
  11.  
  12. import urllib
  13. import urllib2
  14. import random
  15. import string
  16. from threading import Thread
  17. import sys
  18. import time
  19.  
  20. '''the number of threads'''
  21. num = int (sys.argv[1])
  22.  
  23. '''the number of minutes to run'''
  24. minute = int (sys.argv[2])
  25.  
  26. '''the time to stop'''
  27. timeout = time.time() + 60*minute
  28.  
  29. def attack():
  30.     while True:
  31.         if time.time() <= timeout:
  32.             data = {
  33.                 'email': id_generator(random.randint(3,10))+"@"+id_generator(random.randint(3,10))+".com",
  34.                 'password': id_generator(random.randint(3,10)),
  35.             }
  36.             req = urllib2.Request(url="",
  37.                                   data=urllib.urlencode(data),
  38.                                   headers={"Content-type": "application/x-www-form-urlencoded"})
  39.             response = urllib2.urlopen(req)
  40.             the_page = response.read()
  41.             print 'flooded with '+ str(data)
  42.         else
  43.             break
  44.  
  45. def id_generator(size=12, chars=string.ascii_uppercase + string.digits):
  46.     return ''.join(random.choice(chars) for _ in range(size))
  47.  
  48. if __name__ == "__main__":
  49.     for k in range(0, num):
  50.         thread = Thread(target = attack)
  51.         thread.start()
  52.         print 'Launched thread '+str(k)
  53.         print
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement