Advertisement
Willcode4cash

Send random username/password to scam site

Aug 18th, 2018
1,360
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.87 KB | None | 0 0
  1. ################################################################################
  2. # Requires:
  3. #           python 3.x
  4. #           Faker (generates random user data)
  5. ################################################################################
  6.  
  7. import requests
  8. import os
  9. import random
  10. import string
  11. import json
  12. from faker import Faker
  13.  
  14. fake = Faker('en_US')
  15. chars = string.ascii_letters + string.digits + '!@#$%^&*()'
  16. random.seed = (os.urandom(1024))
  17. url = '<insert form action URL>'
  18.  
  19. for e in range(100):
  20.     username = fake.email()
  21.     password = fake.password()
  22.     requests.post(
  23.         url,
  24.         allow_redirects=False,
  25.         data={
  26.             '<insert object name/id for the username/email field>': username,
  27.             '<insert object name/id for the password field>': password
  28.         })
  29.     print ('sending username %s and password %s' % (username, password))
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement