-
-
Notifications
You must be signed in to change notification settings - Fork 35
/
setup.py
39 lines (32 loc) · 1.56 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
39
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:
marker = f.read().find('Firefox')+8
version = f.read()[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")