Welcome, Guest! Log In | Create Account

SamyGo Firmware Patcher Script

Here are softwares that releated with Samsung firmware. Like hex editors, new version of BusyBox or internal software programs that will run in your TV hardware.:!:This forum is NOT FOR USER QUESTIONS or Problems.

SamyGo Firmware Patcher Script

Postby erdem_ua » Sat Oct 03, 2009 11:19 pm

I write a script for easy modification of files.
I chose python for OS portable solution.
You don't needed use hex editor any more.

Usage:
Only unpack your firmware to any directory
then give path of this directory to script.new forum
Example:
python SamyGo.py /home/user/T-CHL7DEUC/

Cheers!
SamyGO File Download

v0.01 initial Release
v0.02 Added & after telnet init for run exeDSP if telnet script returns error or not.
v0.03 Added newagehun's VideoAR fix for T-CHL7DEUC v2004.1 Firmware.
v0.04 Added VideoAR fix for T-CHEAUSC Firmware version 1012.3 (Usualy named as 2009_DTV_1G_firmware.exe).
v0.05 Fixed file open mode by forcing binary for windows. Thanks dolak for indicating bug.
v0.06 Fixed the CRC sign problem. Thanks atempbloggs for indicating bug.
v0.07 Added NewAge's VideoAR Fix v2 for T-CHL7DEUC v2004.1 Firmware and patch code improvements.
v0.08 Added VideoAR Fix v1 for T-CHU7DEUC Firmware version 2004.0 and 2008.2.
v0.09 Added VideoAR Fix v1 for T-CHL7DEUC Firmware version 2005.0.
v0.10 Added VideoAR Fix v1 for T-CHU7DEUC Firmware version 2009.0.
v0.11 Added Telnet or Advanced Mode switch.
v0.12 Fixed not make encryption if no VideoAR fix situation.
v0.13 Added VideoAR Fix v1 for T-CHU7DEUC Firmware version 3000.G
v0.14 Added VideoAR Fix v1 and WiseLink hack for T-CHL5DEUC Firmware version 2008.0
v0.15 Added Automatic VideoAR Fix v1 Patching for All FAT exe.img images.
Last edited by erdem_ua on Sun Dec 27, 2009 4:56 pm, edited 14 times in total.
Reason: New Version
User avatar
erdem_ua
Site Admin
 
Posts: 620
Joined: Thu Oct 01, 2009 5:02 am
Location: Istanbul, Turkey

Re: SamyGo Firmware Patcher Script for Telnet Enable

Postby gafe » Sun Oct 04, 2009 5:04 pm

Thanks, good work, will test it changing /etc/telnetd_start.sh for /mtd_rwarea/run_this.sh &

Adding the ampersand it's (I think) a security measure to assure exeDSP gets loaded and prevent a boot loop if run_this fails....
gafe
 
Posts: 8
Joined: Sun Oct 04, 2009 5:00 pm

Re: SamyGo Firmware Patcher Script for Telnet Enable

Postby erdem_ua » Wed Oct 07, 2009 9:12 pm

gafe wrote:Thanks, good work, will test it changing /etc/telnetd_start.sh for /mtd_rwarea/run_this.sh &
Adding the ampersand it's (I think) a security measure to assure exeDSP gets loaded and prevent a boot loop if run_this fails....

Thanks fixed in v0.02
User avatar
erdem_ua
Site Admin
 
Posts: 620
Joined: Thu Oct 01, 2009 5:02 am
Location: Istanbul, Turkey

Re: SamyGo Firmware Patcher Script

Postby gafe » Thu Oct 08, 2009 5:39 am

The script I downloaded miss a " in line 131...
gafe
 
Posts: 8
Joined: Sun Oct 04, 2009 5:00 pm

Re: SamyGo Firmware Patcher Script

Postby erdem_ua » Thu Oct 08, 2009 12:21 pm

gafe wrote:The script I downloaded miss a " in line 131...

Fixed in same version too. :) I replace the file. Thanks.
User avatar
erdem_ua
Site Admin
 
Posts: 620
Joined: Thu Oct 01, 2009 5:02 am
Location: Istanbul, Turkey

Re: SamyGo Firmware Patcher Script

Postby dolak » Fri Oct 09, 2009 8:20 pm

I am trying to patch the firmware inside T-CHL7DEUC.exe for Samsung LE-32B653T5W
I thought that the patch was also valid for my firmware but script failed to patch the firmware. Any guess on what may be the reason? is it one of the encrypted firmware or does the script fails due to windows env.

Detected XOR key is : T-CHL7DEUC
Decrypting with XOR %100

Applying Telnet Patch...
Searching %0
Oops!: "#Remove engine logging." string not found on image.
Probably this firmware is already patched or firmware is encrypted with SSL
Telnet Patch not applied.

Applying VideoAR Patch...
MD5 of Decrypted image is : c6984b4792f19ea805969699f3f653b9
Oops!: This firmware is unknown for VideoAR patch. Skipped!
Please visit forum for support.
SamyGo Home: http://SamyGo.sourceforge.net

D:\T-CHL7DEUC>

checking the .xor file, it seems that its 5 KB which means that xor() fails. still digging.
--------------------------------

By the way
If you get a syntax error while execuring the script
D:\T-CHL7DEUC>python SamyGo.py ./
File "SamyGo.py", line 80
print 'Applying Telnet Patch...'
^
SyntaxError: invalid syntax
be sure that you use pyton 2.6.x not 3.1.x
dolak
 
Posts: 4
Joined: Fri Oct 09, 2009 8:06 pm

Re: SamyGo Firmware Patcher Script

Postby dolak » Fri Oct 09, 2009 9:14 pm

yep,
I made a good guess, the problem is with windows pyton and possibly due to paths...
on linux no problem with the script.

Detected XOR key is : T-CHL7DEUC
Decrypting with XOR
XORing %100
Searching %3
Found on : 3969567
Patching File...
Patch Complete.
Telnet Enabled on image
Calculatin new CRC : 196b9605
Updating /root/samsung/T-CHL7DEUC/T-CHL7DEUC/image/validinfo.txt with new CRC
Encrypting with XOR
XORing %100
Operation successfully completed.
Now you can write this directory to the Flash disk.

I will try to debug the script on windows to find the reason.
dolak
 
Posts: 4
Joined: Fri Oct 09, 2009 8:06 pm

Re: SamyGo Firmware Patcher Script

Postby erdem_ua » Fri Oct 09, 2009 9:37 pm

Yes I write script for python 2.6.x version. Not for python 3.
I don't like that new print statement of python.
Also directory structures will different on windows system. I will handle this soon to.
Thank you for indicating problem.
I will try to fix them soon.
User avatar
erdem_ua
Site Admin
 
Posts: 620
Joined: Thu Oct 01, 2009 5:02 am
Location: Istanbul, Turkey

Re: SamyGo Firmware Patcher Script

Postby dolak » Sat Oct 10, 2009 12:03 am

I found how to fix the script in windows. The cause was binary file handling in windows.
e = open(ofile, "wb")
f = open(ifile, "rb")
made the difference.
now script found the correct string for telnet and for VideoAR and patched the firmware and repacked.
Tested, both telnet and VideoAR patch works fine after patching the 2004.1 firmware with SamyGO.py v0.04

I hope wb and rb does not create pain in linux.
Thanks guys! and keep up the good work.
dolak
 
Posts: 4
Joined: Fri Oct 09, 2009 8:06 pm

Re: SamyGo Firmware Patcher Script

Postby erdem_ua » Sat Oct 10, 2009 1:17 am

Oops!
I though that I fixed it :o ! I use that xor code in linux, but when I prepare this script I changed it but I think don't saved that version. This why every (other) file open close is include 'b' , binary support.
adding 'b' is not required in linux because it open files in binary mode default. So adding 'b' don't create pain or mac...

Users, please donate me a brand new glass :geek: or your TV could bricked soon :lol:
Thank you for show that. version 0.05 will be windows compatible :)
User avatar
erdem_ua
Site Admin
 
Posts: 620
Joined: Thu Oct 01, 2009 5:02 am
Location: Istanbul, Turkey

Next

Return to Software

Who is online

Users browsing this forum: No registered users and 3 guests