View Full Version : UPA crypto ready
drpeter
29th June, 2011, 07:42 PM
Respect Elrasoft. Very complex code :-). Penko helped me with converting to Pascal, extra for me unknown functions where needed.
markony79
29th June, 2011, 08:26 PM
Dr Peter , you make UPA perfect!!!
Congratulations
einet
29th June, 2011, 08:28 PM
Good job,
Can you give more infos from "unknown functions where needed"?
einet
drpeter
29th June, 2011, 08:48 PM
Good job,
Can you give more infos from "unknown functions where needed"?
einet
I am not the first! I think Ramzai is for UPA, but you must extend the memory size, decrypt the data there and copy all decrypted data to 0-7FF. It only works with the latest UPA software.
There are many versions around so I have work to do. Also Audi, Polo etc. is based on the same.
tehnosoftex
29th June, 2011, 10:49 PM
Well done m8. I try for some time to made a script to convert rosfar format to xprog format flash for motorola 9s12 and until now I did not found any function to work for extend or delete portions of dump. may be you can give me a hint.
drpeter
29th June, 2011, 11:22 PM
Well done m8. I try for some time to made a script to convert rosfar format to xprog format flash for motorola 9s12 and until now I did not found any function to work for extend or delete portions of dump. may be you can give me a hint.
You can simply save as bin in the eeprom editor from rosfar and load bin into xprog.
I made a second version tonight took me 4 hours, other encryption, is for new clusters 2007-up. I have a headache now lol.
nomis
30th June, 2011, 05:30 AM
Hi ! What languages i need to make upa new software script ? I have upa from 4 years but no scripts .
If it is difficult can anyone make scripts for me(only japanese cars) ? Not free .
tehnosoftex
30th June, 2011, 09:45 AM
You can simply save as bin in the eeprom editor from rosfar and load bin into xprog.
I made a second version tonight took me 4 hours, other encryption, is for new clusters 2007-up. I have a headache now lol.
Is not that simple, the flash cannot be saved as bin but this is not the problem. The xprog format comply with motorola addresses, ie for 9s12dg256 has:
FLASH Page $30: $08000-$0BFFF
FLASH Page $31: $18000-$1BFFF
FLASH Page $32: $28000-$2BFFF
FLASH Page $33: $38000-$3BFFF
FLASH Page $34: $48000-$4BFFF
FLASH Page $35: $58000-$5BFFF
FLASH Page $36: $68000-$6BFFF
FLASH Page $37: $78000-$7BFFF
FLASH Page $38: $88000-$8BFFF
FLASH Page $39: $98000-$9BFFF
FLASH Page $3A: $A8000-$ABFFF
FLASH Page $3B: $B8000-$BBFFF
FLASH Page $3C: $C8000-$CBFFF
FLASH Page $3D: $D8000-$DBFFF
FLASH Page $3E: $E8000-$EBFFF
FLASH Page $3F: $F8000-$FBFFF
and in rest has FF. The rosfar format did not respect that addresses and make a dump from that flash pages without any gaps.
I want to make a script to delete that empty blocks from xprog dumps and add empty blocks (ff) to rosfar dumps and all functions which i test from library XhexEdit did not work.
mastaflex
30th June, 2011, 12:49 PM
Respect Elrasoft. Very complex code :-). Penko helped me with converting to Pascal, extra for me unknown functions where needed.
good work mate, you are the UPA expert around here ;)
wiseman
30th June, 2011, 01:22 PM
good work mate, you are the UPA expert around here ;)
couldnt agree more:top:
paul_12345
30th June, 2011, 01:49 PM
Is not that simple, the flash cannot be saved as bin but this is not the problem. The xprog format comply with motorola addresses, ie for 9s12dg256 has:
FLASH Page $30: $08000-$0BFFF
FLASH Page $31: $18000-$1BFFF
FLASH Page $32: $28000-$2BFFF
FLASH Page $33: $38000-$3BFFF
FLASH Page $34: $48000-$4BFFF
FLASH Page $35: $58000-$5BFFF
FLASH Page $36: $68000-$6BFFF
FLASH Page $37: $78000-$7BFFF
FLASH Page $38: $88000-$8BFFF
FLASH Page $39: $98000-$9BFFF
FLASH Page $3A: $A8000-$ABFFF
FLASH Page $3B: $B8000-$BBFFF
FLASH Page $3C: $C8000-$CBFFF
FLASH Page $3D: $D8000-$DBFFF
FLASH Page $3E: $E8000-$EBFFF
FLASH Page $3F: $F8000-$FBFFF
and in rest has FF. The rosfar format did not respect that addresses and make a dump from that flash pages without any gaps.
I want to make a script to delete that empty blocks from xprog dumps and add empty blocks (ff) to rosfar dumps and all functions which i test from library XhexEdit did not work.
post example files.
blackpirate
30th June, 2011, 02:33 PM
nicely done Doc!;)
as u said, Ramzai its also very skilled in this things! ;)
potatodog
30th June, 2011, 04:59 PM
Congratulations Doc:congrats:
Next year you will want to sell your speedometer-softwarelol
hcip
1st July, 2011, 10:49 AM
Good works Peter!!!!
Also Dodge Nitro and Jeep Compas Calculated the Checksum by UPA Script
http://i227.photobucket.com/albums/dd129/hcip/nitro.jpg
And Ford algos Calculated Read/Write the nearest Value, not +/- 128 km
http://i227.photobucket.com/albums/dd129/hcip/F150Raptor.jpg
@ peter,
Sent you in email the Source codes of Visteon (Fords) and Nitro (UPA Script)
Hope it will works good
drpeter
1st July, 2011, 11:02 AM
Good works Peter!!!!
Also Dodge Nitro and Jeep Compas Calculated the Checksum by UPA Script
http://i227.photobucket.com/albums/dd129/hcip/nitro.jpg
And Ford algos Calculated Read/Write the nearest Value, not +/- 128 km
http://i227.photobucket.com/albums/dd129/hcip/F150Raptor.jpg
@ peter,
Sent you in email the Source codes of Visteon (Fords) and Nitro (UPA Script)
Hope it will works good
Nice thanks, I will sent you the source code of fabia crypto and polo crypto upa by email :-). It saves a lot of time if we work together. I had a problem with crypto read (upa) now it is fixed, also the login code reads fine now (changed some code).
digimile
1st July, 2011, 05:34 PM
hi
good work HCIP and Drpeter but for rest of us is just fortune to make the script like this....thankx
forumams
1st July, 2011, 07:41 PM
Is not that simple, the flash cannot be saved as bin but this is not the problem. The xprog format comply with motorola addresses, ie for 9s12dg256 has:
FLASH Page $30: $08000-$0BFFF
FLASH Page $31: $18000-$1BFFF
FLASH Page $32: $28000-$2BFFF
FLASH Page $33: $38000-$3BFFF
FLASH Page $34: $48000-$4BFFF
FLASH Page $35: $58000-$5BFFF
FLASH Page $36: $68000-$6BFFF
FLASH Page $37: $78000-$7BFFF
FLASH Page $38: $88000-$8BFFF
FLASH Page $39: $98000-$9BFFF
FLASH Page $3A: $A8000-$ABFFF
FLASH Page $3B: $B8000-$BBFFF
FLASH Page $3C: $C8000-$CBFFF
FLASH Page $3D: $D8000-$DBFFF
FLASH Page $3E: $E8000-$EBFFF
FLASH Page $3F: $F8000-$FBFFF
and in rest has FF. The rosfar format did not respect that addresses and make a dump from that flash pages without any gaps.
I want to make a script to delete that empty blocks from xprog dumps and add empty blocks (ff) to rosfar dumps and all functions which i test from library XhexEdit did not work.
xprog by default use ETL programmer format. Change in the xprog hc12 config file etl=1 to etl=0 and xprog will accept and produce nature bin file.
tehnosoftex
1st July, 2011, 11:33 PM
Try to compare that dumps. They are from the same flash read with xprog and with rosfar
antibisic
2nd July, 2011, 08:38 AM
Rosfar files are in inverted format it is the problem?
tehnosoftex
2nd July, 2011, 09:39 AM
it is very easy to invert bin with a script but cut and paste the dump with a script it is what I cant do
ivanov
3rd July, 2011, 04:52 AM
No need to write a script if you have winhex or other hexeditor, invert the dump then save it as different name, now you have it ready for upa and to modify mileage its just a matter of a few clicks copy paste or use a function replace with, calculated by tachosoft or nyo.
hcip
3rd July, 2011, 05:12 AM
it is very easy to invert bin with a script but cut and paste the dump with a script it is what I cant do
you can use GetbyteHexedit and SetbyteHexedit then loop command instead of using copy/Paste
Copy/Paste is usable in UPA software if you use an IDE Hexeditor not the built-in Hexeditor by UPA
you need to draw new Hexeditor from IDE then the copy/paste can be use
hcip
3rd July, 2011, 06:38 AM
Here is the Script that inverting the bytes, but this is only for small buffer of 255 in size
it is easy to build the script like this one
Hope this will help you to expand your imagination:laugh:
hcip
3rd July, 2011, 06:54 AM
it is very easy to invert bin with a script but cut and paste the dump with a script it is what I cant do
Remember that for every conversion, you need to expand the memory to use it as a temporary storage
from there you can put the codes and write in original address to complete the conversion then restore the original size of a buffer
I did not found any function to work for extend .
I think SetDatasize command in uuprog will work, If I am not mistaken. I am not sure because I dont try this yet
tehnosoftex
3rd July, 2011, 11:27 AM
Remember that for every conversion, you need to expand the memory to use it as a temporary storage
from there you can put the codes and write in original address to complete the conversion then restore the original size of a buffer
I think SetDatasize command in uuprog will work, If I am not mistaken. I am not sure because I dont try this yet
This is my problem. None of procedures from library Xhexedit did not work. The compiler display "Unknown method or function" on any of xhexedit functions. May be is not implemented yet. To expand and to cut some dump portions I need that library working.
hcip
3rd July, 2011, 11:33 AM
I will test it and post result to you
drpeter
3rd July, 2011, 11:59 AM
This is my problem. None of procedures from library Xhexedit did not work. The compiler display "Unknown method or function" on any of xhexedit functions. May be is not implemented yet. To expand and to cut some dump portions I need that library working.
Update to the latest UUPROG.
then
uses xhexedit;
var he: TXHexEdit;
he := GetHexEdit;
heSize := he.GetDataSize; //store hex edit size;
he.SetDataSize( heSize-1 + $100); //increase hex edit size with $100 for example
he.SetDatasize( heSize-1 );//restore original hex edit size
he.DrawGrid; //refresh hex edit
that's it.
hcip
3rd July, 2011, 02:08 PM
Here is a sample script that can convert Rosfar File
Load a rosfar Flash file and click convert, you wil see that the file will move from address 0X8000 to Address 0XBFFF converted to a normal file liike Xprog file
Note: the script only convert and set the first Flash (Page 30) it can added some command to make the whole file to convert
boratokm
3rd July, 2011, 10:50 PM
Congratulations all programmer work very hard this weekend
Dr peter Good Job for the script Crypto and hil for invert Bits
i have ready the invert bits now star my job in seat crypto 93c86
best regards
: Top:
hcip
4th July, 2011, 03:15 AM
@ tehnosoftex (http://www.digital-kaos.co.uk/forums/members/87877-tehnosoftex/)
Here is the complete working script that convert the Cas file you have posted
hcip
4th July, 2011, 03:31 AM
Update to the latest UUPROG.
then
uses xhexedit;
var he: TXHexEdit;
he := GetHexEdit;
heSize := he.GetDataSize; //store hex edit size;
he.SetDataSize( heSize-1 + $100); //increase hex edit size with $100 for example
he.SetDatasize( heSize-1 );//restore original hex edit size
he.DrawGrid; //refresh hex edit
that's it.
Direct command are as follows:
heSize := GetHexedit.GetDataSize; //store hex edit size;
GetHexedit.SetDataSize( heSize-1 + $100); //increase hex edit size with $100 for example
GetHexedit.SetDatasize( heSize-1 );//restore original hex edit size
GetHexedit.DrawGrid; //refresh hex edit
drpeter
4th July, 2011, 06:18 AM
Direct command are as follows:
heSize := GetHexedit.GetDataSize; //store hex edit size;
GetHexedit.SetDataSize( heSize-1 + $100); //increase hex edit size with $100 for example
GetHexedit.SetDatasize( heSize-1 );//restore original hex edit size
GetHexedit.DrawGrid; //refresh hex edit
he := GetHexEdit; saves typing time lol.
hcip
4th July, 2011, 05:25 PM
Update of Rosfar Converter, added some MCU Selection
anyone knows the flash pages of MCU 912XDP?
will be added if I know its addresses
Previous atachment has an error in File Size
replace with corrected file
tehnosoftex
4th July, 2011, 07:48 PM
Wow, thank you very much Hill and Dr Peter. Seems that some titans are among us. I didn't realize that all functions and procedures of XHexEdit library must be instances of Gethexedit.
This is what ive make, using only MoveCells function. The script is not yet finished, it works only for 9s12xx256 and only from xprog to rosfar. Thank you again Hill and Dr Peter
hcip
5th July, 2011, 07:05 AM
Here is the complete Working Script that convert the flash file read by Xprog into Rosfar file and Rosfar file into Xprog file
I hope this will work
drpeter
6th July, 2011, 09:03 PM
Here is the complete Working Script that convert the flash file read by Xprog into Rosfar file and Rosfar file into Xprog file
I hope this will work
First upa crypto script posted, superb v2. With test dump. Have fun lol.
tachonow
6th July, 2011, 09:17 PM
Why I receive this message ?
drpeter
6th July, 2011, 09:23 PM
Why I receive this message ?
Only works with latest software, please update and it will be fine.
digimile
6th July, 2011, 09:30 PM
hi
it work good but didnot see where it make changes just success message after update km.other script show changes in red color like upa default editor show.or we just need to put new km and click update and then programm whole file agian.
Like this.
Thankx Drpeter Good work
drpeter
7th July, 2011, 07:41 AM
hi
it work good but didnot see where it make changes just success message after update km.other script show changes in red color like upa default editor show.or we just need to put new km and click update and then programm whole file agian.
Like this.
Thankx Drpeter Good work
Why do you think I did this? You cannot save decrypted also.
It is a lot of work to make, so some options are not available.
Your welcome.
hcip
7th July, 2011, 01:12 PM
hi
other script show changes in red color like upa default editor show.
Thankx Drpeter Good work
You cannot see it which code it was replaced because the script first decrypt the whole original file and from the decrypted file you can see all information there(it is very fast proces thru the script and you cannot capture it by you fast eyes)
from the decrypted file the script change the mileage and again it will be encrypted, so you cannot see whic part it was change
I attached the Files which it the one is encrpted and the other one was decrypted, those file are equal.
Those cars are not exist in my area and that the reason I donnot write those kind of script
ovi_dk
7th July, 2011, 03:18 PM
Hi guys
Scuseme for disturb,i have a qestion about script files,its posible to make script files to clone programer or the scripts its just for original tools,and wath its the procedure to make a script file,or if its a secret scuseme for the bad question,baytheway here its a crypt file from skoda fabia 2007 diesel 171522 km if sombode needet.
Thank you in advance
hcip
8th July, 2011, 08:05 AM
I think it would be better if we directly read and write the eeprom thru the script
I have no other dump from this car except for the one that sent by drPeter so I am not able to test
just for testing if I am able to write this kind of script
hcip
8th July, 2011, 02:09 PM
Hi guys
baytheway here its a crypt file from skoda fabia 2007 diesel 171522 km if sombode needet.
Thank you in advance
I think the previous attachment is wrong
Here is the correct script, this match with your file
http://i227.photobucket.com/albums/dd129/hcip/fabia.jpg
ovi_dk
8th July, 2011, 03:01 PM
Thank you very much for your quik answer,but how its posible to make the upa to show the tab with name of car and km,i try a loat of time but i can make mi programer to show the window with skoda or vw or other alse auto,im not a soft profesional guy but id like to make mi job easy,and try to fownd news oportuniti in mi job,so if u can explaindme will be great,ofcourse,if its not a big secret,if its,sorry for question,and thanx for answer
Best Regars Hcip
ovi_dk
8th July, 2011, 03:03 PM
Ps,yor script its ok login ok the file its ok 100% thank you
digimile
6th September, 2011, 09:17 AM
hi
why fabia script give me error always bad dump.
Dr.peter please share fabia script
thankx
abadcinho
3rd October, 2011, 04:10 PM
I have a DODGE NITRO 2008 RL76 WITH milleage 113035 If anyone can help me I would like 42000 mill
hcip
4th October, 2011, 09:42 AM
I have a DODGE NITRO 2008 RL76 WITH milleage 113035 If anyone can help me I would like 42000 mill
Try this.............. report the result
abadcinho
5th October, 2011, 01:42 PM
Thanks hcip You are the best. I will post result on next monday because my customer will come back that day
digimile
5th October, 2011, 10:18 PM
hi
drpeter please post skoda fabia script if possible.
Thankx
Min2xx
17th October, 2011, 06:23 AM
I think the previous attachment is wrong
Here is the correct script, this match with your file
http://i227.photobucket.com/albums/dd129/hcip/fabia.jpg
Hi,
thanks for script. I use it for Polo 2007, read Ok, but can't change, when press Write KM, show dump is bad.
Powered by vBulletin® Version 4.2.5 Copyright © 2025 vBulletin Solutions Inc. All rights reserved.