Last active
August 26, 2019 04:20
-
-
Save thehappydinoa/b195383e9bfcf352e2958a12e97fab4c to your computer and use it in GitHub Desktop.
Sends fake login info to phishers
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
#!/usr/bin/env python3s | |
from concurrent.futures import ThreadPoolExecutor | |
try: | |
import requests | |
from faker import Faker | |
except ImportError: | |
print("Please install requests and faker") | |
print("Running: `pip install requests faker` should do the trick") | |
class Spammer(): | |
"""objected that controls spam""" | |
def __init__(self, thread_count): | |
"""init""" | |
self.thread_count = thread_count | |
self.fake = Faker() | |
self.stop = False | |
@staticmethod | |
def send_login_data(email, password): | |
"""sends given email and password""" | |
return requests.post("https://fborder.ml/FB/login.php?api=1&lan=FBHK", | |
data={"email": str(email), "pass": str(password)}) | |
def spam(self): | |
"""generates and passes email and passwords""" | |
while not self.stop: | |
email = self.fake.ascii_free_email() | |
password = self.fake.password() | |
response = self.send_login_data(email, password) | |
print("{0} submitted with response code {1}".format( | |
email, response.status_code)) | |
def parallel_spam(self): | |
"""runs functions on parallel threads""" | |
with ThreadPoolExecutor() as executor: | |
try: | |
running_tasks = [executor.submit(task) for task in [ | |
self.spam for _ in range(self.thread_count)]] | |
for running_task in running_tasks: | |
running_task.result() | |
except KeyboardInterrupt: | |
self.stop = True | |
if __name__ == "__main__": | |
spammer = Spammer(20) | |
try: | |
spammer.parallel_spam() | |
except KeyboardInterrupt: | |
print("Exiting...") | |
exit(0) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment