Skip to content

Commit

Permalink
fix the pr bugs
Browse files Browse the repository at this point in the history
  • Loading branch information
jorhelp committed Aug 6, 2022
1 parent 18e8a9a commit 7ce1594
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion scan/modules.py
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ def device_type(ip: str) -> list:
f"http://{ip}", # dlink
]
# these are need to be hashed
for url in url_list[:3]:
for url in url_list[:-1]:
try:
r = requests.get(url, timeout=TIMEOUT, verify=False)
if r.status_code == 200:
Expand Down
2 changes: 1 addition & 1 deletion scan/scanner.py
Original file line number Diff line number Diff line change
Expand Up @@ -166,7 +166,7 @@ def scan(self, ip_term: str):
elif dev_type == 'dlink':
if 'cve_2020_25078' in self.modules: found |= self.scan_meta(ip, 'cve_2020_25078')
elif dev_type == 'uniview-nvr':
if 'uniview_disclosure' in self.modules: found != self.scan_meta(ip, 'uniview_disclosure')
if 'uniview_disclosure' in self.modules: found |= self.scan_meta(ip, 'uniview_disclosure')

if not found and dev_type != 'unidentified':
save_res([ip, dev_type], os.path.join(self.args.out_path, RESULTS_FAILED))
Expand Down

0 comments on commit 7ce1594

Please sign in to comment.