JesseIZ Posted December 15, 2013 Share Posted December 15, 2013 (edited) 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 December 15, 2013 by JesseIZ Quote Link to comment Share on other sites More sharing options...
Foxtrot Posted December 15, 2013 Share Posted December 15, 2013 try uci (I dont think its possible though) otherwise, just do it the /etc/config/wireless way.... Quote Link to comment Share on other sites More sharing options...
Mit0s1s Posted December 16, 2013 Share Posted December 16, 2013 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 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.