automatic installation of fuzzywuzzy
This commit is contained in:
36
bolt.py
36
bolt.py
@@ -1,12 +1,31 @@
|
||||
from core.colors import green, yellow, end, run, good, info, bad, white
|
||||
|
||||
def banner():
|
||||
print ('''%s
|
||||
⚡ %sBOLT%s ⚡ v0.1.2-alpha
|
||||
%s''' % (yellow, white, yellow, end))
|
||||
|
||||
banner()
|
||||
|
||||
try:
|
||||
import concurrent.futures
|
||||
try:
|
||||
from fuzzywuzzy import fuzz, process
|
||||
except:
|
||||
import os
|
||||
print ('%s fuzzywuzzy library is not installed, installing now.' % info)
|
||||
os.system('pip3 install fuzzywuzzy')
|
||||
print ('%s fuzzywuzzy has been installed, please restart Bolt.' % info)
|
||||
quit()
|
||||
except:
|
||||
print ('%s Bolt is not compatible with python 2. Please run it with python 3.' % bad)
|
||||
|
||||
import argparse
|
||||
import concurrent.futures
|
||||
import json
|
||||
import random
|
||||
import re
|
||||
import statistics
|
||||
|
||||
from fuzzywuzzy import fuzz, process
|
||||
|
||||
import core.config
|
||||
from core.config import token
|
||||
from core.datanize import datanize
|
||||
@@ -18,7 +37,6 @@ from core.ranger import ranger
|
||||
from core.zetanize import zetanize
|
||||
from core.requester import requester
|
||||
from core.utils import extractHeaders, entropy, isProtected
|
||||
from core.colors import green, yellow, end, run, good, info, bad, white
|
||||
|
||||
parser = argparse.ArgumentParser()
|
||||
parser.add_argument('-u', help='target url', dest='target')
|
||||
@@ -29,13 +47,7 @@ parser.add_argument('--timeout', help='http request timeout', dest='timeout', ty
|
||||
parser.add_argument('--headers', help='http headers', dest='headers', action='store_true')
|
||||
args = parser.parse_args()
|
||||
|
||||
def banner():
|
||||
print ('''%s
|
||||
⚡ %sBOLT%s ⚡
|
||||
%s''' % (yellow, white, yellow, end))
|
||||
|
||||
if not args.target:
|
||||
banner()
|
||||
print('\n' + parser.format_help().lower())
|
||||
quit()
|
||||
|
||||
@@ -44,8 +56,6 @@ if args.headers:
|
||||
else:
|
||||
headers = core.config.headers
|
||||
|
||||
banner()
|
||||
|
||||
target = args.target
|
||||
delay = args.delay or 0
|
||||
level = args.level or 2
|
||||
@@ -260,4 +270,4 @@ else:
|
||||
print ('%s Making requests with various tweaks to the token. It may take a while.' % run)
|
||||
# data = datanize(goodCandidate, headers)[1]
|
||||
# data = tweaker(data, 'remove')
|
||||
# response = requester(origUrl, data, headers, origGET, 0)
|
||||
# response = requester(origUrl, data, headers, origGET, 0)
|
||||
|
||||
Reference in New Issue
Block a user