查詢自己公網IP(nping,nmap子工具)

nping是nmap的子命令、子工具

查詢自己公網IP

  • nping --echo-client "public" echo.nmap.org --udp

 

SENT (1.9332s) UDP 192.168.1.106:53 > 45.33.32.156:40125 ttl=64 id=38352 iplen=28 
CAPT (2.0617s) UDP 221.218.209.62:53 > 45.33.32.156:40125 ttl=50 id=38352 iplen=28 
RCVD (2.1899s) ICMP [45.33.32.156 > 192.168.1.106 Port unreachable (type=3/code=3) ] IP [ttl=49 id=542 iplen=56 ]
SENT (2.9411s) UDP 192.168.1.106:53 > 45.33.32.156:40125 ttl=64 id=38352 iplen=28 
CAPT (3.0566s) UDP 221.218.209.62:53 > 45.33.32.156:40125 ttl=50 id=38352 iplen=28 
RCVD (3.1620s) ICMP [45.33.32.156 > 192.168.1.106 Port unreachable (type=3/code=3) ] IP [ttl=49 id=636 iplen=56 ]
SENT (3.9442s) UDP 192.168.1.106:53 > 45.33.32.156:40125 ttl=64 id=38352 iplen=28 
CAPT (4.0713s) UDP 221.218.209.62:53 > 45.33.32.156:40125 ttl=50 id=38352 iplen=28 
RCVD (4.1685s) ICMP [45.33.32.156 > 192.168.1.106 Port unreachable (type=3/code=3) ] IP [ttl=49 id=856 iplen=56 ]
SENT (4.9476s) UDP 192.168.1.106:53 > 45.33.32.156:40125 ttl=64 id=38352 iplen=28


221.218.209.62就是我們的公網IP

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章