sta-c0000 / tpconf_bin_xml

Command line utility to convert TP-Link router backup config files
160 stars 40 forks source link

Decompile working but compiled conf.bin file is not working. #37

Open YasinKocabas opened 1 year ago

YasinKocabas commented 1 year ago

hello my friend, i am tp-link AX1800 Wireless Dual Band Gigabit VoIP Router

Model No. EX20v

I am using the device. UI looks like 9970, I managed to decrypt it with your python script, but when I encrypt, the router doesn't accept the config file. Is my router not supported? Should I send you the conf.bin file to be supported? Thanks

sta-c0000 commented 1 year ago

If it can convert one way, it should be able to convert both ways. Without seeing a conf.bin, I can only guess; perhaps your Archer may need to skiphits on compression? Try changing:

                if re.search(b'Archer C2[0-9]?[A-z]? v1', src):
                    skiphits = True

To force skiphits (un-indentation important):

#                if re.search(b'Archer C2[0-9]?[A-z]? v1', src):
                skiphits = True

Could you at least provide the HardwareVersion val= line from the XML file so we can see the exact model? (perhaps your model is v1?)

sta-c0000 commented 8 months ago

Or, try the new --skiphits option (see --help) when going xmlbin?