# 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....
##
...중략
게시판 목록
프로그램
| 번호 | 제목 | 글쓴이 | 날짜 | 조회 |
|---|---|---|---|---|
| 4630 | 13년 전 | 1189 | ||
| 4629 | 13년 전 | 4362 | ||
| 4628 | 13년 전 | 766 | ||
| 4627 |
|
13년 전 | 1761 | |
| 4626 | 13년 전 | 817 | ||
| 4625 |
마릴릴모니
|
13년 전 | 738 | |
| 4624 | 13년 전 | 1639 | ||
| 4623 |
SIR정회원
|
13년 전 | 620 | |
| 4622 |
rakoos
|
13년 전 | 1577 | |
| 4621 | 13년 전 | 688 | ||
| 4620 | 13년 전 | 1475 | ||
| 4619 | 13년 전 | 1002 | ||
| 4618 | 13년 전 | 4049 | ||
| 4617 | 13년 전 | 2044 | ||
| 4616 | 13년 전 | 862 | ||
| 4615 | 13년 전 | 686 | ||
| 4614 | 13년 전 | 1253 | ||
| 4613 | 13년 전 | 895 | ||
| 4612 |
rakoos
|
13년 전 | 1022 | |
| 4611 |
|
13년 전 | 2117 | |
| 4610 | 13년 전 | 772 | ||
| 4609 | 13년 전 | 2823 | ||
| 4608 | 13년 전 | 2813 | ||
| 4607 | 13년 전 | 1078 | ||
| 4606 | 13년 전 | 776 | ||
| 4605 | 13년 전 | 2317 | ||
| 4604 | 13년 전 | 892 | ||
| 4603 | 13년 전 | 1141 | ||
| 4602 |
한번잘해보자
|
13년 전 | 688 | |
| 4601 | 13년 전 | 1807 | ||
| 4600 |
|
13년 전 | 1091 | |
| 4599 |
크라운엠버서더
|
13년 전 | 1154 | |
| 4598 | 13년 전 | 1505 | ||
| 4597 | 13년 전 | 602 | ||
| 4596 | 13년 전 | 3693 | ||
| 4595 |
|
13년 전 | 921 | |
| 4594 | 13년 전 | 1799 | ||
| 4593 | 13년 전 | 1290 | ||
| 4592 | 13년 전 | 665 | ||
| 4591 | 13년 전 | 4650 | ||
| 4590 | 13년 전 | 525 | ||
| 4589 | 13년 전 | 2640 | ||
| 4588 |
|
13년 전 | 996 | |
| 4587 | 13년 전 | 660 | ||
| 4586 |
JavaDD
|
13년 전 | 1018 | |
| 4585 | 13년 전 | 7795 | ||
| 4584 | 13년 전 | 987 | ||
| 4583 |
PHPㅡASP프로그래머
|
13년 전 | 2066 | |
| 4582 |
PHPㅡASP프로그래머
|
13년 전 | 1503 | |
| 4581 |
PHPㅡASP프로그래머
|
13년 전 | 1025 | |
| 4580 | 13년 전 | 4098 | ||
| 4579 |
|
13년 전 | 693 | |
| 4578 | 13년 전 | 1192 | ||
| 4577 | 13년 전 | 823 | ||
| 4576 |
Kanzi
|
13년 전 | 882 | |
| 4575 |
|
13년 전 | 1562 | |
| 4574 | 13년 전 | 2354 | ||
| 4573 |
달빛소나타
|
13년 전 | 884 | |
| 4572 | 13년 전 | 1003 | ||
| 4571 | 13년 전 | 944 | ||
| 4570 |
|
13년 전 | 1318 | |
| 4569 |
한번잘해보자
|
13년 전 | 563 | |
| 4568 |
Raizond
|
13년 전 | 1035 | |
| 4567 |
Raizond
|
13년 전 | 539 | |
| 4566 |
Revenge
|
13년 전 | 955 | |
| 4565 |
|
13년 전 | 712 | |
| 4564 |
|
13년 전 | 1143 | |
| 4563 | 13년 전 | 1576 | ||
| 4562 | 13년 전 | 1226 | ||
| 4561 | 13년 전 | 9406 | ||
| 4560 | 13년 전 | 1811 | ||
| 4559 | 13년 전 | 3371 | ||
| 4558 | 13년 전 | 484 | ||
| 4557 | 13년 전 | 1457 | ||
| 4556 | 13년 전 | 718 | ||
| 4555 | 13년 전 | 557 | ||
| 4554 | 13년 전 | 550 | ||
| 4553 |
|
13년 전 | 4314 | |
| 4552 | 13년 전 | 1515 | ||
| 4551 | 13년 전 | 1994 | ||
| 4550 | 13년 전 | 685 | ||
| 4549 | 13년 전 | 1041 | ||
| 4548 | 13년 전 | 1580 | ||
| 4547 | 13년 전 | 566 | ||
| 4546 | 13년 전 | 1623 | ||
| 4545 | 13년 전 | 1338 | ||
| 4544 | 13년 전 | 3041 | ||
| 4543 | 13년 전 | 1018 | ||
| 4542 | 13년 전 | 2273 | ||
| 4541 | 13년 전 | 1141 | ||
| 4540 |
|
13년 전 | 1067 | |
| 4539 | 13년 전 | 1168 | ||
| 4538 | 13년 전 | 1595 | ||
| 4537 | 13년 전 | 1181 | ||
| 4536 | 13년 전 | 565 | ||
| 4535 |
|
13년 전 | 828 | |
| 4534 |
|
13년 전 | 982 | |
| 4533 | 13년 전 | 659 | ||
| 4532 |
soing
|
13년 전 | 7379 | |
| 4531 |
|
13년 전 | 6405 |
댓글 작성
댓글을 작성하시려면 로그인이 필요합니다.
로그인하기