Skip to content

Instantly share code, notes, and snippets.

@iskigow
Created February 1, 2013 02:11
Show Gist options
  • Save iskigow/4688621 to your computer and use it in GitHub Desktop.
Save iskigow/4688621 to your computer and use it in GitHub Desktop.
A HTTP Live header script for renew IP of Thomson DWG850-B4.
[[[HSRC]]]
[[[STEP]]]
[[[DEFINE routername="Thomson DWG850-B4"/]]]
[[[/STEP]]]
[[[STEP]]]
[[[REQUEST]]]
GET /RgDhcp.asp HTTP/1.1
Host: %%%routerip%%%
Authorization: Basic %%%basicauth%%%
[[[/REQUEST]]]
[[[/STEP]]]
[[[STEP]]]
[[[REQUEST]]]
POST /goform/RgDhcp HTTP/1.1
Host: %%%routerip%%%
Authorization: Basic %%%basicauth%%%
WanLeaseAction=2&WanConnectionType=0&Mtu=0&HostName=&DomainName=&SpoofedMacAddressMA0=00&SpoofedMacAddressMA1=00&SpoofedMacAddressMA2=00&SpoofedMacAddressMA3=00&SpoofedMacAddressMA4=00&SpoofedMacAddressMA5=00
[[[/REQUEST]]]
[[[/STEP]]]
[[[STEP]]]
[[[WAIT seconds="1"/]]]
[[[/STEP]]]
[[[STEP]]]
[[[REQUEST]]]
GET /RgDhcp.asp HTTP/1.1
Host: %%%routerip%%%
Authorization: Basic %%%basicauth%%%
[[[/REQUEST]]]
[[[/STEP]]]
[[[STEP]]]
[[[REQUEST]]]
POST /goform/RgDhcp HTTP/1.1
Host: %%%routerip%%%
Authorization: Basic %%%basicauth%%%
WanLeaseAction=1&WanConnectionType=0&Mtu=0&HostName=&DomainName=&SpoofedMacAddressMA0=00&SpoofedMacAddressMA1=00&SpoofedMacAddressMA2=00&SpoofedMacAddressMA3=00&SpoofedMacAddressMA4=00&SpoofedMacAddressMA5=00
[[[/REQUEST]]]
[[[/STEP]]]
[[[STEP]]]
[[[WAIT seconds="10"/]]]
[[[/STEP]]]
[[[STEP]]]
[[[REQUEST]]]
GET /RgDhcp.asp HTTP/1.1
Host: %%%routerip%%%
Authorization: Basic %%%basicauth%%%
[[[/REQUEST]]]
[[[/STEP]]]
[[[/HSRC]]]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment