whitenoise Posted October 12, 2013 Share Posted October 12, 2013 Hey guys, here are two simple bash scripts how to spoof your hostname and mac adress on a rooted android device as command in the terminal emulator. MAC-Spoofing: #!/system/bin/sh if [ "$1" = "" ]; then echo "00AABBCC22DD" > /data/misc/wifi/config_mac else echo "$1" > /data/misc/wifi/config_mac fi echo $(cat /data/misc/wifi/config_mac) exit Save this to a file called chmac and save it in your system/bin directory. Don't forget to give it chmod +X. Starting: First type "su" in your terminal editor to be sure it runs in root-mode. Then just type chmac and the new mac-adress is shown as an echo. You also can type "chmac AABBAABBCCAA" which will change the MAC to the new choosen one. Please notice that the MAC is entered without ":". In a similar way it is possible to change your hostname. Hostname-Spoofing: #!/system/bin/sh if [ "$1" = "" ]; then setprop net.hostname SamsungS3 else setprop net.hostname $1 fi getprop net.hostname exit Again save this to a file i.e. "chname" save it in the bin folder and make it executable. Run the terminal emulator and make it root. You can just type chname and the name will be set to a constant, in this case "SamsungS3". If you want to choose another name just type "chname Strawberrydreams" and your hostname will change. The new hostname is shown as an echo. Have fun! 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.