
Scanner de portas Python em arquivo único e sem dependências, com varredura TCP/UDP multithread, captura de banners, extração de título HTTP, consulta de hostname via NBNS e verificações básicas para Redis e MS17-010.
Script de varredura de portas em Python de arquivo único e sem dependências, com suporte à detecção de algumas vulnerabilidades simples
Convenient to throw onto a Webshell and run, but it might be a bit noisy; you can first run a round with the U parameter (NBNS)
Competitions and such don't matter
By default, both TCP and UDP are run
Default ports: 21-23,25,80,81,110,135,137,139,445,873,1433,1521,3306,3389,6379,7001,8000,8069,8080-8090,9000,9001,10051,11211
UDP ones you can add yourself
Desvantagem: uma thread por IP, então não é possível encerrar com KeyboardInterrupt; quando houver tempo, mudar para usar fila
Changed to use a queue where a queue is used, so Keyboardinterrupt can now be used Also fixed the encoding issue on port 445 Updated NBNS parsing method (may not be reliable)
Fixed the decode() pitfall in Python 2.6 and some miscellaneous encoding issues (may not be fully fixed)
Also, optparse is used to parse input; this library is also included with Python 2.6~
python scan.py ip [-o nt] [-p 80,81-85,...]
ip can be a single IP, a CIDR, or a form like 192.168.0.0-255 -o option: n means use NBNS to probe hostnames, t means probe TCP ports; by default both are probed simultaneously -p specifies TCP ports
python scan.py 10.19.38.0/24
Scans the default ports of 10.19.38.0/24 and retrieves hostnames
python scan.py 10.19.38.0/24 -o n
Retrieves hostnames of 10.19.38.0/24 without scanning TCP ports
python scan.py 10.19.38.0/24 -p 22,23-25
Scans TCP ports 22,23,24,25 of 10.19.38.0/24 and retrieves hostnames
[*]202.115.*.*
21 220 MikroTik FTP server (MikroTik 5.20) ready\r\n
22 SSH-2.0-ROSSSH\r\n
23 #'
80 HTTP/1.1 200 OK Title: RouterOS router configuration page
445 +Vulnerable+ MS 17-010 Windows 7 Professional 7601 Service Pack 1|Windows 7 Professional 6.1|
Descubra as ferramentas mais usadas pela nossa comunidade.
Sem dados de popularidade ainda.