# 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....
##
...중략
게시판 목록
프로그램
| 번호 | 제목 | 글쓴이 | 날짜 | 조회 |
|---|---|---|---|---|
| 430 | 19년 전 | 4127 | ||
| 429 | 19년 전 | 3321 | ||
| 428 | 19년 전 | 4141 | ||
| 427 | 19년 전 | 3489 | ||
| 426 | 19년 전 | 3115 | ||
| 425 | 19년 전 | 3430 | ||
| 424 | 19년 전 | 2450 | ||
| 423 | 19년 전 | 2878 | ||
| 422 | 19년 전 | 2369 | ||
| 421 | 19년 전 | 3722 | ||
| 420 | 19년 전 | 4754 | ||
| 419 | 19년 전 | 3831 | ||
| 418 |
|
19년 전 | 1765 | |
| 417 | 19년 전 | 2763 | ||
| 416 | 19년 전 | 2408 | ||
| 415 | 19년 전 | 2613 | ||
| 414 | 19년 전 | 4430 | ||
| 413 |
|
19년 전 | 2623 | |
| 412 | 19년 전 | 3065 | ||
| 411 |
|
19년 전 | 3001 | |
| 410 |
|
19년 전 | 3706 | |
| 409 |
|
19년 전 | 3651 | |
| 408 |
|
19년 전 | 1871 | |
| 407 | 19년 전 | 2242 | ||
| 406 | 19년 전 | 2810 | ||
| 405 | 19년 전 | 2475 | ||
| 404 | 19년 전 | 4323 | ||
| 403 | 19년 전 | 3314 | ||
| 402 |
NeoGenesis
|
19년 전 | 4111 | |
| 401 | 19년 전 | 2619 | ||
| 400 |
|
19년 전 | 2526 | |
| 399 | 19년 전 | 2975 | ||
| 398 | 19년 전 | 2508 | ||
| 397 | 19년 전 | 2802 | ||
| 396 | 19년 전 | 2507 | ||
| 395 | 19년 전 | 3214 | ||
| 394 | 19년 전 | 1758 | ||
| 393 | 19년 전 | 3010 | ||
| 392 | 19년 전 | 2287 | ||
| 391 | 19년 전 | 2191 | ||
| 390 | 19년 전 | 2300 | ||
| 389 | 19년 전 | 2661 | ||
| 388 | 19년 전 | 2209 | ||
| 387 | 19년 전 | 4494 | ||
| 386 |
|
19년 전 | 2701 | |
| 385 |
|
19년 전 | 2509 | |
| 384 | 19년 전 | 3051 | ||
| 383 | 19년 전 | 3076 | ||
| 382 | 19년 전 | 3122 | ||
| 381 |
|
19년 전 | 2650 | |
| 380 |
|
19년 전 | 3033 | |
| 379 | 19년 전 | 2558 | ||
| 378 | 19년 전 | 2229 | ||
| 377 | 19년 전 | 2793 | ||
| 376 | 19년 전 | 2477 | ||
| 375 |
|
19년 전 | 2576 | |
| 374 | 19년 전 | 3835 | ||
| 373 | 19년 전 | 3287 | ||
| 372 | 19년 전 | 5010 | ||
| 371 |
세은아빠2
|
19년 전 | 2430 | |
| 370 | 19년 전 | 4511 | ||
| 369 | 19년 전 | 3121 | ||
| 368 | 19년 전 | 2920 | ||
| 367 | 19년 전 | 3746 | ||
| 366 | 19년 전 | 2671 | ||
| 365 | 19년 전 | 3757 | ||
| 364 | 19년 전 | 4030 | ||
| 363 | 19년 전 | 3466 | ||
| 362 | 19년 전 | 3499 | ||
| 361 | 20년 전 | 4123 | ||
| 360 |
hwatta
|
20년 전 | 2380 | |
| 359 | 20년 전 | 5123 | ||
| 358 | 20년 전 | 3675 | ||
| 357 | 20년 전 | 2620 | ||
| 356 |
sdesign1s
|
20년 전 | 2298 | |
| 355 | 20년 전 | 2778 | ||
| 354 | 20년 전 | 3041 | ||
| 353 | 20년 전 | 2807 | ||
| 352 |
|
20년 전 | 5788 | |
| 351 |
|
20년 전 | 2724 | |
| 350 |
|
20년 전 | 4313 | |
| 349 |
hwatta
|
20년 전 | 2205 | |
| 348 | 20년 전 | 7319 | ||
| 347 | 20년 전 | 2426 | ||
| 346 | 20년 전 | 3522 | ||
| 345 | 20년 전 | 4325 | ||
| 344 | 20년 전 | 2673 | ||
| 343 | 20년 전 | 3936 | ||
| 342 | 20년 전 | 3081 | ||
| 341 | 20년 전 | 4112 | ||
| 340 |
|
20년 전 | 5168 | |
| 339 |
|
20년 전 | 4252 | |
| 338 | 20년 전 | 5898 | ||
| 337 | 20년 전 | 2058 | ||
| 336 |
|
20년 전 | 3349 | |
| 335 |
|
20년 전 | 3566 | |
| 334 |
|
20년 전 | 2960 | |
| 333 |
hwatta
|
20년 전 | 2466 | |
| 332 | 20년 전 | 4668 | ||
| 331 | 20년 전 | 2293 |
댓글 작성
댓글을 작성하시려면 로그인이 필요합니다.
로그인하기