-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathdosint.py
More file actions
73 lines (59 loc) Β· 2.42 KB
/
dosint.py
File metadata and controls
73 lines (59 loc) Β· 2.42 KB
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
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
import argparse
import sys
import os
def clear():
# Clear the terminal screen (works for Windows, macOS, and Linux)
os.system('cls' if os.name == 'nt' else 'clear')
# Clear the screen.
clear()
# ANSI escape sequences for colors and styles
RED = "\033[31m"
GREEN = "\033[32m"
YELLOW = "\033[33m"
BLUE = "\033[34m"
MAGENTA = "\033[35m"
CYAN = "\033[36m"
WHITE = "\033[37m"
RESET = "\033[0m"
BOLD = "\033[1m"
UNDERLINE = "\033[4m"
# Your custom banner (which can also serve as your help message)
BANNER = f""" {BLUE}|- {YELLOW}{BOLD}Created by github.com/zebbern{GREEN}
βββββββββββββββββββββββββββββββββββββββββ
β {YELLOW}-g{BLUE} |{CYAN} Dorking via Google{GREEN} β
β β
β {YELLOW}-p{BLUE} |{CYAN} Fetches and saves proxies.{GREEN} β
β β
β {YELLOW}-s{BLUE} |{CYAN} Search for exposed SCADA systems{GREEN} β
β β
β {YELLOW}-t{BLUE} |{CYAN} Dorking via Tor (port 9050){GREEN} β
βββββββββββββββββββββββββββββββββββββββββ
{BLUE}|- python main.py -p -g
{WHITE}To Use Proxies Meanwhile Dorking{RESET}"""
parser = argparse.ArgumentParser(
prog="main.py",
add_help=False, # Do not add the default -h/--help.
usage=argparse.SUPPRESS, # Suppress the default usage string.
formatter_class=argparse.RawTextHelpFormatter
)
parser.add_argument("-h", "--help", action="store_true", help=argparse.SUPPRESS)
# Add other arguments with their help texts suppressed.
parser.add_argument("-g", "--google", help=argparse.SUPPRESS, action='store_true')
parser.add_argument("-s", "--scada", help=argparse.SUPPRESS, action='store_true')
parser.add_argument("-t", "--tor", help=argparse.SUPPRESS, action='store_true')
parser.add_argument("-p", "--proxy", help=argparse.SUPPRESS, action='store_true')
args = parser.parse_args()
# If user requests help explicitly OR gave no arguments
if args.help or len(sys.argv) == 1:
print(BANNER)
parser.print_help()
sys.exit(0)
# Otherwise, run whatever modes they asked for
if args.proxy:
from Modes import Proxy
if args.google:
from Modes import Gmode
if args.scada:
from Modes import Scada
if args.tor:
from Modes import Tor