Jump to content

Unable to Connect to Wlan0 After Mac Spoof


1337

Recommended Posts

Every time I change the mac address of interface wlan0 and reboot the pineapple, my laptop running ubuntu wont connect up to the pineapple. It sees the network out there and is trying to associate with it, but not able to. Any ideas?

Whats funny is that my phone doesn't even see the pineapple network.

Edited by 1337
Link to comment
Share on other sites

Xrad - I will take a look

Foxtrot - I've been using a script that changes the mac addresses and hostname. It had been working three factory resets ago. Lol

#!/bin/bash
### BEGIN INIT INFO
# Provides: randhostnamemac
# Randomises hostname and MAC
# placed in /etc/init.d.
### END INIT INFO
#create hosts.old if not there
if [ ! -a /etc/hosts.old ]; then
cp /etc/hosts /etc/hosts.old
fi
#assign the variable newhn a random value as defined below
newhn=$(cat /dev/urandom | tr -dc 'A-Za-z' | head -c8)
#update hostname and hosts with new value
echo $newhn > /etc/hostname
echo "127.0.1.1    $newhn" > /etc/hosts
cat /etc/hosts.old >> /etc/hosts
#update uci
uci set system.@system[0].hostname=$newhn
uci commit system
echo $(uci get system.@system[0].hostname) > /proc/sys/kernel/hostname
#randomise MAC for wlan0 and wlan1
ifconfig wlan0 down
macchanger -A wlan0
ifconfig wlan0 up
ifconfig wlan1 down
macchanger -A wlan1
ifconfig wlan1 up
exit
Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...