Waste phisher

From Fyzix
Jump to: navigation, search

waste_phisher.py

# 2018/03 BuRnCycL
# Script hits website, fills out form with username and password data, and submits data. Runs in a loop.
# Dependency on chromedriver
 
from time import sleep
from selenium import webdriver
from random import choice
from string import ascii_uppercase
from string import ascii_lowercase
from string import digits
 
 
def genEmail():
    charLen = 100
    randomData = (''.join(choice(ascii_uppercase + ascii_lowercase + digits) for i in range(charLen)))
    domain = ["net", "com", "org", "ck", "fu", "fuck", "fuckyou"]
    username = '{}@{}.{}'.format(randomData, randomData, (choice(domain)))
    return(username)
 
 
def genPassword(): 
    charLen = 200
    randomData = (''.join(choice(ascii_uppercase + ascii_lowercase + digits) for i in range(charLen)))    
    return(randomData)
 
 
def spamSite():    
 
    while True:                    
        try: 
            # Run a headless Chrome browser with the following options        
            chrome_options = webdriver.ChromeOptions()
            chrome_options.add_argument('--headless')
            chrome_options.add_argument('--user-agent=' + 'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/65.0.3325.181 Safari/537.36')
            browser = webdriver.Chrome('/home/burncycl/project/chromedriver', chrome_options=chrome_options)#, service_args=['--verbose', '--log-path=/tmp/chromebrowser.log'])
 
            # Browse to the website.
            browser.get('http://me7.ftapplogin.info/video/')
            print(browser.title) # Debugging
 
            # Fill out the form
            email = browser.find_element_by_name("email")
            password = browser.find_element_by_name("pass")        
            email.send_keys(genEmail())
            password.send_keys(genPassword())               
            browser.find_element_by_class_name("form-control").submit()
            sleep(1)
            print(browser.title) # Debugging
 
            # Quit the browser        
            browser.quit()
 
            # Wait before next run
            sleep(3)
 
        except Exception as e:
            print(e)
            browser.quit()
            continue
 
 
spamSite()