20 Sep 2019 
Support Center » Knowledgebase » Scripts for DSL/Cable modems / routers » Qwest® Motorola 3347
 Qwest® Motorola 3347
Article hs=new HTTPScript("admin", "0000");
hs.ForceAuthHeader=true;
s=hs.GET("http://192.168.0.1/wirelesssetup_basicsettings.htm");
vHtml=new HTML(s);
vInputs=vHtml.GetAllElementsByTag("input");
vNonce='?';
foreach(vInput in vInputs)
if (vInput.Name=="csrfNonce")
vNonce=vInput.Value;
hs=new HTTPScript("admin", "0000");
hs.ForceAuthHeader=true;
hs.SetHeader("Accept", "image/jpeg, application/x-ms-application, image/gif, application/xaml+xml, image/pjpeg, application/x-ms-xbap, application/vnd.ms-excel, application/vnd.ms-powerpoint, application/msword, application/x-shockwave-flash, */*");
hs.SetHeader("Accept-Language", "en-US");
hs.SetHeader("Accept-Encoding", "gzip, deflate");
hs.SetHeader("Pragma", "no-cache");
hs.SetHeader("User-Agent", "Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 6.1; Trident/4.0; SLCC2; .NET CLR 2.0.50727; .NET CLR 3.5.30729; .NET CLR 3.0.30729; Media Center PC 6.0; InfoPath.2; Tablet PC 2.0)");
hs.SetHeader("Authorization", "Basic YWRtaW46MDAwMA==");
hs.SetData("csrfNonce",vNonce);
hs.SetData("hiddenQwestError", "");
hs.SetData("ChooseWireless_RadioGroup", "1");
hs.SetData("NST_80211_ESSID", "myqwest13");
hs.SetData("ChooseBasicPrivacyRGRP", "1");
hs.SetData("ChooseFactoryWEP_RadioGroup", "0");
hs.SetData("NST_BasicKey", "4808212821");
hs.SetData("ApplyAndReboot", "Apply and Reboot");
hs.Referer="http://192.168.0.1/wirelesssetup_basicsettings.htm";
s=hs.POST("http://192.168.0.1/Forms/wirelessbasic");
s=hs.GET("http://192.168.0.1/wirelesssetup_basicsettings.htm");
s=hs.GET("http://192.168.0.1/thankyou.htm");
Wait(10000);
return true;



Article Details
Article ID: 157
Created On: 09 Feb 2011 11:56 PM

 This article was helpful  This article was not helpful

 Back
 Log in [Lost Password] 
E-mail:
Password:
Remember Me:
 
 Search
 Article Options
Home | Submit a Ticket | Knowledgebase | Troubleshooter
Language:

Help Desk Software by Kayako SupportSuite v3.70.02