The Web UI of the Ziggo ConnectBox router doesn't accept unicode character as a SSID but it check it with javascript/client side. So here is a python script to change the SSID and use unicode/emoji in your wireless SSID.
pip install requests
import requests | |
password = 'Ziggo ConnectBox Password' | |
wireless_ssid = '📡 MY WIFI NAME 🔥🔥🔥' | |
wireless_password = 'MY WIFI PASSWORD' | |
session = requests.session() | |
session.get('http://192.168.178.1/common_page/login.html') | |
session.post( | |
'http://192.168.178.1/xml/setter.xml', | |
headers={ | |
'Content-Type': 'application/x-www-form-urlencoded; charset=UTF-8' | |
}, | |
data="token=%s&fun=15&Username=NULL&Password=%s" % ( | |
session.cookies.get('sessionToken'), password | |
) | |
) | |
session.post( | |
'http://192.168.178.1/xml/setter.xml', | |
headers={ | |
'Content-Type': 'application/x-www-form-urlencoded; charset=UTF-8' | |
}, | |
data="token={0}&fun=301&wlBandMode2g=1&wlBandMode5g=1&wlSsid2g={1}" | |
"&wlSsid5g={1}&wlBandwidth2g=2&wlBandwidth5g=3&wlTxMode2g=6&wlTxMode5g=14" | |
"&wlMCastRate2g=1&wlMCastRate5g=1&wlHiden2g=2&wlHiden5g=2&wlCoexistence=1" | |
"&wlPSkey2g={2}&wlPSkey5g={2}&wlTxrate2g=0&wlTxrate5g=0&wlRekey2g=0" | |
"&wlRekey5g=0&wlChannel2g=11&wlChannel5g=48&wlSecurity2g=8&wlSecurity5g=8" | |
"&wlWpaalg2g=3&wlWpaalg5g=3".format( | |
session.cookies.get('sessionToken'), wireless_ssid, wireless_password | |
).encode('utf-8') | |
) | |
session.post( | |
'http://192.168.178.1/xml/setter.xml', | |
headers={ | |
'Content-Type': 'application/x-www-form-urlencoded; charset=UTF-8' | |
}, | |
data="token=%s&fun=16" % session.cookies.get('sessionToken') | |
) |
I can't get it to work with my Ziggo Smartwifi modem (black Sagemcom one, with WiFi6).
Any luck with that model or is just not possible with this modem?
Hi
Could this method be implemented to restart the router which is done apparently using JavaScript functions?