Jump to content

Como automatizar um reset ao router?


vasco16

Recommended Posts

Usei sockets para abrir uma conexão ao rooter e depois envio isto para desligar a net.

POST /?ce=1&be=0&l0=-1&l1=-1 HTTP/1.1
Content-Length: 19
Content-type: application/x-www-form-urlencoded
Authorization: Basic %s

0=13&1=Internet&5=1

Espero uns segundos e envio isto para voltar a ligar.

POST /?ce=1&be=0&l0=-1&l1=-1 HTTP/1.1
Content-Length: 19
Content-type: application/x-www-form-urlencoded
Authorization: Basic %s

0=12&1=Internet&5=1

O %s é o base64("user:pass") do rooter.

(Uso isto no meu script para sacar do RapidShare, para mudar o IP 😉)

Link to comment
Share on other sites

Usei sockets para abrir uma conexão ao rooter e depois envio isto para desligar a net.

POST /?ce=1&be=0&l0=-1&l1=-1 HTTP/1.1
Content-Length: 19
Content-type: application/x-www-form-urlencoded
Authorization: Basic %s

0=13&1=Internet&5=1

Espero uns segundos e envio isto para voltar a ligar.

POST /?ce=1&be=0&l0=-1&l1=-1 HTTP/1.1
Content-Length: 19
Content-type: application/x-www-form-urlencoded
Authorization: Basic %s

0=12&1=Internet&5=1

O %s é o base64("user:pass") do rooter.

(Uso isto no meu script para sacar do RapidShare, para mudar o IP 😉)

podes mandar pm com o script?

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...

Important Information

By using this site you accept our Terms of Use and Privacy Policy. We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.