Last active
February 24, 2022 01:56
-
-
Save amitrani6/b9db5046ab31dffd5c8cc5aadc3065ba to your computer and use it in GitHub Desktop.
The code used by 'Engineer Man' to flood the phishing site with false information
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#The following code is from 'Engineer Man's' YouTube video titled 'Showing a Craigslist scammer who's boss using Python' | |
import requests | |
import os | |
import random | |
import string | |
import json | |
#Character list for password creation and a random seed to initialize the number generation | |
chars = string.ascii_letters + string.digits + '!@#%^&()' | |
random.seed = (os.urandom(1024)) | |
#Enter the .php address to send the e-mail addresses below | |
url = '' | |
#Loads the file with the list of names | |
names = json.loads(open('names.json').read()) | |
#Engineer Man's for loop to generate and send the fake usernames and passwords to the scammer | |
for name in names: | |
#The below line creates random numbers to add to the e-mail address | |
name_extra = ''.join(random.choice(string.digits)) | |
#The below line accesses a random name from the list and adds random numbers and a domain address to create an email address | |
username = name.lower() + name_extra + '@yahoo.com' | |
#The following line generates a password comprised of random characters | |
password = ''.join(random.choice(chars) for i in range(8)) | |
#This line sends the generated name and passowrd to the phising site | |
#The 'allow_redirects = False' Parameter prevents us from being redirected to the actual craigslist page | |
requests.post(url, allow_redirects = False, data = { | |
#Enter the form data codes below to send the e-mail addresses | |
'': username | |
'': password | |
}) | |
#The following code prints the generated e-mail and password being sent | |
#An example combination is 'liam0@yahoo.com' | |
print 'sending username %s and password %s' % (username, password) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment