# 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....
##
...중략
게시판 목록
프로그램
| 번호 | 제목 | 글쓴이 | 날짜 | 조회 |
|---|---|---|---|---|
| 7730 | 10년 전 | 1313 | ||
| 7729 | 10년 전 | 1167 | ||
| 7728 |
잘살아보자
|
10년 전 | 612 | |
| 7727 |
잘살아보자
|
10년 전 | 509 | |
| 7726 |
잘살아보자
|
10년 전 | 841 | |
| 7725 |
잘살아보자
|
10년 전 | 567 | |
| 7724 |
잘살아보자
|
10년 전 | 481 | |
| 7723 |
잘살아보자
|
10년 전 | 546 | |
| 7722 |
잘살아보자
|
10년 전 | 484 | |
| 7721 |
잘살아보자
|
10년 전 | 517 | |
| 7720 |
잘살아보자
|
10년 전 | 482 | |
| 7719 |
비긴어게인
|
10년 전 | 700 | |
| 7718 |
|
10년 전 | 2547 | |
| 7717 |
잘살아보자
|
10년 전 | 664 | |
| 7716 |
잘살아보자
|
10년 전 | 411 | |
| 7715 |
잘살아보자
|
10년 전 | 442 | |
| 7714 |
잘살아보자
|
10년 전 | 505 | |
| 7713 | 10년 전 | 1790 | ||
| 7712 | 10년 전 | 1728 | ||
| 7711 | 10년 전 | 1113 | ||
| 7710 | 10년 전 | 1408 | ||
| 7709 | 10년 전 | 1527 | ||
| 7708 | 10년 전 | 1467 | ||
| 7707 | 10년 전 | 865 | ||
| 7706 |
별지기천사
|
10년 전 | 580 | |
| 7705 | 10년 전 | 1084 | ||
| 7704 |
ICONdesignstudio
|
10년 전 | 636 | |
| 7703 | 10년 전 | 602 | ||
| 7702 |
|
10년 전 | 739 | |
| 7701 | 10년 전 | 1429 | ||
| 7700 | 10년 전 | 1116 | ||
| 7699 | 10년 전 | 586 | ||
| 7698 | 10년 전 | 1155 | ||
| 7697 | 10년 전 | 5180 | ||
| 7696 | 10년 전 | 669 | ||
| 7695 | 10년 전 | 1697 | ||
| 7694 | 10년 전 | 1075 | ||
| 7693 | 10년 전 | 1563 | ||
| 7692 | 10년 전 | 1309 | ||
| 7691 | 10년 전 | 836 | ||
| 7690 | 10년 전 | 1397 | ||
| 7689 | 10년 전 | 1025 | ||
| 7688 | 10년 전 | 628 | ||
| 7687 |
파랑새1597
|
10년 전 | 607 | |
| 7686 | 10년 전 | 863 | ||
| 7685 | 10년 전 | 1351 | ||
| 7684 | 10년 전 | 809 | ||
| 7683 | 10년 전 | 1115 | ||
| 7682 | 10년 전 | 1035 | ||
| 7681 | 10년 전 | 680 | ||
| 7680 | 10년 전 | 997 | ||
| 7679 | 10년 전 | 520 | ||
| 7678 | 10년 전 | 749 | ||
| 7677 | 10년 전 | 649 | ||
| 7676 |
|
10년 전 | 956 | |
| 7675 |
|
10년 전 | 1185 | |
| 7674 | 10년 전 | 1056 | ||
| 7673 | 10년 전 | 761 | ||
| 7672 | 10년 전 | 1102 | ||
| 7671 | 10년 전 | 911 | ||
| 7670 | 10년 전 | 675 | ||
| 7669 |
mashmellow
|
10년 전 | 1239 | |
| 7668 | 10년 전 | 726 | ||
| 7667 | 10년 전 | 1024 | ||
| 7666 |
senseme
|
10년 전 | 667 | |
| 7665 | 10년 전 | 522 | ||
| 7664 | 10년 전 | 1907 | ||
| 7663 |
mixx애교
|
10년 전 | 987 | |
| 7662 | 10년 전 | 1055 | ||
| 7661 |
hkhkah
|
10년 전 | 801 | |
| 7660 | 10년 전 | 1076 | ||
| 7659 |
커네드커네드
|
10년 전 | 943 | |
| 7658 |
바람돌이팡
|
10년 전 | 686 | |
| 7657 | 10년 전 | 1175 | ||
| 7656 | 10년 전 | 1587 | ||
| 7655 | 10년 전 | 1005 | ||
| 7654 |
개발짜증나
|
10년 전 | 866 | |
| 7653 |
네이비칼라
|
10년 전 | 888 | |
| 7652 |
밥먹고합시다
|
10년 전 | 816 | |
| 7651 |
플라이SINJI
|
10년 전 | 1519 | |
| 7650 |
개발짜증나
|
10년 전 | 1429 | |
| 7649 | 10년 전 | 458 | ||
| 7648 |
이미영ㅇㅇ
|
10년 전 | 876 | |
| 7647 | 10년 전 | 451 | ||
| 7646 | 10년 전 | 822 | ||
| 7645 | 10년 전 | 2331 | ||
| 7644 | 10년 전 | 826 | ||
| 7643 |
|
10년 전 | 2877 | |
| 7642 | 10년 전 | 1521 | ||
| 7641 | 10년 전 | 1149 | ||
| 7640 |
개발짜증나
|
10년 전 | 479 | |
| 7639 |
|
10년 전 | 822 | |
| 7638 |
개발짜증나
|
10년 전 | 1143 | |
| 7637 | 10년 전 | 1559 | ||
| 7636 | 10년 전 | 2920 | ||
| 7635 | 10년 전 | 1709 | ||
| 7634 | 10년 전 | 1896 | ||
| 7633 | 10년 전 | 2353 | ||
| 7632 | 10년 전 | 3960 | ||
| 7631 |
|
10년 전 | 1550 |
댓글 작성
댓글을 작성하시려면 로그인이 필요합니다.
로그인하기