peterpawn / decoder Goto Github PK
View Code? Open in Web Editor NEW"secrets" decoding for FRITZ!OS devices
License: GNU General Public License v2.0
"secrets" decoding for FRITZ!OS devices
License: GNU General Public License v2.0
no further description - wrong options may result in a segfault or in absolutely wrong messages
The decoder seg faults when doing decode_secret
Program received signal SIGSEGV, Segmentation fault.
0x000000000041625f in _nettle_aes_set_key (nr=14, nk=8, subkeys=0x0, key=0x6efc50 "\235\262\207\260\204W\274rX\331%\254\304\312", <incomplete sequence \332>) at aes-set-key-internal.c:60 60 subkeys[i] = LE_READ_UINT32(key + i*4); (gdb) bt #0 0x000000000041625f in _nettle_aes_set_key (nr=14, nk=8, subkeys=0x0, key=0x6efc50 "\235\262\207\260
\204W\274rX\331%\254\304\312", <incomplete sequence \332>)
at aes-set-key-internal.c:60
#1 0x0000000000416179 in nettle_aes256_set_encrypt_key (ctx=0x0, key=0x6efc50 "\235\262\207\260\204W\274rX\331%\254\304\312", <incomplete sequence \332>) at aes256-set-encrypt-key.c:43 #2 0x0000000000414a8e in nettle_aes256_set_decrypt_key (ctx=0x0, key=0x6efc50 "\235\262\207\260
\204W\274rX\331%\254\304\312", <incomplete sequence \332>)
at aes256-set-decrypt-key.c:50
#3 0x0000000000405189 in CipherInit (ctx=0x0, mode=CipherTypeValue, key=0x6efc50 "\235\262\207\260\204W\274rX\331%\254\304\312", <incomplete sequence \332>, iv=0x6efb90 "\370\230ϲP\352\255#\264\070\070)V\354hi\311
\350\223o\221\070\rZ\206\253\231\061\220X\352'\032\n\177\017\224\030XqC5Va\aɃJI\247Ȁ#\b\245\252\025\003\203X\253\222p", padding=false) at crypto_nettle.c:89
#4 0x000000000040c830 in decsngl_entry (argc=5, argv=0x7fffffffdd58, argo=1, entry=0x6e8ce0 <__decsngl_command>) at decsngl.c:218
#5 0x000000000041471d in main (argc=5, argv=0x7fffffffdd58) at decoder.c:140
The second entry in header (Password2) leads to a decryption error and as a result, the output data contains the original and encrypted values, while the "--verbose" option displays correct decryption for all entries following the header.
Removing the second entry with an editor, leads to a normal processing for the whole file.
the decoder cant read a export file from a FB7530 164.07.21. Why? And where i can specify the password for the export file?
when i run "./decoder.x86_64 decode_secrets ../../../../Downloads/FRITZ.Box\ 7530\ 164.07.21_13.05.22_1650.export" , reports the script:
decode_secrets: Error opening environment file '/proc/sys/urlader/environment'.
Hello, to avoid a compilation error of: multiple definitions... please declare
extern void (*usageScreen)(void);
in functions.h
Regards
fix buffer handling in decode_export - some values aren't decrypted, if they don't fit into a single buffer
fill the subfunctions with some text to display
When executing make
, I received the error message 'gpg: error reading key: No public key' from download.sh.
After digging around, I found that the keyserver hkp://keys.gnupg.net:11371 is not responding.
This server does not seem to exist anymore!
Workaround:
Modify the file src/nettle/download.sh
as follows:
Replace
keyServer=hkp://keys.gnupg.net:11371
with (e.g.)
keyServer=keyserver.ubuntu.com
Or use some other keyserver
Then make runs without errors.
In my opinion "decoder" is too generic, see for example https://gitlab.gnome.org/World/decoder.
I propose to rename the project so that the name doesn't collide with anything else. Maybe something like fritz-decoder or fritz-config-tools?
Hi,
[I apologize if this is not the right place to post this issue]
I am trying to decode a backup exported from my FritzBox with the following command:
./decoder.x86_64 decode_export -a env < FRITZ.Box\ 7272\ \(UI\)\ 120.06.88_11.03.22_1401.export
whereenv
is a file with the following content:
SerialNumber E50448830126160
maca 5C:49:79:57:47:5A
wlan_key 25083886372223913969
I got error
decode_export: The device property 'SerialNumber' is not set.
Any hint what I am missing please? I use the pre-compiled binary from the latest release.
closes #11
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.