```OS kali-linux-2018.1-amd64.iso```


[archive /etc/network/interfaces]
> 
```
auto wlan0
iface wlan0 inet static
address 192.168.0.11
network 192.168.0.1
netmask 255.255.255.0
```
> 



```
DNSMASQ config:

no-resolv
interface=wlan0
dhcp-range=192.168.0.10,192.168.0.200,8h
dhcp-option=3,192.168.0.1
dhcp-option=6,192.168.0.1
server=1.1.1.1
server=1.0.0.1
log-queries
log-dhcp
```
```
#!/bin/bash
set -e

# Interfaces that are used
INTERNET=$1
REPEATER=$2

#Configuring IP address of malicious AP
ip addr del 192.168.0.1/24 dev $REPEATER 2> /dev/null || true
ip addr add 192.168.0.1/24 dev $REPEATER

#Enabling IP forwaring
sysctl net.ipv4.ip_forward=1 > /dev/null

#Enabling NAT
iptables -F
iptables -t nat -A POSTROUTING -o $INTERNET -j MASQUERADE
iptables -A FORWARD -m conntrack --ctstate RELATED,ESTABLISHED -j ACCEPT
iptables -A FORWARD -i $REPEATER -o $INTERNET -j ACCEPT

#Starting DHCP and DNS service
dnsmasq -d -C dnsmasq.conf &> dnsmasq.log
```
no condigo dar ip a un dispositivo android,me dice que intenta obtener la direcion ip pero nunca laobtiene esperas 15 segunds y se desconecta del ap falso,podria ser un problema con Selinux ocon los puertos en red local?

sudo ./krack_all_zero_tk.py wlan1 wlan0 usb0 alberto -t MAC_ADDRESS

apt-get install python-pip
pip install pycryptodome


[![KrackAttack script][1]][1]


  [1]: https://i.sstatic.net/J5sX9.png