Using NMAP as a port knocker

I want to send packets to a specific UDP or TCP port on another box to test firewalls rules. Using nmap you can send packets to specific ports as follows

nmap server.domain.com -sU -sT -P0 -p U:3130,3128,T:22,80

This will send a UDP packet to ports 3130 and 3128, and a TCP packet to ports 22 and 80.

Leave A Reply
All content licensed under the Creative Commons License