I would like to get range port scan results from one of my server IP by using a single port scan command line.
(Don't recommend me other port scanners like nmap which has a port range scan feature please :( )
Command-line examples are following
(I just want to scan a specific IP with multiple ports)
root@localhost: serverstats IP:Port
root@localhost: serverstats 1.1.1.1:2000
Result/output↓↓↓
root@localhost: {"online": true}
What I would like to do
root@localhost: serverstats 1.1.1.1:2200 ? serverstats 1.1.1.1:2500 (About 300 ports)
Command result/output -> root@localhost: {"online": true}
Scan 300 port range on a single IP with the above single port scan command and save the command results/outputs automatically in a text file like the following :)
300ports.log ↓
{"online": true}
{"online": false}
{"online": false}
{"online": true}
{"online": false}
..... (and remaining 295 port scan results)
Thank you!
question from:
https://stackoverflow.com/questions/65915030/replace-specific-command-line-automatically-and-save-the-results 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…