I need to configure a set of new machines. They all need a set of common WLAN connections I currently have on my machine. I know how to manually retrieve the settings including the passwords using the network-manager GUI.
What I'm looking for are 2 scripts: one to extract all wireless settings (at least SSID and security type/password) into a text format file (XML would be fine), so I can edit and polish it. The other one (unsurprisingly) to write them back (on a new machine).
Any pointers are welcome!
Clarification: I don't want to snoop out passwords in the wireless world, just to ease the process of documenting and distributing what is stored on one machine already.
It turns out, a simple copy operation will suffice! With a little more snooping around on askUbuntu it turns out that all network connections are stored in
/etc/NetworkManager/system-connections/
, so I just need to copy them (root access required) around using any of the distribution methods I'd pick.To document the settings (we love spreadsheets) a simple script (solved with a little help) one can use this script:
You need to run that script as root and you might want to add additional values from connection setting. Opens nicely in a spreadsheet of your choice
This is So Easy
Lets begin .
We'll need : airmon-ng ,airodump-ng thats all :D
So install them :
sudo apt-get install aircrack-ng
after that check for your wifi card name :
It will display your wifi card name mine is : wlan0
Change your wlan0 interface to monitor mode to get any APs informations :
Now we have the mon0 interface to use it and listen to the wifi world :D
now begin the wifi scan :
Now you will see all the APs information hit Ctrl + C when you see them all ( give it some minutes e.g : 2 min )
Now you will have some thing like this
thats all if you just want to have this information . (unless you want to ... )
or you can just take all your wifi paswwords :
this is what you were sharing for : it is already solved