20 Sep 2019 
Support Center » Knowledgebase » Scripts for DSL/Cable modems / routers » Linksys WRT54G2 rev 1.0.04 + Haxorware cable modem Version 1.1 Revision 38
 Linksys WRT54G2 rev 1.0.04 + Haxorware cable modem Version 1.1 Revision 38
Article m=RandomMAC();
Info("Changing MAC on the router to "+MACToString(m));
hs=new HTTPScript("admin", "admin");
hs.ForceAuthHeader=true;
hs.SetData("action", "Apply");
hs.SetData("mac_clone_enable", "1");
hs.SetData("def_hwaddr_0", m[0]);
hs.SetData("def_hwaddr_1", m[1]);
hs.SetData("def_hwaddr_2", m[2]);
hs.SetData("def_hwaddr_3", m[3]);
hs.SetData("def_hwaddr_4", m[4]);
hs.SetData("def_hwaddr_5", m[5]);
hs.Referer="http://192.168.1.1/WanMAC.htm";
hs.POST("http://192.168.1.1/WanMac.tri");
Wait(20000);


Info("Resetting the modem");
ms=new HTTPScript();
ms.Data="reboot=true";
ms.Referer="http://192.168.100.1/reboot.html";
ms.POST("http://192.168.100.1/reboot.html");
Wait(3000);

Info("Releasing IP");
hs=new HTTPScript("admin", "admin");
hs.ForceAuthHeader=true;
hs.SetData("action", "release");
hs.SetData("wan_pro", "0");
hs.SetData("conn_stats", "4294967295");
hs.SetData("layout", "en");
hs.Referer="http://192.168.1.1/rstatus.tri";
hs.POST("http://192.168.1.1/rstatus.tri");
Wait(1000);

Info("Renewing IP");
hs=new HTTPScript("admin", "admin");
hs.ForceAuthHeader=true;
hs.SetData("action","renew");
hs.SetData("wan_pro", "0");
hs.SetData("conn_stats", "4294967295");
hs.SetData("layout", "en");
hs.Referer="http://192.168.1.1/rstatus.tri";
hs.POST("http://192.168.1.1/rstatus.tri");
Wait(2000);

return true;


Article Details
Article ID: 172
Created On: 11 May 2011 7:11 AM

 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