vinitshahdeo/PortScanner
The low & high range of ports in scanner.py is hardcoded
Aberta
#1 aberto em 4 de jun. de 2020
beginner friendlyfirst-timers-onlygood first issuehelp wantedup for grabs
Métricas do repositório
- Stars
- (150 estrelas)
- Métricas de merge de PR
- (Nenhuma PRs mesclada em 30d)
Description
Reading config.json and using range.low and range.high in scanner.py
The range for ports shouldn't be hardcoded. It should be ideally fetched from config.json as it's being used in server/index.js.
for port in range(1,8888):
sock = socket.socket(socket.AF_INET, socket.SOCK_STREAM)
result = sock.connect_ex((remoteServerIP, port))
if result == 0:
print "Port {}: Open".format(port)
sock.close()