This time a client requested the ability to change the wireless network key of several dd-wrt Linksys WRT54GL routers at once.
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.