Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Feature request] Dump Freebox OS backup #1

Open
wikijm opened this issue Aug 8, 2024 · 3 comments
Open

[Feature request] Dump Freebox OS backup #1

wikijm opened this issue Aug 8, 2024 · 3 comments

Comments

@wikijm
Copy link

wikijm commented Aug 8, 2024

Hi Frédéric,

Could you please consider creating a script to get a full Freebox OS config backup?

I got the unpleasant surprise to get a Revolution Rev2 having a suddend death, and as you can imagine, I did a backup manually through WebGUI a long time ago 😞

My goal is to play such script through Jeedom/Home Assistant/You name it domotic solution.

Thanks! 😃

@wikijm wikijm changed the title Dump Freebox OS backup [Feature request] Dump Freebox OS backup Aug 8, 2024
@wikijm
Copy link
Author

wikijm commented Aug 8, 2024

By playing a bit with Burp Suite, I obtain this curl query:

curl --path-as-is -i -s -k -X $'GET' \
    -H $'Host: [freeboxalias].freeboxos.fr:[freeboxosport]' \
    -H $'Sec-Ch-Ua: \"Chromium\";v=\"127\", \"Not)A;Brand\";v=\"99\"'\
    -H $'Sec-Ch-Ua-Mobile: ?0'\
    -H $'Sec-Ch-Ua-Platform: \"Windows\"'\
    -H $'Accept-Language: fr-FR' -H $'Upgrade-Insecure-Requests: 1'\
    -H $'User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/127.0.6533.89 Safari/537.36'\
    -H $'Accept: text/html,application/xhtml+xml,application/xml;q=0.9,image/avif,image/webp,image/apng,*/*;q=0.8,application/signed-exchange;v=b3;q=0.7'\
    -H $'Sec-Fetch-Site: same-origin' -H $'Sec-Fetch-Mode: navigate' -H $'Sec-Fetch-User: ?1' -H $'Sec-Fetch-Dest: document'\
    -H $'Referer: https://[freeboxalias].freeboxos.fr:[freeboxosport]/' -H $'Accept-Encoding: gzip, deflate, br' -H $'Priority: u=0, i' -H $'Connection: keep-alive'\
    -b $'FREEBOXOS=\"[freeboxostoken]"' \
    $'https://[freeboxalias].freeboxos.fr:[freeboxosport]/api/latest/backup/config/export'

@frolland04
Copy link
Owner

frolland04 commented Aug 8, 2024 via email

@wikijm
Copy link
Author

wikijm commented Aug 9, 2024

Thanks for your answer 😄

image

Indeed, I'm using Burp Suite Community Edition to inspect HTTP and WebSockets trafic (you can start a Chromium webbrower with Burp Suite configured as web proxy, then you can forward or drop any web query).

And like you, I don't see anything related to OS config backup on https://dev.freebox.fr/sdk/os/#.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants