I have been trying to wrap my head round this stuff so bear with me.
I have a Tp-Link TX-VG1530. From the gui you can download the config file however the file is encrypted, I include a portion of the conf.bin file below
q=4‡|&YFË#Tùð¶¿Ä/1Þl^àh[Ú‹³lÙ€ÍÁ.©-&ÚdŠDT•°ôy®jò3R7B®5#B5m¨)½=Q›Î\òï-ÏÇëÄ+®‡h•Y‡Í@Ý úò%×ýÛâçó›Ð0&rŸØë÷vj[ñÛx¹Úm‡z†äí}Ös•qêQRsÆðèÍŽ’|Û˜’²³€¬#ìŸ4œä³½nÛÿl„¯~‚,•RÁgÏ;öÏËÀw‡§„,W‰×Jî <§x}ôžZñˆgFPdB§êÁ×gˆÑ=‰»uËžÏHžâKE¢¾.â˜/×3 Åæç±WÔ™ŒiõÁÕƒS\%*
Õ^çý<w±ø”ð’´<ØmÎF1ˆÀqû§‘¥ðÛAÈÎ-ÿ1z”9]ã7”…b«Yå[ö„*i'{ü'NŒÀç‘4ÑáÐm¹ü´B·U^wª½IÙ‚8û]³#)Lû-Diž
Using firmware modification kit I am able to extract the file system and looking at the upload page for the conf file (/web/main/backNRestore.htm) I can see the following
formObj.target = "up_frame";
formObj.action = "/cgi/confup";
formObj.submit();
Doing a quick grep I can see that /cgi/confup appears in /usr/bin/httpd. looking at this with IDA pro
From the following post I believe I should be able to retrieve the encryption method but I cannot seem to see anything relating to keys etc
http://teknoraver.net Decrypting TP-Link conf file
I include a link to the file here
Using the strings command on the file I see nothing that relates to aes
, des
, md5
, key
, dec
, enc
etc.
There are some tools such as tlrecode.sh which appear to decode the file slightly (this script seems to utilise the same key found in the teknoraver post), the decrypted file is not 100% though
×<?xml version="1.0"?>
<DslCpeConfig>
<InternetGatewayDevice
<Summa¯ry val=".:1.1[](Baseli`ne:1, EthVLA`N:1)"
Can anyone suggest the next steps to take