JDownloader Community - Appwork GmbH
 

Reply
 
Thread Tools Display Modes
  #1  
Old 08.05.2021, 15:29
G@ry G@ry is offline
Modem User
 
Join Date: May 2021
Posts: 2
Default Script search for sagemcom 4

Hello,
I cannot reconnect my sagem4 box
Could someone help me with a sagemcom 4 to do a reconnect script please?
Thank you
Reply With Quote
  #2  
Old 14.05.2021, 19:29
Jiaz's Avatar
Jiaz Jiaz is offline
JD Manager
 
Join Date: Mar 2009
Location: Germany
Posts: 70,829
Default

Quote:

[[[HSRC]]]


[[[STEP]]]
[[[REQUEST raw="true"]]]
GET / HTTP/1.1
Host: %%%routerip%%%
user-agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:88.0) Gecko/20100101 Firefox/88.0
accept: text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,*/*;q=0.8
accept-language: fr,fr-FR;q=0.8,en-US;q=0.5,en;q=0.3
accept-encoding: gzip, deflate
connection: keep-alive
upgrade-insecure-requests: 1
dnt: 1
sec-gpc: 1
if-none-match: ecb0e615
[[[/REQUEST]]]
[[[/STEP]]]

[[[STEP]]]
[[[REQUEST raw="true"]]]
POST /ws HTTP/1.1
Host: %%%routerip%%%
user-agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:88.0) Gecko/20100101 Firefox/88.0
accept: */*
authorization: X-Sah-Login
accept-language: fr,fr-FR;q=0.8,en-US;q=0.5,en;q=0.3
accept-encoding: gzip, deflate
content-type: application/x-sah-ws-4-call+json
Origin: **External links are only visible to Support Staff****External links are only visible to Support Staff**
Connection: keep-alive
Referer: **External links are only visible to Support Staff****External links are only visible to Support Staff**
connection: keep-alive
dnt: 1
sec-gpc: 1

{"service":"sah.Device.Information","method":"createContext","parameters":{"applicationName":"web ui" ,"username":"%%%user%%%","password":"%%%pass%%%"}}
[[[/REQUEST]]]
[[[RESPONSE keys="context"]]]
"contextID":"(.*?)"
[[[/RESPONSE]]]
[[[/STEP]]]

[[[STEP]]]
[[[REQUEST raw="true" postraw="true"]]]
POST /ws HTTP/1.1
Host: %%%routerip%%%
user-agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:88.0) Gecko/20100101 Firefox/88.0
accept: */*
accept-language: fr,fr-FR;q=0.8,en-US;q=0.5,en;q=0.3
accept-encoding: gzip, deflate
content-type: application/x-sah-ws-4-call+json
Origin: **External links are only visible to Support Staff****External links are only visible to Support Staff**
Connection: keep-alive
Referer: **External links are only visible to Support Staff****External links are only visible to Support Staff**
authorization: X-Sah %%%context%%%
x-context: %%%context%%%
content-length: 72
connection: keep-alive
cookie: sah/contextId=%%%context%%%
dnt: 1
sec-gpc: 1

7b2273657276696365223a224e4d43222c226d6574686f64223a227265626f6f74222c22706172616d6574657273223a7b22 726561736f6e223a224755495f5265626f6f74227d7d
[[[/REQUEST]]]
[[[/STEP]]]


[[[/HSRC]]]
here you go, created via teamviewer session
__________________
JD-Dev & Server-Admin

Last edited by Jiaz; 18.05.2021 at 11:47.
Reply With Quote
  #3  
Old 14.05.2021, 19:54
G@ry G@ry is offline
Modem User
 
Join Date: May 2021
Posts: 2
Default

A big thanks Jiaz you're the best))

Last edited by G@ry; 17.05.2021 at 19:47.
Reply With Quote
  #4  
Old 17.05.2021, 12:19
Jiaz's Avatar
Jiaz Jiaz is offline
JD Manager
 
Join Date: Mar 2009
Location: Germany
Posts: 70,829
Default

Thanks to you for your time/help with this. Teamviewer+Developer Tools of browser + Time to test several script attempts
__________________
JD-Dev & Server-Admin
Reply With Quote
  #5  
Old 17.05.2021, 19:27
Jiaz's Avatar
Jiaz Jiaz is offline
JD Manager
 
Join Date: Mar 2009
Location: Germany
Posts: 70,829
Default

This is the raw script, pastebin.com/hMQnic67
__________________
JD-Dev & Server-Admin

Last edited by Jiaz; 18.05.2021 at 11:47.
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

All times are GMT +2. The time now is 10:58.
Provided By AppWork GmbH | Privacy | Imprint
Parts of the Design are used from Kirsch designed by Andrew & Austin
Powered by vBulletin® Version 3.8.10 Beta 1
Copyright ©2000 - 2021, Jelsoft Enterprises Ltd.