# 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....
##
...중략
게시판 목록
프로그램
| 번호 | 제목 | 글쓴이 | 날짜 | 조회 |
|---|---|---|---|---|
| 4830 |
임페리얼웹
|
13년 전 | 1362 | |
| 4829 |
임페리얼웹
|
13년 전 | 718 | |
| 4828 | 13년 전 | 3476 | ||
| 4827 |
|
13년 전 | 1235 | |
| 4826 | 13년 전 | 2740 | ||
| 4825 | 13년 전 | 1078 | ||
| 4824 |
gnuskin쩜net
|
13년 전 | 769 | |
| 4823 | 13년 전 | 818 | ||
| 4822 |
visualp
|
13년 전 | 682 | |
| 4821 |
다케미카코
|
13년 전 | 1260 | |
| 4820 | 13년 전 | 1346 | ||
| 4819 | 13년 전 | 2661 | ||
| 4818 |
크라이스트
|
13년 전 | 4236 | |
| 4817 |
임페리얼웹
|
13년 전 | 711 | |
| 4816 | 13년 전 | 3259 | ||
| 4815 |
하모니칼수
|
13년 전 | 649 | |
| 4814 | 13년 전 | 1109 | ||
| 4813 | 13년 전 | 708 | ||
| 4812 |
임페리얼웹
|
13년 전 | 1085 | |
| 4811 |
임페리얼웹
|
13년 전 | 1833 | |
| 4810 | 13년 전 | 1146 | ||
| 4809 | 13년 전 | 624 | ||
| 4808 | 13년 전 | 1279 | ||
| 4807 |
너는나의봄이다
|
13년 전 | 896 | |
| 4806 | 13년 전 | 1293 | ||
| 4805 | 13년 전 | 1773 | ||
| 4804 | 13년 전 | 1071 | ||
| 4803 |
한번잘해보자
|
13년 전 | 717 | |
| 4802 | 13년 전 | 1904 | ||
| 4801 |
꼬꼬아부지
|
13년 전 | 1184 | |
| 4800 | 13년 전 | 775 | ||
| 4799 |
|
13년 전 | 722 | |
| 4798 | 13년 전 | 1071 | ||
| 4797 |
한번잘해보자
|
13년 전 | 610 | |
| 4796 | 13년 전 | 1719 | ||
| 4795 | 13년 전 | 997 | ||
| 4794 |
|
13년 전 | 1016 | |
| 4793 |
|
13년 전 | 653 | |
| 4792 | 13년 전 | 1289 | ||
| 4791 | 13년 전 | 2098 | ||
| 4790 |
|
13년 전 | 619 | |
| 4789 |
한번잘해보자
|
13년 전 | 512 | |
| 4788 |
|
13년 전 | 684 | |
| 4787 | 13년 전 | 3282 | ||
| 4786 |
한번잘해보자
|
13년 전 | 756 | |
| 4785 | 13년 전 | 1304 | ||
| 4784 | 13년 전 | 1076 | ||
| 4783 |
|
13년 전 | 719 | |
| 4782 | 13년 전 | 7732 | ||
| 4781 |
크라운엠버서더
|
13년 전 | 1105 | |
| 4780 | 13년 전 | 1753 | ||
| 4779 | 13년 전 | 753 | ||
| 4778 | 13년 전 | 1088 | ||
| 4777 | 13년 전 | 916 | ||
| 4776 | 13년 전 | 1887 | ||
| 4775 | 13년 전 | 3318 | ||
| 4774 | 13년 전 | 1533 | ||
| 4773 | 13년 전 | 3238 | ||
| 4772 | 13년 전 | 1413 | ||
| 4771 | 13년 전 | 3858 | ||
| 4770 | 13년 전 | 1421 | ||
| 4769 | 13년 전 | 908 | ||
| 4768 | 13년 전 | 1881 | ||
| 4767 | 13년 전 | 2657 | ||
| 4766 | 13년 전 | 1569 | ||
| 4765 | 13년 전 | 1378 | ||
| 4764 | 13년 전 | 3138 | ||
| 4763 | 13년 전 | 1162 | ||
| 4762 |
|
13년 전 | 719 | |
| 4761 | 13년 전 | 1609 | ||
| 4760 | 13년 전 | 849 | ||
| 4759 |
NTYPE
|
13년 전 | 5175 | |
| 4758 |
프로프리랜서
|
13년 전 | 826 | |
| 4757 |
프로프리랜서
|
13년 전 | 1213 | |
| 4756 | 13년 전 | 812 | ||
| 4755 |
원시인교주
|
13년 전 | 837 | |
| 4754 |
there007
|
13년 전 | 953 | |
| 4753 | 13년 전 | 1765 | ||
| 4752 |
세상의중심
|
13년 전 | 1574 | |
| 4751 | 13년 전 | 1299 | ||
| 4750 | 13년 전 | 1499 | ||
| 4749 |
또다른세상
|
13년 전 | 3654 | |
| 4748 | 13년 전 | 768 | ||
| 4747 |
cula100jak
|
13년 전 | 1654 | |
| 4746 | 13년 전 | 1477 | ||
| 4745 |
|
13년 전 | 616 | |
| 4744 |
designcity
|
13년 전 | 741 | |
| 4743 | 13년 전 | 620 | ||
| 4742 |
|
13년 전 | 8356 | |
| 4741 | 13년 전 | 849 | ||
| 4740 | 13년 전 | 1654 | ||
| 4739 | 13년 전 | 1323 | ||
| 4738 |
|
13년 전 | 750 | |
| 4737 |
Xerro
|
13년 전 | 489 | |
| 4736 | 13년 전 | 3721 | ||
| 4735 |
keith
|
13년 전 | 541 | |
| 4734 |
|
13년 전 | 694 | |
| 4733 | 13년 전 | 1747 | ||
| 4732 |
|
13년 전 | 1247 | |
| 4731 |
|
13년 전 | 1296 |
댓글 작성
댓글을 작성하시려면 로그인이 필요합니다.
로그인하기