# ngrep 설치
wget http://prdownloads.sf.net/ngrep/ngrep-1.43.tar.bz2
bunzip2 ngrep-1.43.tar.bz2
tar xvfp ngrep-1.43.tar
cd ngrep-1.43
* gcc 가 없다면 설치
yum -y install gcc
* pcap
yum -y install libpcap-devel
./configure
make
# 사용방법
usage: ngrep <-hXViwqpevxlDtTRM> <-IO pcap_dump> <-n num> <-d dev> <-A num>
<-s snaplen> <-S limitlen> <-W normal|byline|none> <-c cols>
<-P char> <-F file> <match expression> <bpf filter>
-h is help/usage
-V is version information
-q is be quiet (don't print packet reception hash marks)
-e is show empty packets
-i is ignore case
-v is invert match
-R is don't do privilege revocation logic
-x is print in alternate hexdump format
-X is interpret match expression as hexadecimal
-w is word-regex (expression must match as a word)
-p is don't go into promiscuous mode
-l is make stdout line buffered
-D is replay pcap_dumps with their recorded time intervals
-t is print timestamp every time a packet is matched
-T is print delta timestamp every time a packet is matched
-M is don't do multi-line match (do single-line match instead)
-I is read packet stream from pcap format file pcap_dump
-O is dump matched packets in pcap format to pcap_dump
-n is look at only num packets
-A is dump num packets after a match
-s is set the bpf caplen
-S is set the limitlen on matched packets
-W is set the dump format (normal, byline, none)
-c is force the column width to the specified size
-P is set the non-printable display char to what is specified
-F is read the bpf filter from the specified file
-d is use specified device instead of the pcap default
./ngrep -t port 80
[root@www ngrep-1.43]# ./ngrep -t port 80
interface: eth0 (211.x.x.x/255.255.255.128)
filter: ip and ( port 80 )
####
T 2011/09/16 10:57:18.288304 x.x.x.x:50815 -> x.x.x.x:80 [AP]
GET / HTTP/1.1..Accept: */*..Accept-Language: ko-KR..User-Agent: Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 6.1; Trident/4.0; GTB7.1; chromeframe/13.0.782.220; SLCC2; .NET
CLR 2.0.50727; .NET CLR 3.5.30729; .NET CLR 3.0.30729; Media Center PC 6.0; .NET4.0C)..Accept-Encoding: gzip, deflate..Host: x.x.x.x.Connection: Keep-Alive....
##
...중략
게시판 목록
프로그램
| 번호 | 제목 | 글쓴이 | 날짜 | 조회 |
|---|---|---|---|---|
| 5230 | 13년 전 | 3073 | ||
| 5229 | 13년 전 | 576 | ||
| 5228 | 13년 전 | 621 | ||
| 5227 | 13년 전 | 725 | ||
| 5226 | 13년 전 | 9181 | ||
| 5225 | 13년 전 | 2191 | ||
| 5224 | 13년 전 | 2606 | ||
| 5223 | 13년 전 | 2581 | ||
| 5222 | 13년 전 | 3146 | ||
| 5221 |
visualp
|
13년 전 | 725 | |
| 5220 |
|
13년 전 | 772 | |
| 5219 | 13년 전 | 4665 | ||
| 5218 |
|
13년 전 | 701 | |
| 5217 |
크라이스트
|
13년 전 | 1382 | |
| 5216 | 13년 전 | 1245 | ||
| 5215 | 13년 전 | 1260 | ||
| 5214 | 13년 전 | 1133 | ||
| 5213 | 13년 전 | 688 | ||
| 5212 | 13년 전 | 1367 | ||
| 5211 | 13년 전 | 758 | ||
| 5210 |
visualp
|
13년 전 | 1484 | |
| 5209 |
visualp
|
13년 전 | 1099 | |
| 5208 |
mammoth
|
13년 전 | 737 | |
| 5207 | 13년 전 | 2115 | ||
| 5206 | 13년 전 | 1091 | ||
| 5205 | 13년 전 | 699 | ||
| 5204 |
|
13년 전 | 2269 | |
| 5203 | 13년 전 | 1187 | ||
| 5202 | 13년 전 | 1214 | ||
| 5201 |
kastel
|
13년 전 | 1375 | |
| 5200 | 13년 전 | 1087 | ||
| 5199 | 13년 전 | 571 | ||
| 5198 | 13년 전 | 635 | ||
| 5197 | 13년 전 | 1571 | ||
| 5196 | 13년 전 | 788 | ||
| 5195 | 13년 전 | 1800 | ||
| 5194 | 13년 전 | 1300 | ||
| 5193 | 13년 전 | 617 | ||
| 5192 | 13년 전 | 4065 | ||
| 5191 | 13년 전 | 746 | ||
| 5190 |
|
13년 전 | 1863 | |
| 5189 | 13년 전 | 1201 | ||
| 5188 | 13년 전 | 1549 | ||
| 5187 |
믹스디자인
|
13년 전 | 817 | |
| 5186 |
|
13년 전 | 2391 | |
| 5185 | 13년 전 | 1434 | ||
| 5184 | 13년 전 | 897 | ||
| 5183 | 13년 전 | 1406 | ||
| 5182 | 13년 전 | 683 | ||
| 5181 | 13년 전 | 718 | ||
| 5180 |
프리온관리자
|
13년 전 | 718 | |
| 5179 | 13년 전 | 989 | ||
| 5178 | 13년 전 | 650 | ||
| 5177 | 13년 전 | 576 | ||
| 5176 | 13년 전 | 693 | ||
| 5175 | 13년 전 | 1427 | ||
| 5174 | 13년 전 | 872 | ||
| 5173 | 13년 전 | 604 | ||
| 5172 |
|
13년 전 | 577 | |
| 5171 | 13년 전 | 911 | ||
| 5170 |
KhanSu
|
13년 전 | 705 | |
| 5169 | 13년 전 | 2166 | ||
| 5168 | 13년 전 | 1491 | ||
| 5167 |
sir24
|
13년 전 | 686 | |
| 5166 | 13년 전 | 1753 | ||
| 5165 | 13년 전 | 734 | ||
| 5164 | 13년 전 | 1660 | ||
| 5163 |
|
13년 전 | 998 | |
| 5162 |
곰도리푸우
|
13년 전 | 4095 | |
| 5161 |
UltraUCC
|
13년 전 | 1231 | |
| 5160 |
|
13년 전 | 886 | |
| 5159 |
그런듯아닌듯
|
13년 전 | 545 | |
| 5158 |
|
13년 전 | 521 | |
| 5157 | 13년 전 | 1657 | ||
| 5156 | 13년 전 | 1163 | ||
| 5155 | 13년 전 | 2653 | ||
| 5154 | 13년 전 | 798 | ||
| 5153 | 13년 전 | 790 | ||
| 5152 |
|
13년 전 | 629 | |
| 5151 | 13년 전 | 836 | ||
| 5150 |
senseme
|
13년 전 | 560 | |
| 5149 |
워드앤코드
|
13년 전 | 1011 | |
| 5148 | 13년 전 | 706 | ||
| 5147 |
프로프리랜서
|
13년 전 | 908 | |
| 5146 | 13년 전 | 2403 | ||
| 5145 |
투코아미디어
|
13년 전 | 1505 | |
| 5144 |
there007
|
13년 전 | 1512 | |
| 5143 | 13년 전 | 1375 | ||
| 5142 | 13년 전 | 2095 | ||
| 5141 |
silky
|
13년 전 | 767 | |
| 5140 |
silky
|
13년 전 | 646 | |
| 5139 |
silky
|
13년 전 | 1986 | |
| 5138 |
silky
|
13년 전 | 586 | |
| 5137 |
silky
|
13년 전 | 615 | |
| 5136 |
silky
|
13년 전 | 898 | |
| 5135 |
silky
|
13년 전 | 623 | |
| 5134 |
silky
|
13년 전 | 477 | |
| 5133 |
|
13년 전 | 846 | |
| 5132 |
복이219
|
13년 전 | 973 | |
| 5131 |
바부바부팅이
|
13년 전 | 1020 |
댓글 작성
댓글을 작성하시려면 로그인이 필요합니다.
로그인하기