PDA

View Full Version : POLL Tutorial: Change Webradio URL 2.8.0 Firmware!


Hi-Jack
03-01-04, 09:09
Here is the guide ET wrote.
We used it as a test succesfully!
For advanced user's though.
(In combination with knoppix tutorial to extract, compile and use md5sum).
We will write an easier tutorial if you ask for it!!
Take the POLL!

http://www.jacek.it.pl/kiss/kml/

A copy from that site (in case it's removed later on):

Changing KML link
Starting with firmware version 2.8.0 KiSS has chosen to encrypt the KML link, so there is not so easy to change it as before.
Now it is xored with some key. Key changes every 4 bytes (bytes 0-3 are xored with key1, bytes 4-7 with key2 and so on). Keys (hex):
0B 19 39 83 2D B4 37 4B

URL offset in (uncompressed) bin/init for DP-500 (decimal): 1046568
Encoded original webradio link:
63 7F 7F 7B 23 36 36 2B 08 0B 17 08 B0 B3 AD B1 1E 03 1C 1F 8D 9B DD DA 53 52 4F 19 3B 23 3B
Encoded tinystocks link:
63 7F 7F 7B 23 36 36 6D 50 57 40 4A F7 EC E0 E8 5E 03 4E 42 D9 9B DF 9B 5C 44 44 19 3B 23 3B
I find it very funny that you do not have to know the keys to encode your own URL, because xor operation has some nice properties. You can change the link using this program, http://www.mpcclub.com/xor.c , just compile it and execute:
xor /tmp/dp500/bin/init http://tinystocks.com/k/kss.php
But remember, bin/init is compressed now and in layout.txt there is a checksum of romfs.bin. So the complete procedure should be something like the following:
How to change the link

mount romfs.bin in /mnt/dp500:
mount -o loop /cdrom/romfs.bin /mnt/dp500
copy it to read-write filesystem:
cp -a /mnt/dp500 /tmp
uncompress bin/init:
flthdr -Z /tmp/dp500/bin/init
change KML link using any binary editor (I like bvi) or my program
optionally compress bin/init
generate new romfs.bin:
genromfs -d /tmp/dp500 -f /tmp/romfs.bin -a 512 -V 'romfs'
replace original romfs.bin in the iso image with /tmp/romfs.bin
calculate the romfs.bin checksum:
md5sum /tmp/romfs.bin
edit layout.txt from iso image and enter calculated checksum for romfs.bin
You can find md5sum, genromfs and flthdr utilities in our downloads "Tools".

md5sum is not needed for noppix since it already contains that.
The use of genromfs is decribed in our knoppix tutorial.
flthdr needs to be added to knoppix.

Credits to ET.