Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- ################################################################################
- # Requires:
- # python 3.x
- # Faker (generates random user data)
- ################################################################################
- import requests
- import os
- import random
- import string
- import json
- from faker import Faker
- fake = Faker('en_US')
- chars = string.ascii_letters + string.digits + '!@#$%^&*()'
- random.seed = (os.urandom(1024))
- url = '<insert form action URL>'
- for e in range(100):
- username = fake.email()
- password = fake.password()
- requests.post(
- url,
- allow_redirects=False,
- data={
- '<insert object name/id for the username/email field>': username,
- '<insert object name/id for the password field>': password
- })
- print ('sending username %s and password %s' % (username, password))
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement