Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- initial = """
- $$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$
- $ $
- $ /$$$$$$ /$$ $
- $ /$$__ $$| $$ $
- $ | $$ \__/| $$$$$$$ /$$$$$$ /$$$$$$ /$$ /$$ /$$$$$$ /$$ /$$ /$$ /$$$$$$ $
- $ | $$ | $$__ $$ |____ $$ /$$__ $$| $$ | $$ |____ $$| $$ | $$ | $$ /$$__ $$ $
- $ | $$ | $$ \ $$ /$$$$$$$| $$ \ $$| $$ | $$ /$$$$$$$| $$ | $$ | $$| $$$$$$$$ $
- $ | $$ $$| $$ | $$ /$$__ $$| $$ | $$| $$ | $$ /$$__ $$| $$ | $$ | $$| $$_____/ $
- $ | $$$$$$/| $$ | $$| $$$$$$$| $$$$$$$/| $$$$$$/| $$$$$$$| $$$$$/$$$$/| $$$$$$$ $
- $ \______/ |__/ |__/ \_______/| $$____/ \______/ \_______/ \_____/\___/ \_______/ $
- $ | $$ $
- $ | $$ $
- $ |__/ $
- $ $
- $ F4C3B00K B0T CR34T0R $
- $ Scripting by Zack Dasti and Colaborators $
- $ Credits: Zephirot (Beta Tester) $
- $ Version: beta 1.9.2 $
- $ $
- $$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$
- """
- import re
- import random
- import socket
- import urllib2
- from time import sleep
- from os import system
- from tempMail import tempMail
- from selenium import webdriver
- from optparse import OptionParser
- from selenium.webdriver.common.keys import Keys
- from selenium.webdriver.common.desired_capabilities import DesiredCapabilities
- parser = OptionParser()
- parser.add_option('-c', '--check-proxies', action='store', help="Check a proxy list, for detect live proxies",
- type='string', dest='proxyfile')
- parser.add_option('-p', '--proxies', action='store', help="The live proxies file to use",
- type="string", dest='useproxies')
- parser.add_option('-e', '--email', action='store', help="The optional personal email",
- type='string', dest='email_use')
- parser.add_option('-n', '--names', action='store', help="The names to use file",
- type="string", dest='names')
- parser.add_option('--custom-name', action='store', help="Set the custom name of a account",
- type="string", dest='custom_name')
- (options, args) = parser.parse_args()
- def check_proxies(proxiesFile):
- file = open(proxiesFile, 'r')
- file2 = open('LiveProxies.txt', 'w')
- proxies = file.readlines()
- proxyFinal = ''
- for proxy in proxies:
- proxyFinal += proxy
- proxyList = proxyFinal.split('\n')
- def dead_proxy(address):
- try:
- proxy_handler = urllib2.ProxyHandler({'http': address})
- opener = urllib2.build_opener(proxy_handler)
- opener.addheaders = [('User-agent', 'Mozilla/5.0')]
- urllib2.install_opener(opener)
- req=urllib2.Request('http://www.google.com')
- sock=urllib2.urlopen(req)
- except urllib2.HTTPError, e:
- return True
- except Exception, detail:
- return True
- return False
- socket.setdefaulttimeout(5)
- for currentProxy in proxyList:
- if dead_proxy(currentProxy):
- print "Dead Proxy " + currentProxy
- else:
- print "Live Proxy " + currentProxy
- file2.write(currentProxy + "\n")
- file2.close()
- file.close()
- def use_proxies():
- file = open(options.useproxies).read().splitlines()
- ip_proxy = random.choice(file)
- num_lines = sum(1 for line in open(options.useproxies))
- global tries
- tries = num_lines
- return ip_proxy
- def init():
- system('clear')
- print str(initial) + "\n"
- dcap = dict(DesiredCapabilities.PHANTOMJS)
- dcap["phantomjs.page.settings.userAgent"] = "Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/53 (KHTML, like Gecko) Chrome/15.0.87"
- if options.useproxies:
- service_proxy = use_proxies().strip("\n")
- service_args = [
- '--proxy=' + service_proxy,
- '--proxy-type=socks5',
- '--ignore-ssl-errors=true',
- '--ssl-protocol=any'
- ]
- driver = webdriver.PhantomJS(desired_capabilities=dcap, service_args=service_args)
- else:
- driver = webdriver.PhantomJS(desired_capabilities=dcap)
- print "Iniciando mecanismos"
- driver.set_window_size(750, 1334)
- print "Seteando parametros anti-block_bots"
- driver.get("about:blank")
- driver.delete_all_cookies()
- driver.get("https://mbasic.facebook.com/reg/")
- print "Accediendo a los vectores de ataque"
- try:
- driver.save_screenshot('main.png')
- source = open('source.html', 'w')
- source.write(driver.page_source.encode("utf-8"))
- source.close()
- print "see ls"
- exit()
- except:
- exit()
- if options.email_use:
- email = options.email_use
- else:
- m = tempMail.mailer()
- email = m.getEmail()
- name = driver.find_element_by_xpath('//*[@id="u_0_0"]/input')
- lastname = driver.find_element_by_xpath('//*[@id="u_0_1"]/input')
- name.send_keys(usernames())
- lastname.send_keys(usernames() + Keys.RETURN)
- birthday = random_birthday().split('/')
- day = driver.find_element_by_id('day')
- for option_day in day.find_elements_by_tag_name('option'):
- if option_day.text == birthday[0]:
- option_day.click()
- break
- month = driver.find_element_by_id('month')
- for option_month in month.find_elements_by_tag_name('option'):
- if option_month.text == birthday[1]:
- option_month.click()
- break
- year = driver.find_element_by_id('year')
- for option_year in year.find_elements_by_tag_name('option'):
- if option_year == birthday[2]:
- option_year.click()
- break
- print birthday
- driver.find_element_by_xpath('//*[@id="mobile-reg-form"]/div[9]/button[1]/span').click()
- """
- try:
- email_input = driver.find_element_by_xpath('//*[@id="u_0_2"]/input')
- email_input.send_keys(email + Keys.RETURN)
- except:
- driver.save_screenshot('main.png')
- exit()
- """
- driver.save_screenshot('main.png')
- source = open('source.html', 'w')
- source.write(driver.page_source.encode("utf-8"))
- source.close()
- sleep(10)
- driver.save_screenshot('main2.png')
- exit()
- if random.randint(1,2) == 1:
- driver.find_element_by_xpath('//*[@id="sex"]/div/div[2]/label[1]/input').click()
- else:
- driver.find_element_by_xpath('//*[@id="sex"]/div/div[2]/label[2]/input').click()
- driver.find_element_by_xpath('//*[@id="mobile-reg-form"]/div[9]/button[1]').click()
- password = driver.find_element_by_xpath('//*[@id="u_0_3"]/input')
- password.send_keys('LegionRusa')
- driver.save_screenshot('main.png')
- print "\nA log has been saved in main.png"
- print "and the source has been saved in source.html"
- def random_birthday():
- month = random.randint(1,12)
- day = random.randint(1,28)
- year = random.randint(1970,1998)
- return str("%s/%s/%s" % (day, month, year))
- def usernames():
- file = open(options.names).read().splitlines()
- username = random.choice(file)
- return username
- if options.proxyfile:
- check_proxies(options.proxyfile)
- elif options.names:
- init()
- else:
- print "Usage: -h"
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement