-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathimmunity-usa.py
46 lines (36 loc) · 1.1 KB
/
immunity-usa.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
import requests
import random
from fake_headers import Headers
from termcolor import colored
from faker import Faker
fake = Faker('en_US')
url = ''
email = fake.email()
name = fake.name()
address = fake.address()
occupation = fake.job()
phone = fake.phone_number()
dob = fake.date_of_birth(tzinfo=None, minimum_age=9, maximum_age=86)
fdata = {"customer_name": name,
"address": address,
"occupation": occupation,
"phone_number": phone,
"email_address": email,
"dob": dob
}
header = Headers(headers=False)
headers = header.generate()
s = requests.Session()
r = s.post(url, data=fdata, headers=headers)
response = str(r)
rcode = response[11:14]
def status_check():
count = 0
if rcode == "200":
count = count + 1
return(colored('\n\nData dumped! \t\t %s \n ' % rcode, 'green', attrs=['bold']))
print(count)
else:
return(colored('\n\nNo Success \t\t %s \n ' % rcode, 'red', attrs=['bold']))
status = status_check()
print(status, '\n', name, '\n', dob, '\n', email, '\n', phone, '\n', occupation, '\n', address, status)