BambuSource2Raw icon indicating copy to clipboard operation
BambuSource2Raw copied to clipboard

NetworkFile.conf is binary data since latest update

Open norpol opened this issue 3 years ago • 3 comments

file ~/.config/BambuStudio/BambuNetworkEngine.conf
: data

previously it was basic json

norpol avatar Dec 02 '22 21:12 norpol

Thank you for reporting this issue.

I implemented login related functions a while ago.

I will do some test next week and add a command to generate a json config file.

hisptoot avatar Dec 03 '22 13:12 hisptoot

BambuNetworkEngine.conf is now aes128 encrypted.

It can be decrypted with the following code.

AES_KEY key;
AES_set_decrypt_key((const unsigned char *)"i4crL3LESLnWapLS", 128, &key);

size_t pos = 0;
do
{
    AES_decrypt(&cfg_data[pos], &de_data[pos], &key);
    pos += 16;
} while (pos < cfg_file_size);

hisptoot avatar Dec 05 '22 06:12 hisptoot

I just add the support of cfg file generation

to generate a simple BambuNetworkEngine.conf

./bambusource2raw gen_cfg -u [account_name] -p [password] -r [cn or us]

still needs more testing.

hisptoot avatar Dec 09 '22 04:12 hisptoot