Fixed onesixtyone scan bug.
This commit is contained in:
parent
31c469e86b
commit
94bcf17e49
|
@ -31,7 +31,7 @@ global_patterns = []
|
||||||
username_wordlist = '/usr/share/seclists/Usernames/top-usernames-shortlist.txt'
|
username_wordlist = '/usr/share/seclists/Usernames/top-usernames-shortlist.txt'
|
||||||
password_wordlist = '/usr/share/seclists/Passwords/darkweb2017-top100.txt'
|
password_wordlist = '/usr/share/seclists/Passwords/darkweb2017-top100.txt'
|
||||||
|
|
||||||
__location__ = os.path.realpath(os.path.join(os.getcwd(), os.path.dirname(__file__)))
|
rootdir = os.path.realpath(os.path.join(os.getcwd(), os.path.dirname(__file__)))
|
||||||
|
|
||||||
def e(*args, frame_index=1, **kvargs):
|
def e(*args, frame_index=1, **kvargs):
|
||||||
frame = sys._getframe(frame_index)
|
frame = sys._getframe(frame_index)
|
||||||
|
@ -105,7 +105,7 @@ def fail(*args, sep=' ', end='\n', file=sys.stderr, **kvargs):
|
||||||
exit(-1)
|
exit(-1)
|
||||||
|
|
||||||
port_scan_profiles_config_file = 'port-scan-profiles.toml'
|
port_scan_profiles_config_file = 'port-scan-profiles.toml'
|
||||||
with open(os.path.join(__location__, 'config', port_scan_profiles_config_file), 'r') as p:
|
with open(os.path.join(rootdir, 'config', port_scan_profiles_config_file), 'r') as p:
|
||||||
try:
|
try:
|
||||||
port_scan_profiles_config = toml.load(p)
|
port_scan_profiles_config = toml.load(p)
|
||||||
|
|
||||||
|
@ -115,13 +115,13 @@ with open(os.path.join(__location__, 'config', port_scan_profiles_config_file),
|
||||||
except toml.decoder.TomlDecodeError as e:
|
except toml.decoder.TomlDecodeError as e:
|
||||||
fail('Error: Couldn\'t parse {port_scan_profiles_config_file} config file. Check syntax and duplicate tags.')
|
fail('Error: Couldn\'t parse {port_scan_profiles_config_file} config file. Check syntax and duplicate tags.')
|
||||||
|
|
||||||
with open(os.path.join(__location__, 'config', 'service-scans.toml'), 'r') as c:
|
with open(os.path.join(rootdir, 'config', 'service-scans.toml'), 'r') as c:
|
||||||
try:
|
try:
|
||||||
service_scans_config = toml.load(c)
|
service_scans_config = toml.load(c)
|
||||||
except toml.decoder.TomlDecodeError as e:
|
except toml.decoder.TomlDecodeError as e:
|
||||||
fail('Error: Couldn\'t parse service-scans.toml config file. Check syntax and duplicate tags.')
|
fail('Error: Couldn\'t parse service-scans.toml config file. Check syntax and duplicate tags.')
|
||||||
|
|
||||||
with open(os.path.join(__location__, 'config', 'global-patterns.toml'), 'r') as p:
|
with open(os.path.join(rootdir, 'config', 'global-patterns.toml'), 'r') as p:
|
||||||
try:
|
try:
|
||||||
global_patterns = toml.load(p)
|
global_patterns = toml.load(p)
|
||||||
if 'pattern' in global_patterns:
|
if 'pattern' in global_patterns:
|
||||||
|
|
|
@ -477,7 +477,7 @@ service-names = [
|
||||||
|
|
||||||
[[snmp.scan]]
|
[[snmp.scan]]
|
||||||
name = 'onesixtyone'
|
name = 'onesixtyone'
|
||||||
command = 'onesixtyone -c /usr/share/seclists/Discovery/SNMP/common-snmp-community-strings.txt -dd {address} 2>&1 | tee "{scandir}/{protocol}_{port}_snmp_onesixtyone.txt"'
|
command = 'onesixtyone -c /usr/share/seclists/Discovery/SNMP/common-snmp-community-strings_onesixtyone.txt -dd {address} 2>&1 | tee "{scandir}/{protocol}_{port}_snmp_onesixtyone.txt"'
|
||||||
run_once = true
|
run_once = true
|
||||||
ports.udp = [161]
|
ports.udp = [161]
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue