-
Notifications
You must be signed in to change notification settings - Fork 3
/
WebRunner.py
35 lines (32 loc) · 1.38 KB
/
WebRunner.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
#!/usr/bin/env python3
from core.core import *
from core.WebRunnerUrl import *
from core.WebRunnerRegx import *
from core.WebRunnerEmails import *
from core.WebRunnerHelp import *
from core.WebRunnerClone import *
import argparse
parser = argparse.ArgumentParser(add_help=False)
parser.add_argument('-u','--url',help='Set target URL')
parser.add_argument('-a','--user-agent',default='WebRunner v1.0',help='Set user-agent')
parser.add_argument('-t','--threads',default='10',help='Set threads')
parser.add_argument('mode',help='Set attack mode (url,email,regx,clone)')
parser.add_argument('-h','--help',action='store_true',help="")
parser.add_argument('-k','--no-tls-validation',action='store_false')
parser.add_argument('-c','--cookie',help='Set cookies to use for the requests')
parser.add_argument('--timeout',default=15,help='Time each thread waits between requests (15s by default)')
parser.add_argument('-s','--string',help='Set string to search.')
parser.add_argument('-n','--name',help='Set project name for clone module.')
parser.add_argument('-f','--folder',help='Set destination folder for clone module.')
args = parser.parse_args()
ATTACK_MODE=args.mode
if ATTACK_MODE == 'url':
URL_MODULE.main(args)
if ATTACK_MODE == 'regx':
REGX_MODULE.main(args)
if ATTACK_MODE == 'email':
EMAILS_MODULE.main(args)
if ATTACK_MODE == 'help':
HELP_MODULE.main()
if ATTACK_MODE == 'clone':
CLONE_MODULE.main(args)