Update brute.py

main
witchdocsec 2024-05-25 21:58:36 +01:00 committed by GitHub
parent 3ddc9c2911
commit a7fb50348e
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 8 additions and 7 deletions

View File

@ -3,19 +3,20 @@ import time
def brute(args):
d="Chrome"
if args.undetected:
import undetected_chromedriver as webdriver
from undetected_chromedriver import By
else:
if args.command == "preset":
args=lib.presets.load_preset(args)
try:
if args.undetected:
import undetected_chromedriver as webdriver
from undetected_chromedriver import By
except:
from selenium import webdriver
from selenium.webdriver.common.by import By
if args.browser == "firefox":
d="Firefox"
attr=getattr(webdriver,d)
driver = attr()
if args.command == "preset":
args=lib.presets.load_preset(args)
print(args)
if args.command == "brute":
if args.makepreset:
lib.presets.make_preset(args.presetname,args.browser,str(args.url),args.userfield,args.passwordfield,args.formnumber,args.button,args.targeturl)