Recent Post»

Recent Comment»

« 2024/5 »
1 2 3 4
5 6 7 8 9 10 11
12 13 14 15 16 17 18
19 20 21 22 23 24 25
26 27 28 29 30 31
05-11 00:00

 
 

tcpdump 관련 command

Linux | 2016. 5. 17. 00:34 | Posted by 짱아
반응형

# tcpdump로 패킷 캡처 하기

tcpdump -i any net 111.111.0.0/16 and tcp -w dump.result &
    -i any : 모든 포트에 대해 Listen
    net 111.111.0.0/16 : 지정된 CIDR 네트워크에 대해 capture
    and : combination 
        AND : and / &&
        OR : or / ||
        EXCEPT : not / !
    tcp : tcp 프로토콜
    -w dump.result : 캡춰된 내용 해당 파일에 저장


tcpdump -i any net 123.123.123.123/32 -w dump.result &
    123.123.123.123으로 발생되는 트래픽만 캡춰

# tcpdump 결과 파일 읽기

기본 패킷 내역 확인
tcpdump -r dump.result | less

패킷 데이터 확인 #1
tcpdump -qns 0 -X -r dump.result | less
    -X : When parsing and printing, in addition to printing the headers of each packet, print the data of each packet (minus its link level header) in hex and ASCII. This is very handy for analysing new protocols.
    cf, -xx : ASCII 패킷 정보 없음.

패킷 데이터 확인 #2
tcpdump -qns 0 -A -r dump.result | less
    -A : Print each packet (minus its link level header) in ASCII. Handy for capturing web pages.

관련 Tool
wireshark : wireshark.org (Windows, OS X 용)
tcpick
tcpxtract
tshark


# 참고 
http://www.tcpdump.org/tcpdump_man.html
https://danielmiessler.com/study/tcpdump/
http://www.thegeekstuff.com/2010/08/tcpdump-command-examples/


반응형
:

ssh pem file 이용 접속

Linux | 2016. 5. 17. 00:28 | Posted by 짱아
반응형

ssh -i pemfile account@hostinfo

반응형
:
반응형

리눅스 배포판에 대한 종류와 계보를 확인 할 수 있는 이미지


배포 사이트 : http://futurist.se/gldt/  (2012년 10월 버전이 최신)




반응형
: