20 Sep 2019 
Support Center » Knowledgebase » Scripts for DSL/Cable modems / routers » DLINK DIR-615
 DLINK DIR-615
Article hs=new HTTPScript();
m1=RandomMAC();
m=RandomMAC();
m[0]="00"; m[1]="16"; m[2]="D4"; m[3]="F8";
mac=MACToString(m, ":");
m1[0]="00"; m1[1]="16"; m1[2]="D4"; m1[3]="F8";
mac1=MACToString(m1, ":");
hs.Data="html_response_page=back.asp&html_response_message=The setting is saved.&html_response_return_page=wan_dhcp.asp&mac_clone_addr="+mac+"&wan_specify_dns=0&dhcpc_use_ucast=1&classless_static_route=0&asp_temp_51=&asp_temp_52=dhcpc&reboot_type=wan&button=Save Settings&wan_proto=dhcpc&opendns_enable=0&dns_relay=1&hostname=DIR-615&dhcpc_use_ucast_sel=1&wan_primary_dns=0.0.0.0&wan_secondary_dns=0.0.0.0&wan_mtu=1500&wan_mac="+mac1;
s=hs.POST("http://192.168.0.1/apply.cgi");
Info(s);
Wait(10000);
return true;


Article Details
Article ID: 136
Created On: 04 Dec 2010 6:46 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