Greetings fellow Pokemon trainers.
Today I read a very interesting post of how this guy put emoji icons to his Wifi. 🤔
I thought it was a cool idea. For the past few days I had bad times 😡 with internet connection, and I probably reset back and fourth the huddle for ten times.
Oh, did I mentioned it is the Yes NoG Huddle XS?
So, I gave it a go to mess with this small fella. 🙈 🙉 🙊
I borrowed that idea and started messing with the form and was trying to find out the validator and submit functions.
Sure enough, I was expecting this
The network name ( SSID ) contains 1 or more characters that are not valid. Please type a different network name message if I try to insert the emoji into the text field and submit.
I'm glad at least the validator works. 😂 Now, to the advance stuff. 😎
A search on the error message lead to SaveAuthInfo() and lead to SaveWifiInfo() BINGO!!! 😝
What is left to do is simulate the SendRequest() and all their base are belong to us. A quick search again to find out what exactly SendRequest() do.
So, it a simple post request!
Now gather the param values, construct the request and send it manually in the console.
var req = CreateHttpRequest(); req.open("POST", "http://192.168.1.1/cgi-bin/webmain.cgi", true) req.send("act=act_ar6000_set&mode80211=index2&security_mode=index2&ssid=WolvenPeaks🐺&max_user=4&txpower=index2&ssid_broadcast=YES&channel_num=0&wpd_mode=index1&wpa_type=index0")
BANG BANG 👯 👏 💃 ✨ restart the huddle.
Moral of the story for y'all developers out there:
Server side validation is as important as client side validation.
Btw, I also found out the shortcut to reboot the huddle just by visiting this url
Thanks for reading, ciao~
I am a programmer, I have no life.