自拍偷在线精品自拍偷,亚洲欧美中文日韩v在线观看不卡

Ngrep:方便的數(shù)據(jù)包匹配和顯示工具

安全 數(shù)據(jù)安全
ngrep 是grep(在文本中搜索字符串的工具)的網(wǎng)絡(luò)版,他力求更多的grep特征,用于搜尋指定的數(shù)據(jù)包。正由于安裝ngrep需用到libpcap庫(kù),所以支持大量的操作系統(tǒng)和網(wǎng)絡(luò)協(xié)議。能識(shí)別TCP、UDP和ICMP包,理解bpf的過(guò)濾機(jī)制。

ngrep 是grep(在文本中搜索字符串的工具)的網(wǎng)絡(luò)版,他力求更多的grep特征,用于搜尋指定的數(shù)據(jù)包。正由于安裝ngrep需用到libpcap庫(kù),所以支持大量的操作系統(tǒng)和網(wǎng)絡(luò)協(xié)議。能識(shí)別TCP、UDP和ICMP包,理解bpf的過(guò)濾機(jī)制。

下載鏈接:http://down.51cto.com/data/149233

>>去網(wǎng)絡(luò)安全工具百寶箱看看其它安全工具

應(yīng)用如下(以下的例子中本機(jī)地址是"10.178.41.31"):

  1. iron_gavel$ngrep -qd rl0 (同時(shí)在另一控制臺(tái)$mazilla http://www.google.com)  
  2. U 10.178.41.31:1054 ->; 211.98.2.4:53  
  3. .............www.google.com.....  
  4. T 216.239.57.104:80 ->; 10.178.41.31:1029 [AFP]  
  5. HTTP/1.0 302 Found..Location: http://www.google.com/intl/zh-CN/..Set-Cookie  
  6. Type: text/html..Server: GWS/2.1..Content-length: 163..Date: Sat, 08 May 20  
  7. 04 13:29:26 GMT..Connection: Keep-Alive....<HTML>;<BODY>;...BODY>;HTML>;..  

該命令的輸出說(shuō)明本機(jī)和Google交互的數(shù)據(jù)

  1. iron_gavel$ngrep -iw 'lynx'  
  2. interface: rl0 (10.178.41.0/255.255.255.0)  
  3. match: ((^lynx\W)|(\Wlynx$)|(\Wlynx\W))  
  4. T 10.178.41.31:1050 ->; 64.233.161.99:80 [AP]  
  5. GET / HTTP/1.0 Accept-Language: en..User-Agent: Lynx/2.8.4rel.1 l  
  6. ibwww-FM/2.14 SSL-MM/1.4.1 OpenSSL/0.9.7c....  
  7. 匹配進(jìn)出數(shù)據(jù)包中包括lynx(參數(shù)"i"忽略大小寫)的信息。  
  8. iron_gavel$ngrep host 10.178.41.5/*看看對(duì)面的同事在干嘛*/  
  9. interface: rl0 (10.178.0.0/255.255.0.0)  
  10. filter: ip and ( host 10.178.41.5 )  
  11. T 10.178.41.5:2035 ->; 61.153.48.247:80 [AP]  
  12. GET /show.asp HTTP/1.1..Host: www.music9999.com.  
  13. .Connection: Keep-Alive..Referer: http://www.music9999.com/....  
  14. T 219.133.40.79:7204 ->; 10.178.41.5:1115 [AP]  
  15. .(OICQ_2280***30.OICQ_33****314.1.0..5m...........  

他在瀏覽music9999.com,同時(shí)用QQ和朋友聊天。

做為sinffer的用法:

可以用ngrep來(lái)匹配特定的數(shù)據(jù)包:

  1. iron_gavel$ngrep '' udp /*匹配udp包*/  
  2. iron_gavel$ngrep '' icmp/*匹配icmp包*/  
  3. iron_gavel$ngrep '' port 53 /*顯示所有的dns請(qǐng)求*/  
  4. iron_gavel$ngrep '../'/*監(jiān)聽遠(yuǎn)程主機(jī)的'../'請(qǐng)求*/  
  5. iron_gavel$ngrep -d rl0 port 80/*服務(wù)器端http數(shù)據(jù)*/  
  6. iron_gavel$ngrep -d rl0 'error' port syslog/**/  
  7. iron_gavel$ngrep -wi -d rl0 'user|pass' port 21/*關(guān)注端口21上的user和pass*/  

下面是一些常用的參數(shù):

ngrep -v '' port 23

顯示除telnet的數(shù)據(jù)包,-v意為反轉(zhuǎn)。

ngrep -d eth0 ''

在redhat上顯示所有的數(shù)據(jù)包,-d 指定硬件接口。

責(zé)任編輯:佚名 來(lái)源: 百度空間
相關(guān)推薦

2011-05-19 13:34:50

無(wú)線信息包

2011-11-28 16:03:49

wireshark數(shù)據(jù)包

2010-12-09 21:46:26

Scapy

2023-03-27 00:13:26

數(shù)據(jù)包Kubernete網(wǎng)絡(luò)

2013-08-27 09:45:42

2020-11-18 07:54:31

太網(wǎng)數(shù)據(jù)包架構(gòu)

2021-07-15 09:57:39

Wireshark數(shù)據(jù)包長(zhǎng)度

2017-08-22 11:30:15

LinuxWireshark過(guò)濾數(shù)據(jù)包

2017-04-07 09:30:49

Linux網(wǎng)絡(luò)數(shù)據(jù)包

2019-04-29 07:53:11

TCP數(shù)據(jù)包TCP網(wǎng)絡(luò)編程

2013-05-21 14:41:42

數(shù)據(jù)包分析內(nèi)聯(lián)監(jiān)控

2012-12-04 09:54:33

路由器數(shù)據(jù)包TCP

2017-03-28 13:25:14

Linux網(wǎng)絡(luò)數(shù)據(jù)包

2013-01-21 15:11:39

路由器數(shù)據(jù)包路由技術(shù)

2012-06-20 10:18:00

2016-03-15 12:27:54

WireEdit可視化編輯工具網(wǎng)絡(luò)數(shù)據(jù)包編輯器

2019-11-12 08:46:42

網(wǎng)絡(luò)數(shù)據(jù)包欺騙網(wǎng)絡(luò)攻擊

2021-05-12 00:07:27

TCPIP協(xié)議

2022-01-14 10:59:07

數(shù)據(jù)包tcpdump

2014-07-09 09:43:59

點(diǎn)贊
收藏

51CTO技術(shù)棧公眾號(hào)