Net scan
- scan port
- scan ip
Installation
npm install net-scan -g
CLI
npm test
scan -h github.com -r 1~1000
Output:
scan host: github.com ports 1~1000port 80 is openscanning [ ] 0% 1/1000 port 22 is openscanning [ ] 0% 2/1000 port 443 is openscanning [====================] 100% 1000/1000 ports scan: 5245msopen ports: [ 80, 22, 443 ]
Example
Range scan
var scan = ; console;scanport host: 'github.com' start: 1 end: 1000 timeout: 2000 queue: 1000 { console; console;};
Output
ports scan: 2232msopen ports: [ 22, 80, 443 ]
Ports scan
var scan = ; console;scanport host: 'github.com' ports: 20 21 22 80 443 3306 27017 timeout: 2000 { console; console;};
Output
ports scan: 2015msopen ports: [ 443, 22, 80 ]
Listener
console;scanport host: 'github.com' start: 1 end: 1000 timeout: 2000 queue: 1000 ;
Output
found port open 22found port open 80found port open 443ports scan: 2243msscan port over
Todo
- scan array ips
- add command.js op