Skip to content

Commit

Permalink
portscan_tcp module: report port open with no banner (e.g., tcpwrappe…
Browse files Browse the repository at this point in the history
  • Loading branch information
p-l- authored Sep 22, 2022
1 parent 820f429 commit b385fab
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions modules/sfp_portscan_tcp.py
Original file line number Diff line number Diff line change
Expand Up @@ -120,6 +120,10 @@ def tryPort(self, ip, port):
except Exception:
sock.close()
return
else:
if not self.portResults[peer]:
# No banner, but port is open
self.portResults[peer] = True

sock.close()

Expand Down

0 comments on commit b385fab

Please sign in to comment.