Jump to content

Android Device Spoofing


whitenoise
 Share

Recommended Posts

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!

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.

 Share

  • Recently Browsing   0 members

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