- Mastering Kali Linux for Advanced Penetration Testing(Second Edition)
- Vijay Kumar Velu
- 106字
- 2021-07-02 21:04:23
Writing your own port scanner using netcat
While attackers utilize the proxying application and Tor network, it is also possible for them to write their own custom network port scanner. The following one-line command can be utilized during penetration testing to identify the list of open ports just by using netcat:
while read r; do nc -v -z $r 1-65535; done <iplist

The same script can be modified for more targeted attacks on a single IP as follows:
while read r; do nc -v -z target $r; done < ports
The chances of getting alerted in any intrusion detection system using custom port scanners is high.
推薦閱讀
- Cocos2d Cross-Platform Game Development Cookbook(Second Edition)
- Extending Jenkins
- Mastering Zabbix(Second Edition)
- 零起步玩轉掌控板與Mind+
- Rust實戰
- Java高并發核心編程(卷2):多線程、鎖、JMM、JUC、高并發設計模式
- Animate CC二維動畫設計與制作(微課版)
- Mastering ServiceNow(Second Edition)
- Python算法從菜鳥到達人
- Creating Mobile Apps with jQuery Mobile(Second Edition)
- Python極簡講義:一本書入門數據分析與機器學習
- Flowable流程引擎實戰
- HTML5+CSS3+jQuery Mobile APP與移動網站設計從入門到精通
- 快樂編程:青少年思維訓練
- Mastering Node.js