1介紹
gping能夠以折線圖的方式,實時展示 ping 的結果,支持 Windows、Linux 和 macOS 操作系統。并且支持多個目標同時Ping同時展示折線圖方便對比。下面擴展一下ICMP及ICMP隧道。
ICMP消息結構:
ICMP消息是由一個類型字段、一個代碼字段、一個校驗和字段和與特定消息類型相關的數據字段組成的。類型字段和代碼字段一起確定了消息的類型和子類型,而數據字段可以攜帶各種信息,具體取決于消息的類型和代碼。以下是常規ICMP報文格式:
靈活性:
ICMP協議設計靈活,允許在數據字段中攜帶各種信息。這種靈活性使得可以將數據包封裝在ICMP消息中,并通過網絡傳輸,因為數據字段的內容并不受到太多的限制,只要它在特定的消息類型和代碼下合法。
封裝和解封裝:發送端將要傳輸的數據包封裝在一個ICMP消息中,然后將該ICMP消息封裝在一個IP數據包中,以便將其發送到目標。接收端首先解封裝IP數據包,然后解封裝包含原始數據包的ICMP消息,最終提取出原始數據包。
隧道技術:
ICMP隧道技術利用了ICMP消息的封裝和解封裝能力,使得數據包可以在ICMP消息中進行傳輸。通常,ICMP隧道軟件會將要傳輸的數據分割成小塊,并將每個小塊封裝在不同的ICMP消息中,然后發送到目標。在目標端,ICMP隧道軟件會解析接收到的ICMP消息,提取出原始數據,并將其還原成完整的數據包。
隱蔽性:
ICMP隧道通常不太容易被網絡審查或防火墻檢測到,因為ICMP消息在網絡中非常常見,用于各種網絡管理任務。這使得ICMP隧道成為一種潛在的隱蔽通信方法。
TTL以及其他ICMP的具體機制下次一定
2對比
傳統Ping:
單目標Gping:
雙目標Gping:
3使用
$ gping --help Ping, but with a graph. Usage: gping [OPTIONS] [HOSTS_OR_COMMANDS]... Arguments: [HOSTS_OR_COMMANDS]... Hosts or IPs to ping, or commands to run if --cmd is provided. Can use cloud shorthands like aws:eu-west-1. Options: --cmd Graph the execution time for a list of commands rather than pinging hosts -n, --watch-intervalWatch interval seconds (provide partial seconds like '0.5'). Default for ping is 0.2, default for cmd is 0.5. -b, --buffer Determines the number of seconds to display in the graph. [default: 30] -4 Resolve ping targets to IPv4 address -6 Resolve ping targets to IPv6 address -i, --interface Interface to use when pinging -s, --simple-graphics Uses dot characters instead of braille --vertical-margin Vertical margin around the graph (top and bottom) [default: 1] --horizontal-margin Horizontal margin around the graph (left and right) [default: 0] -c, --color Assign color to a graph entry. This option can be defined more than once as a comma separated string, and the order which the colors are provided will be matched against the hosts or commands passed to gping. Hexadecimal RGB color codes are accepted in the form of '#RRGGBB' or the following color names: 'black', 'red', 'green', 'yellow', 'blue', 'magenta','cyan', 'gray', 'dark-gray', 'light-red', 'light-green', 'light-yellow', 'light-blue', 'light-magenta', 'light-cyan', and 'white' -h, --help Print help information -V, --version Print version information --clear Clear the graph from the terminal after closing the program
gping --help
4
安裝
Linux
wget https://github.com/orf/gping/releases/download/gping-v1.14.0/gping-Linux-x86_64.tar.gz ┌──(root?kali)-[~] └─# mv gping /usr/local/bin ┌──(root?kali)-[~] └─# gping Error: At least one host or command must be given (i.e gping google.com). Use --help for a full list of arguments. #安裝成功
Windows
將可執行文件放入C:/Windows目錄下
審核編輯:湯梓紅
-
Linux
+關注
關注
87文章
11351瀏覽量
210498 -
操作系統
+關注
關注
37文章
6900瀏覽量
123805 -
Ping
+關注
關注
0文章
69瀏覽量
16068 -
測試工具
+關注
關注
0文章
57瀏覽量
11972
原文標題:一個圖形化PING測試工具
文章出處:【微信號:網絡工程師筆記,微信公眾號:網絡工程師筆記】歡迎添加關注!文章轉載請注明出處。
發布評論請先 登錄
相關推薦
[分享]圖形化系統的設計
NI LabVIEW的圖形化編程有什么優勢
labview圖形化編程分享!
介紹一款運行在PC機上的圖形化在線調試工具
TPTTPT動態自動化測試工具怎么樣
怎樣去使用rockchip在ubuntu下提供圖形化的燒寫工具呢
常用的軟件測試工具有哪些_10款常用的軟件測試工具推薦
初學GDB調試工具需要注意的事項
![初學GDB調<b class='flag-5'>試工具</b>需要注意的事項](https://file.elecfans.com/web1/M00/92/5B/pIYBAFzdMTaAY_ZFAABrNEk8FS8344.png)
STM32CubeMX圖形化配置工具的安裝教程
![STM32CubeMX<b class='flag-5'>圖形化</b>配置<b class='flag-5'>工具</b>的安裝教程](https://file.elecfans.com/web2/M00/05/4E/poYBAGDeyD-AaphvAADHtzpTOEs226.png)
STM32CubeMx圖形化配置工具的主要特征與安裝教程
![STM32CubeMx<b class='flag-5'>圖形化</b>配置<b class='flag-5'>工具</b>的主要特征與安裝教程](https://file.elecfans.com//web2/M00/46/33/poYBAGKQ3tKAMwawAAGcD9COJFM564.png)
一款圖形化高危漏洞利用工具
領芯靈犀(ChipHearts)平臺發布:領芯MCU產品線圖形化配置調試工具
![領芯靈犀(ChipHearts)平臺發布:領芯MCU產品線<b class='flag-5'>圖形化</b>配置調<b class='flag-5'>試工具</b>](https://file1.elecfans.com/web2/M00/8D/4F/wKgaomS47NmAKYtrAAG0U5_vI-g544.png)
評論