Jump to content

Changing BSSID and SSID from command line


Recommended Posts

Hey,

I am working on a script and i was looking for a command that changes the BSSID and a command that changes the SSID of the pineapple.

If you know a command that can do that please post it below!

Thanks!

- Jesse

Edited by JesseIZ
Link to post
Share on other sites

this is the script i call from a dip switch to run at startup.

## random host name

## assign newhn a random variable
newhn=$(cat /dev/urandom | tr -dc 'A-Za-z' | head -c8)

##update host name and hosts
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

##random ssid for wlan0
newssid=$(cat /dev/urandom | tr -dc 'A-Za-z' | head -c8)
uci set wireless.@wifi-iface[0].ssid=$newssid
uci commit
wifi
Link to post
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...