Page 1 of 1

Help to decrypt T-valdeuc fw

Posted: Mon Aug 22, 2011 7:57 pm
by tempinbox
I downlaod the samygo fw decrypter and i try to decrypt the t-valdeuc 3008.3 fw but i'm stuck and i need help...
when i use the python script i get this error

Code: Select all

SamyGO Firmware Decrypter

Firmware:  T-VALDEUC v3008.3

Decrypting 'image/appdata.img.sec'

Decrypted result will be here: 'image/appdata.img'

AES Encrypted CI+ firmware detected.
Decrypting with AES...
secret key :  
Decrypting AES...

Decrypting with  XOR Key :  
Crypto package found, using fast XOR engine.
Traceback (most recent call last):
  File "./SamyGO.py", line 231, in <module>
    SamyGO("appdata")
  File "./SamyGO.py", line 185, in SamyGO
    decfile,md5digg,xorkey = xor( encfile )
  File "./SamyGO.py", line 68, in xor
    cip_xor = XOR.new( keyData )
ValueError: XOR key cannot be the null string (0 bytes long)
So what is the next step? how can i do?
in the wiki i read that after using this script i have to decrypt xor encrypted file but there aren't info or how to...
I am using ubuntu 11.0.4 with python, pycrypto, openssl.
wich command i have to use to decrypt encrypted enc xor file with openssl??
how that error means? i think the xor key is T-VALDEUC...maybe i have to modify the python script?
Thanks

Re: Help to decrypt T-valdeuc fw

Posted: Mon Aug 22, 2011 8:00 pm
by juusso
Old script. Here is the newest (check always samygo svn repository if you want to be up to date ;) )

Place script in the same dir where your T-VALDEUC directory exist (not inside!).
I start cmd from same dir and enter such command for decrypting:

Code: Select all

c:/tmp/samygo.py decrypt_all T-VALDEUC
For encrypting:

Code: Select all

c:/tmp/samygo.py encrypt_all T-VALDEUC
Note: don`t run commands twice. If here is any decrypted file (xored or else), you get error.