-
-
Notifications
You must be signed in to change notification settings - Fork 35
/
setup.py
38 lines (33 loc) · 1.58 KB
/
setup.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
import os
from subprocess import call
# Install required packages
os.system("sudo apt install python3-pip && sudo apt install tor")
os.system("pip3 install -U selenium pyvirtualdisplay pysocks mechanize xvfb argparse requests proxyscrape")
# Check Firefox version and download corresponding geckodriver
os.system('firefox -v > tmp')
with open('tmp', 'r') as f:
version_info = f.read()
marker = version_info.find('Firefox') + 8
version = version_info[marker:].splitlines()[0]
os.remove('tmp')
a, b, c = version.split('.')
FirefoxVersion = int(a)
if FirefoxVersion < 53:
call(["wget", "https://github.com/mozilla/geckodriver/releases/download/v0.16.1/geckodriver-v0.16.1-linux64.tar.gz"])
os_bit = 64
elif 53 <= FirefoxVersion <= 54:
call(["wget", "https://github.com/mozilla/geckodriver/releases/download/v0.18.0/geckodriver-v0.18.0-linux64.tar.gz"])
os_bit = 64
elif FirefoxVersion > 54:
call(["wget", "https://github.com/mozilla/geckodriver/releases/download/v0.19.1/geckodriver-v0.19.1-linux64.tar.gz"])
os_bit = 64
call(["tar", "-xvzf", "geckodriver-v0.{}.{}-linux{}.tar.gz".format(a, b, os_bit)])
os.remove("geckodriver-v0.{}.{}-linux{}.tar.gz".format(a, b, os_bit))
os.system("chmod +x geckodriver")
os.system("mv geckodriver /usr/local/bin/")
# Provide instructions for running the BruteForce Framework
print("\nSetup complete!\n")
print("To run the BruteForce Framework, use the following command:")
print("python3 bruteforce.py -s <service> -u <username> -w <wordlist> -d <delay>\n")
print("Example:")
print("python3 bruteforce.py -s facebook -u username -w wordlist.txt -d 2\n")