# 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....
##
...중략
게시판 목록
프로그램
| 번호 | 제목 | 글쓴이 | 날짜 | 조회 |
|---|---|---|---|---|
| 7930 | 9년 전 | 453 | ||
| 7929 | 9년 전 | 388 | ||
| 7928 | 9년 전 | 466 | ||
| 7927 | 9년 전 | 379 | ||
| 7926 | 9년 전 | 688 | ||
| 7925 | 9년 전 | 404 | ||
| 7924 | 9년 전 | 386 | ||
| 7923 | 9년 전 | 380 | ||
| 7922 | 9년 전 | 414 | ||
| 7921 | 9년 전 | 433 | ||
| 7920 | 9년 전 | 343 | ||
| 7919 | 9년 전 | 352 | ||
| 7918 | 9년 전 | 507 | ||
| 7917 | 9년 전 | 359 | ||
| 7916 | 9년 전 | 446 | ||
| 7915 | 9년 전 | 454 | ||
| 7914 | 9년 전 | 467 | ||
| 7913 | 9년 전 | 634 | ||
| 7912 | 9년 전 | 466 | ||
| 7911 | 9년 전 | 398 | ||
| 7910 | 9년 전 | 445 | ||
| 7909 | 9년 전 | 551 | ||
| 7908 | 9년 전 | 488 | ||
| 7907 | 9년 전 | 429 | ||
| 7906 | 9년 전 | 444 | ||
| 7905 | 9년 전 | 410 | ||
| 7904 | 9년 전 | 403 | ||
| 7903 | 9년 전 | 400 | ||
| 7902 | 9년 전 | 591 | ||
| 7901 |
|
9년 전 | 767 | |
| 7900 | 9년 전 | 648 | ||
| 7899 | 9년 전 | 431 | ||
| 7898 | 9년 전 | 428 | ||
| 7897 | 9년 전 | 388 | ||
| 7896 | 9년 전 | 401 | ||
| 7895 | 9년 전 | 519 | ||
| 7894 | 9년 전 | 433 | ||
| 7893 | 9년 전 | 405 | ||
| 7892 | 9년 전 | 444 | ||
| 7891 | 9년 전 | 807 | ||
| 7890 | 9년 전 | 1231 | ||
| 7889 | 9년 전 | 766 | ||
| 7888 |
limsy1987
|
9년 전 | 578 | |
| 7887 | 9년 전 | 607 | ||
| 7886 | 9년 전 | 498 | ||
| 7885 | 9년 전 | 467 | ||
| 7884 | 9년 전 | 460 | ||
| 7883 | 9년 전 | 462 | ||
| 7882 | 9년 전 | 524 | ||
| 7881 | 9년 전 | 496 | ||
| 7880 | 9년 전 | 618 | ||
| 7879 | 9년 전 | 504 | ||
| 7878 | 9년 전 | 1276 | ||
| 7877 | 9년 전 | 809 | ||
| 7876 | 9년 전 | 546 | ||
| 7875 | 9년 전 | 614 | ||
| 7874 |
|
9년 전 | 830 | |
| 7873 | 9년 전 | 551 | ||
| 7872 | 9년 전 | 715 | ||
| 7871 | 9년 전 | 530 | ||
| 7870 | 9년 전 | 648 | ||
| 7869 | 9년 전 | 468 | ||
| 7868 | 9년 전 | 504 | ||
| 7867 | 9년 전 | 501 | ||
| 7866 | 9년 전 | 561 | ||
| 7865 | 9년 전 | 500 | ||
| 7864 | 9년 전 | 562 | ||
| 7863 | 9년 전 | 553 | ||
| 7862 | 9년 전 | 517 | ||
| 7861 | 9년 전 | 688 | ||
| 7860 | 9년 전 | 666 | ||
| 7859 | 9년 전 | 444 | ||
| 7858 | 9년 전 | 746 | ||
| 7857 | 9년 전 | 1137 | ||
| 7856 | 9년 전 | 567 | ||
| 7855 | 9년 전 | 800 | ||
| 7854 | 9년 전 | 753 | ||
| 7853 | 9년 전 | 646 | ||
| 7852 | 9년 전 | 566 | ||
| 7851 | 9년 전 | 557 | ||
| 7850 | 9년 전 | 634 | ||
| 7849 | 9년 전 | 400 | ||
| 7848 | 9년 전 | 469 | ||
| 7847 | 9년 전 | 711 | ||
| 7846 | 9년 전 | 498 | ||
| 7845 | 9년 전 | 467 | ||
| 7844 | 9년 전 | 438 | ||
| 7843 | 9년 전 | 475 | ||
| 7842 | 9년 전 | 460 | ||
| 7841 | 9년 전 | 429 | ||
| 7840 | 9년 전 | 442 | ||
| 7839 | 9년 전 | 485 | ||
| 7838 | 10년 전 | 553 | ||
| 7837 | 10년 전 | 385 | ||
| 7836 | 10년 전 | 442 | ||
| 7835 | 10년 전 | 518 | ||
| 7834 |
|
10년 전 | 1227 | |
| 7833 | 10년 전 | 487 | ||
| 7832 | 10년 전 | 462 | ||
| 7831 | 10년 전 | 624 |
댓글 작성
댓글을 작성하시려면 로그인이 필요합니다.
로그인하기