Page 2 of 3

Re: Firmware Decrypt

Posted: Mon Sep 24, 2012 7:46 pm
by juusso
The latest SamyGO patcher (0.31BeteBlue) makes all the job without editing. I mean no problem with B-FIRHRDEUC. Use original.
But maybe your problem is you`re trying to open with wrong application. Use 7zip or far manager to check what is inside exe.img or rootfs... :)

Re: Firmware Decrypt

Posted: Mon Sep 24, 2012 8:26 pm
by andi
Thanks for the hint. 7zip did the trick. I didn't know that the img files are compressed as well. I just looked at the contents of the files with the hex editor and I couldn't see anything. Still, SamyGO patcher (0.31BeteBlue) downloaded yesterday needed modification for B-FIRHRDEUC. I modified this line to include my firmware:
BDd=["B-FIRURDEUC","B-FIRHTBEUC","B-FIRHRDEUM","B-FIRHRDEUC"]
but the script still didn't find the XOR Key. I didn't try to fix the logic, so I just hardcoded it to
keyData = 'B-FIRHRDEUC'
in my case and it worked.
Hope this helps improving SamyGO patcher!

Re: Firmware Decrypt

Posted: Sat Oct 13, 2012 6:38 am
by juusso
greenhorn wrote:Trying to decrypt FW, but got this:

Code: Select all

SamyGO Firmware Patcher v0.31Beta (c) 2010-2011 Erdem U. Altinyurt

                   -=BIG FAT WARNING!=-
            You can brick your TV with this tool!
Authors accept no responsibility about ANY DAMAGE on your devices!
         project home: http://www.SamyGO.tv

Firmware:  B-FIRBPEWWC v1013.0
SamyGO Firmware Patcher.py, revision=1236, Wed Oct 10 22:56:25 2012 UTC:
version = '0.34' #Key for ECBHRDEUC, FIRBPEWW (BD-E8???, BD-E6???).
Hope it helps. ;)

Re: Firmware Decrypt

Posted: Sat Oct 13, 2012 7:24 am
by greenhorn
Just tried, but got this:

Code: Select all

SamyGO Firmware Patcher v0.34 (c) 2010-2011 Erdem U. Altinyurt

                   -=BIG FAT WARNING!=-
            You can brick your TV with this tool!
Authors accept no responsibility about ANY DAMAGE on your devices!
         project home: http://www.SamyGO.tv

Firmware:  B-FIRBPEWWC v1013.0

AES Encrytped 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 1254, in <module>
    Decryptor( sys.argv[2] )
  File "SamyGO.py", line 1088, in Decryptor
    decfile,md5digg,xorkey = xor( encfile )
  File "SamyGO.py", line 99, in xor
    cip_xor = XOR.new( keyData )
ValueError: XOR key cannot be the null string (0 bytes long)

Re: Firmware Decrypt

Posted: Sat Oct 13, 2012 7:30 am
by juusso

Code: Select all

D:\temp>c:\python27\python.exe SamyGO.py decrypt_all ./B-FIRBPEWWC
SamyGO Firmware Patcher v0.34 (c) 2010-2011 Erdem U. Altinyurt

                   -=BIG FAT WARNING!=-
            You can brick your TV with this tool!
Authors accept no responsibility about ANY DAMAGE on your devices!
         project home: http://www.SamyGO.tv

Firmware:  B-FIRBPEWWC v1007.1

AES Encrytped CI+ firmware detected.
Processing file exe.img.sec
secret key : 
Decrypting AES...
Decrypting with  XOR Key :  B-FIRBPEWWC
Crypto package found, using fast XOR engine.

Calculated CRC : 0x34AA2668
CRC Validation passed


Processing file Image.sec
secret key :  
Decrypting AES...
Decrypting with  XOR Key :  B-FIRBPEWWC
Crypto package found, using fast XOR engine.

Calculated CRC : 0x489C3F5
CRC Validation passed


Processing file rootfs.img.sec
secret key :  
Decrypting AES...
Decrypting with  XOR Key :  B-FIRBPEWWC
Crypto package found, using fast XOR engine.

Calculated CRC : 0x49FF6593
CRC Validation passed

Re: Firmware Decrypt

Posted: Sat Oct 13, 2012 7:36 am
by greenhorn
hmz....maybe there is something with the file I downloaded. Can you pls just upload the samygopatcher file.

Re: Firmware Decrypt

Posted: Sat Oct 13, 2012 7:38 am
by juusso
you`ve got link to repository, what else do you need :)
(save as... on Download link)

btw, same with latest, 1053 firmware:

Code: Select all

D:\temp>c:\python27\python.exe SamyGO.py decrypt_all ./B-FIRBPEWWC
SamyGO Firmware Patcher v0.34 (c) 2010-2011 Erdem U. Altinyurt

                   -=BIG FAT WARNING!=-
            You can brick your TV with this tool!
Authors accept no responsibility about ANY DAMAGE on your devices!
         project home: http://www.SamyGO.tv

Firmware:  B-FIRBPEWWC v1053.2

AES Encrytped CI+ firmware detected.
Processing file exe.img.sec
secret key :  d6442d-
Decrypting AES...
Decrypting with  XOR Key :  B-FIRBPEWWC
Crypto package found, using fast XOR engine.

Calculated CRC : 0x7E36D8F4
CRC Validation passed


Processing file Image.sec
secret key :  d6442d-
Decrypting AES...
Decrypting with  XOR Key :  B-FIRBPEWWC
Crypto package found, using fast XOR engine.

Calculated CRC : 0x489C3F5
CRC Validation passed


Processing file rootfs.img.sec
secret key :  d6442d-
Decrypting AES...
Decrypting with  XOR Key :  B-FIRBPEWWC
Crypto package found, using fast XOR engine.

Calculated CRC : 0x49FF6593
CRC Validation passed

D:\temp>

Re: Firmware Decrypt

Posted: Sat Oct 13, 2012 9:15 am
by greenhorn
Great job guys! Thank you!

Re: Firmware Decrypt

Posted: Sat Oct 13, 2012 9:25 am
by alessio71
My firmware is slight diffrent (B-FIRBP7WWC) and with every version (here I try to decrypt an old 1003.1 (the latest is 1010.0)) I get this:

Code: Select all

C:\>"SamyGO Firmware Patcher.py" decrypt_all ".\B-FIRBP7WWC"
SamyGO Firmware Patcher v0.34 (c) 2010-2011 Erdem U. Altinyurt

                   -=BIG FAT WARNING!=-
            You can brick your TV with this tool!
Authors accept no responsibility about ANY DAMAGE on your devices!
         project home: http://www.SamyGO.tv

Firmware:  B-FIRBP7WWC v1003.1

AES Encrytped CI+ firmware detected.
Processing file exe.img.sec
secret key :  d6442d-
Decrypting AES...
Decrypting with  XOR Key :  B-FIRBP7WWC
Crypto package found, using fast XOR engine.

Calculated CRC : 0xF3A71B78
Error on Decryption
I know we're almost there to decrypt B-FIRBP7WWC as well, just waiting confident ;)

Thank you,
Alessio

Re: Firmware Decrypt

Posted: Sat Oct 13, 2012 11:43 am
by arris69
alessio71 wrote:My firmware is slight diffrent (B-FIRBP7WWC) and with every version (here I try to decrypt an old 1003.1 (the latest is 1010.0)) I get this:

....
solution is quite simple, btw. try this version http://samygo.svn.sourceforge.net/viewv ... ches/pcre/ but it needs also python module "re"