Skip to content

Instantly share code, notes, and snippets.

@leolabs
Forked from mraerino/upc-router-weak-wifi.js
Last active September 8, 2017 00:04
Show Gist options
  • Save leolabs/7e49877463e362233c48e959b947afbe to your computer and use it in GitHub Desktop.
Save leolabs/7e49877463e362233c48e959b947afbe to your computer and use it in GitHub Desktop.

You can use this function to set an insecure password in your Unitymedia router's WiFi settings.

function setWifiInsecure(ssid, password) {
ajaxSet({
"fun":301,"wlBandMode2g":"1","wlBandMode5g":"1",
"wlSsid2g":ssid,"wlSsid5g":ssid,"wlBandwidth2g":"1",
"wlBandwidth5g":"2","wlTxMode2g":"1","wlTxMode5g":"14",
"wlMCastRate2g":"1","wlMCastRate5g":"1","wlHiden2g":"2",
"wlHiden5g":"2","wlCoexistence":"1","wlPSkey2g":password,
"wlPSkey5g":password,"wlTxrate2g":"0","wlTxrate5g":"0","wlRekey2g":"0",
"wlRekey5g":"0","wlChannel2g":"6","wlChannel5g":"116","wlSecurity2g":4,"wlSecurity5g":4,"wlWpaalg2g":2,"wlWpaalg5g":2});
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment