# 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....
##
...중략
게시판 목록
프로그램
| 번호 | 제목 | 글쓴이 | 날짜 | 조회 |
|---|---|---|---|---|
| 8230 | 9년 전 | 179 | ||
| 8229 | 9년 전 | 164 | ||
| 8228 |
커네드커네드
|
9년 전 | 201 | |
| 8227 | 9년 전 | 244 | ||
| 8226 | 9년 전 | 263 | ||
| 8225 | 9년 전 | 239 | ||
| 8224 | 9년 전 | 250 | ||
| 8223 | 9년 전 | 222 | ||
| 8222 |
|
9년 전 | 288 | |
| 8221 | 9년 전 | 190 | ||
| 8220 | 9년 전 | 229 | ||
| 8219 | 9년 전 | 201 | ||
| 8218 | 9년 전 | 246 | ||
| 8217 |
star3840
|
9년 전 | 210 | |
| 8216 | 9년 전 | 278 | ||
| 8215 | 9년 전 | 223 | ||
| 8214 | 9년 전 | 331 | ||
| 8213 | 9년 전 | 291 | ||
| 8212 | 9년 전 | 204 | ||
| 8211 | 9년 전 | 372 | ||
| 8210 | 9년 전 | 369 | ||
| 8209 | 9년 전 | 449 | ||
| 8208 | 9년 전 | 337 | ||
| 8207 | 9년 전 | 348 | ||
| 8206 |
|
9년 전 | 291 | |
| 8205 | 9년 전 | 265 | ||
| 8204 | 9년 전 | 253 | ||
| 8203 | 9년 전 | 332 | ||
| 8202 | 9년 전 | 247 | ||
| 8201 | 9년 전 | 285 | ||
| 8200 | 9년 전 | 292 | ||
| 8199 | 9년 전 | 311 | ||
| 8198 | 9년 전 | 279 | ||
| 8197 | 9년 전 | 261 | ||
| 8196 | 9년 전 | 684 | ||
| 8195 | 9년 전 | 269 | ||
| 8194 | 9년 전 | 382 | ||
| 8193 | 9년 전 | 296 | ||
| 8192 | 9년 전 | 305 | ||
| 8191 | 9년 전 | 264 | ||
| 8190 | 9년 전 | 243 | ||
| 8189 | 9년 전 | 304 | ||
| 8188 | 9년 전 | 238 | ||
| 8187 | 9년 전 | 251 | ||
| 8186 | 9년 전 | 249 | ||
| 8185 | 9년 전 | 417 | ||
| 8184 | 9년 전 | 205 | ||
| 8183 | 9년 전 | 415 | ||
| 8182 | 9년 전 | 283 | ||
| 8181 | 9년 전 | 239 | ||
| 8180 | 9년 전 | 809 | ||
| 8179 | 9년 전 | 589 | ||
| 8178 | 9년 전 | 447 | ||
| 8177 |
kiplayer
|
9년 전 | 442 | |
| 8176 | 9년 전 | 474 | ||
| 8175 | 9년 전 | 363 | ||
| 8174 | 9년 전 | 353 | ||
| 8173 | 9년 전 | 445 | ||
| 8172 | 9년 전 | 326 | ||
| 8171 | 9년 전 | 285 | ||
| 8170 | 9년 전 | 404 | ||
| 8169 |
커네드커네드
|
9년 전 | 360 | |
| 8168 | 9년 전 | 443 | ||
| 8167 | 9년 전 | 432 | ||
| 8166 | 9년 전 | 329 | ||
| 8165 | 9년 전 | 269 | ||
| 8164 | 9년 전 | 406 | ||
| 8163 | 9년 전 | 411 | ||
| 8162 | 9년 전 | 395 | ||
| 8161 | 9년 전 | 407 | ||
| 8160 |
|
9년 전 | 629 | |
| 8159 | 9년 전 | 573 | ||
| 8158 | 9년 전 | 370 | ||
| 8157 | 9년 전 | 485 | ||
| 8156 | 9년 전 | 359 | ||
| 8155 | 9년 전 | 366 | ||
| 8154 |
00년생용띠
|
9년 전 | 698 | |
| 8153 | 9년 전 | 336 | ||
| 8152 |
|
9년 전 | 516 | |
| 8151 | 9년 전 | 508 | ||
| 8150 | 9년 전 | 627 | ||
| 8149 |
Jangfolk
|
9년 전 | 481 | |
| 8148 | 9년 전 | 298 | ||
| 8147 | 9년 전 | 481 | ||
| 8146 | 9년 전 | 562 | ||
| 8145 | 9년 전 | 521 | ||
| 8144 | 9년 전 | 488 | ||
| 8143 | 9년 전 | 316 | ||
| 8142 | 9년 전 | 528 | ||
| 8141 | 9년 전 | 477 | ||
| 8140 | 9년 전 | 1040 | ||
| 8139 | 9년 전 | 385 | ||
| 8138 |
전갈자리남자
|
9년 전 | 492 | |
| 8137 | 9년 전 | 526 | ||
| 8136 | 9년 전 | 858 | ||
| 8135 |
|
9년 전 | 898 | |
| 8134 |
PlayPixel
|
9년 전 | 640 | |
| 8133 |
|
9년 전 | 546 | |
| 8132 | 9년 전 | 584 | ||
| 8131 | 9년 전 | 942 |
댓글 작성
댓글을 작성하시려면 로그인이 필요합니다.
로그인하기