Thread: [Reconnect working] Script search for sagemcom 4
View Single Post
  #17  
Old 08.09.2021, 11:43
bugnotme bugnotme is offline
BugMeNot Account
 
Join Date: Apr 2013
Posts: 352
Default

Quote:
Originally Posted by Jiaz View Post
Maybe you can share your working script ?
Already did on JDownloader's database ^^

Here it is, still :

Quote:
[[[HSRC]]]
[[[STEP]]]
[[[REQUEST raw="true"]]]
POST /ws HTTP/1.1
Host: %%%routerip%%%
authorization: X-Sah-Login
content-length: 158
connection: keep-alive

{"service":"sah.Device.Information","method":"createContext","parameters":{"applicationName":"so_sdk ut","username":"%%%user%%%","password":"%%%pass%%%"}}

[[[/REQUEST]]]
[[[RESPONSE keys="context"]]]
"contextID":"(.*?)"
[[[/RESPONSE]]]
[[[/STEP]]]

[[[STEP]]]
[[[REQUEST raw="true"]]]
POST /ws HTTP/1.1
Host: %%%routerip%%%
authorization: X-Sah %%%context%%%
connection: keep-alive
x-context: %%%context%%%
content-length: 466
content-type: application/x-sah-ws-4-call+json

{"service":"Probe","method":"logEvents","parameters":{"events":[{"EventSource":"gui_module","EventKey":"GUI","EventParameters":{"userSession":"%%%context%%%","sourc e":"GUI","page":"Redémarrage","state":"Défaut","action":"restart","browserName":"Firefox","browserVe rsion":"91.0","browserEngine":"","deviceType":"","deviceVendor":"","deviceModel":"","osName":"Window s","osVersion":"10","screenSize":"1920x1080"}}]}}
[[[/REQUEST]]]
[[[/STEP]]]

[[[STEP]]]
[[[REQUEST raw="true"]]]
POST /ws HTTP/1.1
Host: %%%routerip%%%
authorization: X-Sah %%%context%%%
connection: keep-alive
x-context: %%%context%%%
content-length: 72
content-type: application/x-sah-ws-4-call+json

{"service":"NMC","method":"reboot","parameters":{"reason":"GUI_Reboot"}}
[[[/REQUEST]]]
[[[/STEP]]]
[[[/HSRC]]]
Reply With Quote