brew install ettercap 으로 ettercap 설치


실행: ⇓⇓⇓⇓⇓⇓⇓

sudo ettercap -G : 그래픽 기반으로 실행

sudo ettercap -C : 캐릭터 기반으로 실행 터미널 창에서 실행

'OS > Mac OS' 카테고리의 다른 글

Vim 자동완성  (0) 2016.11.13
terminal syntax highlighting, directory coloring  (0) 2016.08.27
Mac 패킷 캡쳐  (0) 2016.05.10
GCC 어셈블리 사용법  (0) 2016.05.02
Mac Safari 웹 소스코드 보는 법  (0) 2016.05.02
Posted by 知彼知己百戰不殆
,

Mac 패킷 캡쳐

OS/Mac OS 2016. 5. 10. 23:24

Getting Started With tcpdump

To get started with tcpdump, try the following command.

sudo tcpdump -i en0 -w trace.pcap

The elements of this command line are:

  • The sudo command causes tcpdump to run with privileges, which is necessary in order to capture network traffic.

  • The -i en0 option tells tcpdump to capture packets on the first Ethernet interface. By default, tcpdump will use the first non-loopback interface it can find (usually en0). To specify a different interface, just change en0 to the BSD name of that interface. For example, the AirPort interface is typically en1.

    To get a list of network interfaces and their user-visible names, run the networksetup tool with the -listallhardwareports argument.

  • The -w trace.pcap parameter tells tcpdump to write the packets to a file called trace.pcap.


Posted by 知彼知己百戰不殆
,

현재 디렉토리에서, exe 확장자를 가진 모든 파일 찾기

find . -name '*.exe'


루트에서부터, 즉 전체 하드에서, pl 확장자를 가진 모든 파일 찾기

find / -name '*.pl'


전체 하드 디스크에서, 파일명이 ab 로 시작하는 모든 파일 찾기

find / -name 'ab*'


전체 하드 디스크에서, 파일명이 .bash 로 시작하는 모든 파일 찾기
+ ls 명령 형식으로 출력

find / -name '.bash*' -ls


전체 하드 디스크에서, 디렉토리 이름이 et 로 시작하는 모든 디렉토리 찾기

find / -name 'et*' -type d


find 사용 시 화면에 permission denied 무시하기

마지막에 2>/dev/null 추가

'OS > Linux' 카테고리의 다른 글

CentOS 5.1 ifconfig command  (0) 2016.06.16
CentOS 5.1 gcc 설치법  (0) 2016.06.16
setpgrp() 함수  (0) 2015.12.14
execve() 함수  (0) 2015.12.13
open함수 사용법  (0) 2015.12.13
Posted by 知彼知己百戰不殆
,