itsm0ld Posted November 20, 2011 Share Posted November 20, 2011 Normally when I use any type of wireless card or tool for penetration testing I like to spoof the mac address. I was able to do this on the MK2 by following this post LINK. After getting my new MK3 in I am excited to start using it right away and changing the mac is a must have for me. Here is how I got it working: 1) Get your pineapple on the internet, use either method for windows or Linux as shown HERE 2) SSH to your pineapple: If your haven't changed the password the default is pineapplesareyummy ssh 172.16.42.1 3) Test that your pineapple can get to the internet: ping 4.2.2.2 If you get a reply move on to the next step if not you didn't do step 1 right... 4)Type the following commands to update your package list and install macchanger: opkg update opkg install macchanger 5) Now that macchanger is installed we need to edit the startkarma.sh script to run macchanger: nano /www/pineapple/startkarma.sh It should look like this default: hostapd -dd /etc/hostapd/karma.conf >> /tmp/karma.log 6) Add the following lines ABOVE the existing hostapd line: ifconfig wlan0 down macchanger -r ifconfig wlan0 up Just save the changes and your ready to go! As soon as you click the link to start karma in the web interface macchanger will assign a random mac to the wireless interface! As a note every time you start and stop karma you will get a different random mac. If you would prefer to assign your own use the following syntax for step 6: macchanger wlan0 -m xx:xx:xx:xx:xx:xx Replace the xx with whatever you want ie 00:11:22:33:44:55 . I hope this will save someone some work! Quote Link to comment Share on other sites More sharing options...
itsm0ld Posted November 20, 2011 Author Share Posted November 20, 2011 (edited) This works under version 1.0.2 update Edited November 21, 2011 by itsm0ld Quote Link to comment Share on other sites More sharing options...
catz Posted November 20, 2011 Share Posted November 20, 2011 I made this simple mac changer script for the ALFA USB WiFi AWUS036H. There might be a better way of writing this. (open to any ideas.) #!/bin/sh echo "wired/wireless network" ifconfig wlan0 echo "wireless network" iwconfig wlan0 #bring down the wireless network sudo ifconfig wlan0 down echo wlan0 down #change the mac address #newmac=`echo $RANDOM$RANDOM | md5sum | sed -r 's/(..)/\1:/g; s/^(.{17}).*$/\1/;'` sudo ifconfig wlan0 hw ether de:ed:be:ef:c0:fe #$newmac #echo "New mac adress: $newmac" #Bring up the wireless network sudo ifconfig wlan0 up echo wlan0 up echo "wired/wireless network" ifconfig wlan0 echo "wireless network" iwconfig wlan0 read ifconfig iwconfig But, maybe Darren can mod this and add this to the mk3 with a button in the advanced tab.(click to change MAC) Just an idea. Yours, is a little bit easier to do. Not trying to hijack your thread,but thought this might go under the same thread for changing MAC address's. thanks, catz Quote Link to comment Share on other sites More sharing options...
Darren Kitchen Posted November 20, 2011 Share Posted November 20, 2011 Nice stuff guys! I can't believe I overlooked this as a feature from the get go. Working on a point release to fix some minor bugs and will try to add these as features. Cheers! Quote Link to comment Share on other sites More sharing options...
x0Jakeyboy0x Posted November 21, 2011 Share Posted November 21, 2011 (edited) Installed and works great. Thanks. Edited November 21, 2011 by x0Jakeyboy0x Quote Link to comment Share on other sites More sharing options...
leg3nd Posted November 22, 2011 Share Posted November 22, 2011 Cool idea. This also works on Mark 2, just have to get the package. Just keep in mind that you'll need to keep track of the mac address for airdrop-ng in order to not deauth your clients. :) Quote Link to comment Share on other sites More sharing options...
itsm0ld Posted November 22, 2011 Author Share Posted November 22, 2011 Cool idea. This also works on Mark 2, just have to get the package. Just keep in mind that you'll need to keep track of the mac address for airdrop-ng in order to not deauth your clients. :) Yea for the Mark 2 this works awesome! http://forums.hak5.org/index.php?showtopic=18060&view=findpost&p=173201 Quote Link to comment Share on other sites More sharing options...
Sebkinne Posted November 27, 2011 Share Posted November 27, 2011 Great idea! I will experiment with this for a bit, such a useful thing! Quote Link to comment Share on other sites More sharing options...
ehuna Posted December 3, 2011 Share Posted December 3, 2011 Worked perfectly - nice! Quote Link to comment Share on other sites More sharing options...
wcs Posted December 5, 2011 Share Posted December 5, 2011 Adding this to my to do list with my new MKIII Thanks for the great post Quote Link to comment Share on other sites More sharing options...
Mr-Protocol Posted December 10, 2011 Share Posted December 10, 2011 It will hopefully be included in the firmware sooner or later. Now that I have finished up my courses I am going to try and help out Seb with firmware updating. Quote Link to comment Share on other sites More sharing options...
wcs Posted December 11, 2011 Share Posted December 11, 2011 (edited) ----repost delete sry Edited December 11, 2011 by wcs 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.