Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #!/usr/bin/python3
- # Phishing attack script
- # https://greysec.net/
- import requests, json, random, threading
- url = 'http://044ac74.wcomhost.com/newdemary/customer_center/customer-IDPP00C113/myaccount/signin/'
- sent_logins = 0
- email_domains = [
- 'gmail.com',
- 'yahoo.com',
- 'hotmail.com',
- 'outlook.com',
- ]
- seperator_list = [
- '',
- '_',
- '.'
- ]
- # Load namelist
- with open('names.json', 'r') as namefile:
- namelist = json.load(namefile)
- namefile.close()
- # Load password list
- with open('passwords.json','r') as passfile:
- passlist = json.load(passfile)
- passfile.close()
- def send_request():
- while True:
- # Generate an email address
- global sent_logins
- num = random.randint(1,9999)
- name = random.choice(namelist)
- seperator = random.choice(seperator_list)
- domain = random.choice(email_domains)
- email = f'{name}{seperator}{num}@{domain}'
- # Get a password
- password = random.choice(passlist)
- response = requests.post(url, data={'login_email':email, 'login_password':password})
- sent_logins += 1
- print(f'[info] Sent login {email}:{password}')
- print(f'[info] Sent logins: {sent_logins}')
- if response.status_code != 200:
- print('[alert] Got status code {} from website'.format(response.status_code))
- threadlist = []
- for thread in range(4):
- thread = threading.Thread(target=send_request)
- threadlist.append(thread)
- thread.start()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement