본문 바로가기

Hojung's Command List

Total Commands : 232

 (e)grep (6)
 * find large files (2)
 * System info (12)
 * Term Key (8)
 * use previous argu (1)
 *CD/DVD cmd (5)
 *DNS test (4)
 ab (2)
 apg (1)
 arping (4)
 at (1)
 awk (1)
 cal (2)
 cd and pushd (3)
 crontab (7)
 curl (4)
 dd (1)
 dhclient (1)
 dig (2)
 du (1)
 echo (1)
 editcap (1)
 ethtool (2)
 find (20)
 head (1)
 history (1)
 host (1)
 hping3 (6)
 ifconfig (3)
 lftp (1)
 logger (1)
 ls (2)
 lsof (2)
 mail (2)
 man (1)
 mergecap (1)
 mount (8)
 nc (netcat) (1)
 ncftpput (1)
 netcat(nc) (1)
 netstat (1)
 nice (2)
 nl (1)
 nmap (5)
 ntpdate (1)
 openssl (15)
 ping (1)
 pkill (1)
 ps (2)
 rar (1)
 recode (6)
 rename (3)
 rm (1)
 route (2)
 rpm (4)
 sed (4)
 smb (3)
 snmpwalk (2)
 sort (4)
 ssh (1)
 tar (6)
 tcpdump (10)
 top (1)
 touch (2)
 uniq (1)
 vi (11)
 wall (2)
 wget (3)
 yum (5)
 zip/unzip (6)

여러 속도로 패킷 보내기

hping3 -c 5 --syn -p 80 172.28.14.206 <----- 1초당 패킷1개 (5개 패킷 5초걸림)
hping3 -c 50 --fast --syn -p 80 172.28.14.206 <----- 1초당 패킷10개 (50개 패킷 5초걸림)
hping3 -c 50 --faster --syn -p 80 172.28.14.206 <----- fast 보다 빠르게 (테스트시 50개 패킷 0.098초 걸림)
hping3 --flood --syn -p 80 172.28.14.206 <----- 카운트없이 Flood 함

hping3 -c 5 -i 1 --syn -p 80 172.28.14.206 <----- 1초 간격으로 5개 패킷보냄
hping3 -c 5 -i u100000 --syn -p 80 172.28.14.206 <----- 0.1초 간격으로 5개 패킷보냄

-c : count
-i : interval X sec or uX micro sec (1 seconds = u1000000 micro seconds)
--rand-source : rand source
Written by Hojung at 2013-01-28 15:22:47

UDP 패킷 보내기

hping3 -c 1 --udp -p 80 172.28.68.110

15:47:37.922446 IP 192.168.206.123.2200 > 172.28.68.110.80: UDP, length 0
15:47:37.923250 IP 172.28.68.110 > 192.168.206.123: ICMP host 172.28.68.110 unreachable - admin prohibited, length 36
Written by Hojung at 2010-05-20 16:42:33

TCP 플래그

hping3 -c 1 -p 80 172.28.68.110 <-------- no flag

--urg
--ack
--push
--rst
--syn
--fin
Written by Hojung at 2010-05-20 16:41:29

SYN 패킷 하나 보내기 (응답이 없는 경우)

hping3 -c 1 --syn -p 82 172.28.68.110

HPING 172.28.68.110 (eth0 172.28.68.110): S set, 40 headers + 0 data bytes

--- 172.28.68.110 hping statistic ---
1 packets transmitted, 0 packets received, 100% packet loss
round-trip min/avg/max = 0.0/0.0/0.0 ms
Written by Hojung at 2010-05-20 16:35:41

SYN 패킷 하나 보내기 (ICMP host unreachable 응답)

hping3 -c 1 --syn -p 81 172.28.68.110

HPING 172.28.68.110 (eth0 172.28.68.110): S set, 40 headers + 0 data bytes
ICMP Unreachable type=10 from ip=172.28.68.110 name=yun

--- 172.28.68.110 hping statistic ---
1 packets transmitted, 1 packets received, 0% packet loss
round-trip min/avg/max = 0.0/0.0/0.0 ms
--------------------------------------
15:37:25.301981 IP 192.168.206.123.1831 > 172.28.68.110.81: Flags [S], seq 62739740, win 512, length 0
15:37:25.302867 IP 172.28.68.110 > 192.168.206.123: ICMP host 172.28.68.110 unreachable - admin prohibited, length 48
Written by Hojung at 2010-05-20 16:33:02

SYN 패킷 하나 보내기 (응답하는 경우)

hping3 -c 1 --syn -p 80 172.28.68.110

HPING 172.28.68.110 (eth0 172.28.68.110): S set, 40 headers + 0 data bytes
len=46 ip=172.28.68.110 ttl=61 DF id=0 sport=80 flags=SA seq=0 win=5840 rtt=0.9 ms

--- 172.28.68.110 hping statistic ---
1 packets transmitted, 1 packets received, 0% packet loss
round-trip min/avg/max = 0.9/0.9/0.9 ms
-------------------------------------------
15:36:38.186235 IP 192.168.206.123.2839 > 172.28.68.110.80: Flags [S], seq 1323864977, win 512, length 0
15:36:38.187130 IP 172.28.68.110.80 > 192.168.206.123.2839: Flags [S.], seq 2680787317, ack 1323864978, win 5840, options [mss 1460], length 0
15:36:38.187152 IP 192.168.206.123.2839 > 172.28.68.110.80: Flags [R], seq 1323864978, win 0, length 0
Written by Hojung at 2010-05-20 16:32:12