# cf. http://trac.macports.org/wiki/InstallingMacPorts /opt/local/bin/port info hping3 /usr/bin/sudo /opt/local/bin/port install hping3 hping3 --help # Terminal window 1 alias sudo=/usr/bin/sudo alias tcpdump=/usr/sbin/tcpdump #sudo tcpdump -s0 -xX -i lo0 port 4678 and host localhost sudo tcpdump -s0 -vvv -i lo0 port 4678 and host localhost # Terminal window 2 alias sudo=/usr/bin/sudo alias hping3=/opt/local/sbin/hping3 sudo hping3 -I lo0 -s 4678 -c 1 localhost -p 4678 sudo hping3 -S -I lo0 -d 995 -s 4678 -c 1 localhost -p 4678 sudo hping3 -SA -I lo0 -d 995 -w 200 -s 4678 -c 1 localhost -p 4678 sudo hping3 -SA -M 3000 -I lo0 -d 995 -w 65 -s 4678 -c 1 localhost -p 4678 sudo hping3 -DV -SA -I lo0 -s 4678 -a 192.168.1.100 -c 1 localhost -p 4678 #---------------------------------------- # some corresponding ipfw rules for testing purposes # (just place them at the beginning of your ipfw rule set) # not me to me & me to not me /sbin/ipfw -q add count log all from not me to me 4678 in /sbin/ipfw -q add count log all from me to not me 4678 out # any to me & me to any /sbin/ipfw -q add count log all from any to me 4678 in /sbin/ipfw -q add count log all from me to any 4678 out # any to any /sbin/ipfw -q add count log all from any to any 4678
Never been to CodeSnippets before?
Snippets is a public source code repository. Easily build up your personal collection of code snippets, categorize them with tags / keywords, and share them with the world (or not, you can keep them private!)
Ping a port with hping3 (See related posts)
You need to create an account or log in to post comments to this site.
Related Posts
» Enable internet traffic via ... in awk shell osx mac bash unix web port ipfw firewall internet access traffic
» Enable access to specified w... in shell osx mac bash unix web ipfw firewall internet access traffic website pipestatus
» Analyze internet traffic vol... in awk shell osx mac bash unix dynamic web ipfw internet traffic volume rule
» Simple internet traffic summ... in awk shell osx mac bash unix web internet traffic summary tcpdump
» Block internet traffic to sp... in shell osx mac bash ip unix web internet access route traffic website localhost ipaddress block blackhole
» Batch download code snippets in shell osx mac curl bash unix code web download internet batch ed getopts snippets trap
Snippets (source code soon to be available) developed by Peter Cooper and powered by Ruby On Rails