Results 1 to 4 of 4

Thread: how to give an ip when faking an AP with airbase-ng?

  1. #1
    Just burned his ISO
    Join Date
    Apr 2009
    Posts
    5

    Default how to give an ip when faking an AP with airbase-ng?

    Hi, I am doing some testing with my AP. I have my AP named MYAP (unencrypted). So I want to fake the AP. I did: "airbase-ng -a AA:AA:AA:AA:AA:AA -e MYAP mon0", it said:
    23:26:24 Created tap interface at0
    23:26:24 Trying to set MTU on at0 to 1500
    23:26:24 Access Point with BSSID AA:AA:AA:AA:AA:AA started.
    So everything fine here. Then I made a deauthentication of the original AP like this: "aireplay-ng --deauth 0 -a REALMAC mon0", and it began sending deauthentication packages. My smartphone desconnected from the original AP and then associated with the other, I can see a few of this in the airbase-ng screen:
    23:26:29 Client MAC_ADDRESS associated (unencrypted) to ESSID: "MYAP"
    but the thing is that my phone keeps in: "obtaining ip adress" for a minute, and then gives up. This happens also with another computer. In the tutorials I am watching it says that the devices should connect succesfull to my faked AP.
    So the question is what do I need to do so they can connect?
    Thanks.

  2. #2
    Just burned his ISO
    Join Date
    Nov 2010
    Posts
    9

    Default Re: how to give an ip when faking an AP with airbase-ng?

    I dont really know how to do it, but if it helps, you have to set up a dhcp server, i guess. and do some forwarding maybe using iptables for the client to have access to internet, if thats your intention. Im not sure if that's all that need to be done, just hope it helps.

    regards.

  3. #3
    Just burned his ISO
    Join Date
    Aug 2011
    Posts
    1

    Default Re: how to give an ip when faking an AP with airbase-ng?

    you could try this config for the /etc/dhcp3/dhcpd.conf file

    subnet 192.168.4.0 netmask 255.255.255.0
    {
    range 192.168.4.10 192.168.4.30;
    default-lease-time 3600;
    max-lease-time 7200;
    authoritative;
    option domain-name GoogleDNS;
    option domain-name-servers 8.8.8.8,8.8.4.4;
    option broadcast-address 192.168.4.255;
    option subnet-mask 255.255.255.0;
    option routers 192.168.4.1;
    }


    if you want to redirect the traffic to your localhost websever you can use iptables
    something like that
    iptables -A PREROUTING -s 192.168.4.0/255.255.255.0 -p tcp --sport ! 52 -j DNAT --to-destination 192.168.4.1 -t nat

    (http://haezjagt.blogspot.com/2011/02...p.html)-german

  4. #4
    Just burned his ISO
    Join Date
    Apr 2009
    Posts
    5

    Default Re: how to give an ip when faking an AP with airbase-ng?

    Quote Originally Posted by LaFleur View Post
    you could try this config for the /etc/dhcp3/dhcpd.conf file

    subnet 192.168.4.0 netmask 255.255.255.0
    {
    range 192.168.4.10 192.168.4.30;
    default-lease-time 3600;
    max-lease-time 7200;
    authoritative;
    option domain-name GoogleDNS;
    option domain-name-servers 8.8.8.8,8.8.4.4;
    option broadcast-address 192.168.4.255;
    option subnet-mask 255.255.255.0;
    option routers 192.168.4.1;
    }


    if you want to redirect the traffic to your localhost websever you can use iptables
    something like that
    iptables -A PREROUTING -s 192.168.4.0/255.255.255.0 -p tcp --sport ! 52 -j DNAT --to-destination 192.168.4.1 -t nat

    (http://haezjagt.blogspot.com/2011/02...p.html)-german

    humm this didnt work. My phone and my other pc still not connect. I looked on wireshark while it was trying to connect, and:
    The authentication process occurs,
    then there are some authentication requests and authentication responses, but in the end there are lots of probe requests and probe responses, then some null function from the phone to my laptop (the faked AP), and in the end the phone sends a deauthentication package. So i don't know what is wrong =/

Similar Threads

  1. Difficults with faking mac address on wireless.
    By n0PxN0p in forum OLD Newbie Area
    Replies: 0
    Last Post: 09-25-2009, 06:59 PM
  2. Privileges give to your web browser
    By Virchanza in forum OLD General IT Discussion
    Replies: 9
    Last Post: 07-20-2009, 10:39 AM
  3. You need to give Yakuake a try!
    By Virchanza in forum OLD General IT Discussion
    Replies: 8
    Last Post: 07-16-2009, 03:04 PM
  4. can anyone give a spike fuzzing example ?
    By bluerratiq in forum OLD Tutorials and Guides
    Replies: 0
    Last Post: 04-03-2009, 03:38 PM
  5. I give UP !!!!
    By raven4d in forum OLD Wireless
    Replies: 25
    Last Post: 05-13-2008, 04:08 PM

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •