Oct 222012
This time a client requested the ability to change the wireless network key of several dd-wrt Linksys WRT54GL routers at once.
![Linksys_WRT54G](https://bogner.sh/wp-content/uploads/2012/10/Linksys_WRT54G.jpeg)
Linksys WRT54G – CC BY-SA 3.0 – Wiki Commons
To simplify the process I wrote a small bash script that changes the WPA key of a given AP using only the web interface. This means no additional service (like SSH or Telnet) have to be enabled!
In the backend it uses curl to submit a specially crafted HTTP POST request to the router that applies the new key.
You can download change_wpa_key.sh under the WTFPL licence.