Skip to content

Commit

Permalink
bug fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
ruppde committed Jan 16, 2020
1 parent 3c77e94 commit 0ffb6d2
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions cve-2019-19781_scanner.py
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ def check_server(target, targetport, verbose):
req = submit_url(url)

# if the system is still vulnerable
if ("[global]") and ("encrypt passwords") and("name resolve order") in str(req.content): # each smb.conf will contain a [global] variable
if ("[global]") in str(req.content) and ("encrypt passwords") in str(req.content) and("name resolve order") in str(req.content): # each smb.conf will contain a [global] variable
print("[\033[91m!\033[0m] This Citrix ADC Server: %s is still vulnerable to CVE-2019-19781." % (target))
vulnServers.append(target)
return 1
Expand Down Expand Up @@ -138,7 +138,7 @@ def check_server(target, targetport, verbose):
thread.join()

# cidr lookups for ASN lookups
if "as" in (args.target).lower():
elif "as" in (args.target).lower():
CIDR_Blocks = asn_to_ip(args.target)
for ip_block in CIDR_Blocks:
for ip in IPNetwork(ip_block):
Expand Down

0 comments on commit 0ffb6d2

Please sign in to comment.