-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmain.py
54 lines (48 loc) · 2.23 KB
/
main.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
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
import argparse
import nemoscan
import sys
parser = argparse.ArgumentParser(description='Nemo Scan')
parser.add_argument('--host', action='store', dest='host',help='Host')
parser.add_argument('--nmap', action='store_true',help='Nmap')
parser.add_argument('--geoip', action='store_true', dest='geoip',help='Geoip')
parser.add_argument('--dnslookup', action='store_true', dest='dnslookup',help='Dns Lookup')
parser.add_argument('--whois', action='store_true', dest='whois',help='Whois')
parser.add_argument('--reverse-ip-lookup', action='store_true', dest='reverse_ip_lookup',help='Reverse IP Lookup')
parser.add_argument('--fuzz', action='store_true', dest='fuzz',help='fuzz')
parser.add_argument('--mode', action='store',type=int,dest='mode',help='mode1 --> wordpress.com plugins\n mode2 --> Get wordpress.com themes\n mode3 --> ')
parser.add_argument('--default_wordlist', action='store_true',dest='default',help='Default Wordlist True By User Wordlist By False ')
parser.add_argument('--wordlist', action='store',dest='wordlist',help='Default Wordlist False define wordlist')
results = parser.parse_args()
main = nemoscan.nemoscan()
host = results.host
nmap = results.nmap
geoip = results.geoip
dnslookup = results.dnslookup
whois = results.whois
reverse_ip_lookup = results.reverse_ip_lookup
fuzz = results.fuzz
mode = results.mode
default = results.default
wordlist = results.wordlist
if nmap:
print(main.nmap(host))
if geoip:
print(main.geoip(host))
if dnslookup:
print(main.dnslookup(host))
if whois:
print(main.whois(host))
if reverse_ip_lookup:
print(main.reverse_ip_lookup(host))
if fuzz and default and mode == 1:
main.fuzz(host=host,default=True,mode=mode,wordlist="None")
if fuzz and default and mode == 2:
main.fuzz(host=host,default=True,mode=mode,wordlist="None")
if fuzz and default and mode == 3:
main.fuzz(host=host,default=True,mode=mode,wordlist="None")
if fuzz and default==False and mode == 1 :
main.fuzz(host=host,default=False,mode=mode,wordlist=wordlist)
if fuzz and default==False and mode == 2 :
main.fuzz(host=host,default=False,mode=mode,wordlist=wordlist)
if fuzz and default==False and mode == 3 :
main.fuzz(host=host,default=False,mode=mode,wordlist=wordlist)