NefMoto

ECU Files => Original ECU File Requests => Topic started by: Chris123 on September 09, 2016, 06:26:06 AM



Title: Converting SGO to BIN
Post by: Chris123 on September 09, 2016, 06:26:06 AM
Hello,

i need very urgent an original Audi SGO-File converted to a full BIN-File.

Can someone help me and convert a file for me?

Thanks


Title: Re: Converting SGO to BIN
Post by: wowa on September 09, 2016, 08:47:29 AM
Hello,

upload File here.


Title: Re: Converting SGO to BIN
Post by: Chris123 on September 09, 2016, 09:19:15 AM
I need the file 045906019BA_5265_7332.sgo from the Audi SW-Update-CD converted to a full bin.

The 045906019BA_5265 is the original one with old SW.

Thanks a lot


Title: Re: Converting SGO to BIN
Post by: nyet on September 09, 2016, 09:32:20 AM
I would happily write a converter if somebody can post the specs to the sgo file.


Title: Re: Converting SGO to BIN
Post by: Chris123 on September 09, 2016, 09:47:25 AM
Where can i get the specs to the file?

I had the file from the official Audi Update CD 8G0 906 961.


Title: Re: Converting SGO to BIN
Post by: mechanic on November 09, 2016, 04:51:07 AM
I would happily write a converter if somebody can post the specs to the sgo file.
I am bumping thic topic.
What's needed to write such converter? I would donate, others would do the same I guess.


Title: Re: Converting SGO to BIN
Post by: prj on November 09, 2016, 07:27:07 AM
I am bumping thic topic.
What's needed to write such converter? I would donate, others would do the same I guess.
1. Reverse SGO format enough to parse it.
2. Reverse the bootloader on every single ECU type you want to convert.

EDC15/ME7/ZF6HP/MED9/ME17 are BCB/XOR. Some have fixed key, others like EDC15 have a different key for every ECU file and version.
Other ECU's such as EDC16 and SIMOS have a completely different algorithm that can be only obtained by reversing the the bootloader.

I would happily write a converter if somebody can post the specs to the sgo file.
With all due respect, I don't think you are going to break the crypto on EDC16 for example. You need to pull the bootloader apart one by one, it is a very time consuming process. The SGO is easy to reverse even without any specs.


Title: Re: Converting SGO to BIN
Post by: prj on November 09, 2016, 07:50:49 AM
Quote
C:\Tuning\sgoxtract>python sgounpack.py
File loaded: 405066 byte(s)

Section: 1
Address: 0x40E000
Length : 0x300
Erase  : 0x0 - 0x0
Prog   : 0xE000 - 0xE2FF
Crypt  : 11
Output : NONE

Section: 2
Address: 0x40E000
Length : 0x600
Erase  : 0x0 - 0x0
Prog   : 0xE000 - 0xE5FF
Crypt  : 11
Output : NONE

Finding key using section 3...  SUCCESS! key: 24AA2BDAB3A241E155B23F (ASCII: $+AU?)

Section: 3
Address: 0x680000
Length : 0x7C000
Erase  : 0x80000 - 0xFBFFF
Prog   : 0x80000 - 0xFBFFF
Crypt  : 11
Output : 045906019BA_5265_7332.sgo.bin @ 0x0

Section: 4
Address: 0x40E000
Length : 0x300
Erase  : 0x0 - 0x0
Prog   : 0xE000 - 0xE2FF
Crypt  : 11
Output : NONE

All done...