20 Sep 2019 
Support Center » Knowledgebase » Scripts for DSL/Cable modems / routers » Netgear WGR614V9 router and WebSTAR DPC2100R2 Cable modem.
 Netgear WGR614V9 router and WebSTAR DPC2100R2 Cable modem.
Article Info("Resetting the modem");
hw=new WebScript();
hw.Start();
hw.NavigateAndWait("http://192.168.100.1/reset");
hw.Exec("document.resetReq=function(){window.document.reset.RestoreFactoryYes.value = 1;}");
hw.ClickButton("Reset All Cable Modem Parameters to Factory Default Settings");
hw.Stop();


hs=new HTTPScript("admin", "password");
hs.ForceAuthHeader=true;
vMac=RandomMAC();
vMac=MACToString(vMac, "");
Info("Changing Router MAC to "+vMac);
hs.Data="system_name=WGR614V9&domain_name=&WANAssign=dhcp&DNSAssign=0&MACAssign=2&Spoofmac="+vMac+"&apply=Apply&runtest=no&wan_proto=dhcp&wan_ipaddr=192.168.100.10&wan_netmask=255.255.255.0&wan_gateway=192.168.100.1&wan_dns_sel=0&wan_dns1_pri=68.105.28.11&wan_dns1_sec=68.105.29.11&wan_hwaddr_sel=2&wan_hwaddr_def=00%3A24%3AB2%3A0D%3AA9%3ACF&wan_hwaddr2=%0D%0Afunction+toUpperCase%28%29+%7B%0D%0A++++%5Bnative+code%5D%0D%0A%7D%0D%0A&wan_hwaddr_pc=00%3AA0%3A50%3A12%3A60%3A39&lan_ipaddr=192.168.1.1&lan_netmask=255.255.255.0";
hs.POST("http://192.168.1.1/ether.cgi");
Wait(10000);
return true; 


Article Details
Article ID: 169
Created On: 24 Apr 2011 8: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