# 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....
##
...중략
게시판 목록
프로그램
| 번호 | 제목 | 글쓴이 | 날짜 | 조회 |
|---|---|---|---|---|
| 7630 | 10년 전 | 675 | ||
| 7629 |
|
10년 전 | 2433 | |
| 7628 | 10년 전 | 812 | ||
| 7627 |
|
10년 전 | 1049 | |
| 7626 |
|
10년 전 | 1806 | |
| 7625 | 10년 전 | 740 | ||
| 7624 | 10년 전 | 750 | ||
| 7623 |
|
10년 전 | 3132 | |
| 7622 | 10년 전 | 752 | ||
| 7621 |
leeleeleelee
|
10년 전 | 604 | |
| 7620 | 10년 전 | 555 | ||
| 7619 | 10년 전 | 522 | ||
| 7618 | 10년 전 | 1058 | ||
| 7617 | 10년 전 | 740 | ||
| 7616 | 10년 전 | 679 | ||
| 7615 | 10년 전 | 741 | ||
| 7614 | 10년 전 | 1284 | ||
| 7613 |
|
10년 전 | 2099 | |
| 7612 | 10년 전 | 1182 | ||
| 7611 | 10년 전 | 1447 | ||
| 7610 |
|
10년 전 | 1923 | |
| 7609 |
|
10년 전 | 1378 | |
| 7608 |
mwdkim
|
10년 전 | 1152 | |
| 7607 |
|
10년 전 | 1081 | |
| 7606 |
mwdkim
|
10년 전 | 3957 | |
| 7605 | 10년 전 | 706 | ||
| 7604 | 10년 전 | 1044 | ||
| 7603 | 10년 전 | 1664 | ||
| 7602 |
|
10년 전 | 1097 | |
| 7601 |
AniNest
|
10년 전 | 2811 | |
| 7600 |
port443
|
10년 전 | 1055 | |
| 7599 | 10년 전 | 961 | ||
| 7598 | 10년 전 | 1041 | ||
| 7597 | 10년 전 | 4590 | ||
| 7596 |
SeungYeon
|
10년 전 | 911 | |
| 7595 |
untitled
|
10년 전 | 2459 | |
| 7594 |
프로그래머7
|
10년 전 | 1749 | |
| 7593 |
untitled
|
10년 전 | 2392 | |
| 7592 |
untitled
|
10년 전 | 1957 | |
| 7591 |
untitled
|
10년 전 | 2694 | |
| 7590 |
아리마2001
|
10년 전 | 872 | |
| 7589 | 10년 전 | 1124 | ||
| 7588 |
|
10년 전 | 2939 | |
| 7587 | 10년 전 | 1320 | ||
| 7586 | 10년 전 | 687 | ||
| 7585 | 10년 전 | 1724 | ||
| 7584 | 10년 전 | 1424 | ||
| 7583 |
leeleeleelee
|
10년 전 | 1190 | |
| 7582 |
|
10년 전 | 1151 | |
| 7581 | 10년 전 | 1380 | ||
| 7580 | 10년 전 | 1033 | ||
| 7579 |
|
10년 전 | 622 | |
| 7578 | 10년 전 | 1444 | ||
| 7577 |
|
10년 전 | 1890 | |
| 7576 | 10년 전 | 1401 | ||
| 7575 |
멋진남자임
|
10년 전 | 1483 | |
| 7574 | 10년 전 | 2147 | ||
| 7573 | 10년 전 | 3281 | ||
| 7572 | 10년 전 | 779 | ||
| 7571 |
|
10년 전 | 797 | |
| 7570 |
|
10년 전 | 1341 | |
| 7569 | 10년 전 | 1567 | ||
| 7568 |
this1mg
|
10년 전 | 1065 | |
| 7567 |
|
10년 전 | 785 | |
| 7566 | 10년 전 | 930 | ||
| 7565 |
Angel하늘
|
10년 전 | 1034 | |
| 7564 |
seoldi
|
10년 전 | 1279 | |
| 7563 |
|
10년 전 | 1418 | |
| 7562 |
멋진남자임
|
10년 전 | 2118 | |
| 7561 | 10년 전 | 739 | ||
| 7560 |
leeleeleelee
|
10년 전 | 934 | |
| 7559 | 10년 전 | 5072 | ||
| 7558 |
RinaP
|
10년 전 | 812 | |
| 7557 |
|
10년 전 | 1272 | |
| 7556 | 10년 전 | 1213 | ||
| 7555 |
hyohyojj1234
|
10년 전 | 1681 | |
| 7554 | 10년 전 | 1109 | ||
| 7553 |
senseme
|
10년 전 | 1360 | |
| 7552 |
ehdltdoit
|
10년 전 | 1456 | |
| 7551 |
|
10년 전 | 1846 | |
| 7550 |
leeleeleelee
|
10년 전 | 1617 | |
| 7549 | 10년 전 | 2448 | ||
| 7548 | 10년 전 | 1856 | ||
| 7547 |
멋진남자임
|
10년 전 | 1979 | |
| 7546 | 10년 전 | 1022 | ||
| 7545 |
ILMare1003
|
10년 전 | 1315 | |
| 7544 |
|
10년 전 | 1268 | |
| 7543 | 10년 전 | 903 | ||
| 7542 | 10년 전 | 682 | ||
| 7541 |
울라라라우
|
10년 전 | 885 | |
| 7540 | 10년 전 | 1608 | ||
| 7539 | 10년 전 | 958 | ||
| 7538 |
|
10년 전 | 1846 | |
| 7537 | 10년 전 | 3632 | ||
| 7536 |
Gaumi
|
10년 전 | 1443 | |
| 7535 |
프로그램은어려워
|
10년 전 | 1299 | |
| 7534 |
senseme
|
10년 전 | 1219 | |
| 7533 | 10년 전 | 1223 | ||
| 7532 | 10년 전 | 890 | ||
| 7531 | 10년 전 | 2080 |
댓글 작성
댓글을 작성하시려면 로그인이 필요합니다.
로그인하기