1337 Posted November 9, 2013 Share Posted November 9, 2013 (edited) 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 November 9, 2013 by 1337 Quote Link to comment Share on other sites More sharing options...
Foxtrot Posted November 9, 2013 Share Posted November 9, 2013 How are you changing the MAC? Quote Link to comment Share on other sites More sharing options...
xrad Posted November 9, 2013 Share Posted November 9, 2013 Try this......... https://forums.hak5.org/index.php?/topic/30827-jjds-mac-changing-script/page-2#entry232158 Quote Link to comment Share on other sites More sharing options...
1337 Posted November 9, 2013 Author Share Posted November 9, 2013 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 Quote Link to comment Share on other sites More sharing options...
jjd Posted November 9, 2013 Share Posted November 9, 2013 ya macchanger does not bring everything back up correctly. the link xrad posted will work though Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.