Hacking Challenge - help IV get its games out faster!

Anything and Everything about Uplink

Moderators: bert_the_turtle, jelco, Chris, Icepick, Rkiver

User avatar
Tom
Introversion Staff
Introversion Staff
Posts: 95
Joined: Wed May 30, 2001 1:30 am
Location: London / Heidelberg
Contact:

Hacking Challenge - help IV get its games out faster!

Postby Tom » Wed Aug 02, 2006 12:13 am

Hey guys, we're trying to update our webstore with an electronic shipping system to improve shipping times in the run up to the DEFCON launch.

We're using a linux client for Royal mail's smartstamp system, and wondered if we could call upon some forum skills to help extract some files from an undertermined archive file.

The file is as follows:

https://printstamp.royalmail.com/downlo ... _en.12.bin

it contains a number of files call OLP****.dat as can be seen. These can be found in the DATA directory of the smartstamp program (www.royalmail.com) if you want to see what they look like un-encoded... Question is can anyone help us extract the files?

Thanks a million!

Tom.

ps. a special version of DEFCON for the first person to do it!
UplinkHacker
level1
level1
Posts: 14
Joined: Fri Jul 21, 2006 7:53 pm

Postby UplinkHacker » Wed Aug 02, 2006 2:38 am

I have a few questions about this file.

1. How am i suppose to extract the file? I've already tried every program that can extract .bin files.

2. does it have to be done in a linux OS or can it be done in Windows?

Sry, for asking is just that i don't have a clue on what's going on. but i am good with computers thou. :p
User avatar
frenchfrog
level5
level5
Posts: 2572
Joined: Sun Sep 22, 2002 7:11 pm
Location: Quebec

Postby frenchfrog » Wed Aug 02, 2006 4:08 am

Good news, I think I got them ;)

Here's the first file: (OLP_ENG_FORMAT.dat)

original:

Code: Select all

SmartStamp   FormatList   8   2004-05-15T00:00:00+02:00   -4684
395   1   100   610   70   460   1   5
431   2   100   610   70   460   1   460
392   3   140   220   90   110   1   5
400   4   140   235   90   120   1   1
458   5   140   600   90   600   1   600
230   6   100   1500   70   460   1   460


new one:

Code: Select all

SmartStamp   FormatList   12   2006-04-03T00:00:01+01:00   -4684
395   1   100   610   70   460   1   5
431   2   100   610   70   460   1   460
392   3   140   220   90   110   1   5
400   4   140   235   90   120   1   1
458   5   140   600   90   600   1   600
230   6   100   1500   70   460   1   460



EDIT: IV didn't wanted to pay for the update :P
Last edited by frenchfrog on Wed Aug 02, 2006 4:12 am, edited 1 time in total.
User avatar
NeoThermic
Introversion Staff
Introversion Staff
Posts: 6254
Joined: Sat Mar 02, 2002 10:55 am
Location: ::1
Contact:

Postby NeoThermic » Wed Aug 02, 2006 4:10 am

frenchfrog wrote:Good news, I think I got them ;)

Here's the first file: (OLP_ENG_FORMAT.dat)

original:

Code: Select all

SmartStamp   FormatList   8   2004-05-15T00:00:00+02:00   -4684
395   1   100   610   70   460   1   5
431   2   100   610   70   460   1   460
392   3   140   220   90   110   1   5
400   4   140   235   90   120   1   1
458   5   140   600   90   600   1   600
230   6   100   1500   70   460   1   460


new one:

Code: Select all

SmartStamp   FormatList   12   2006-04-03T00:00:01+01:00   -4684
395   1   100   610   70   460   1   5
431   2   100   610   70   460   1   460
392   3   140   220   90   110   1   5
400   4   140   235   90   120   1   1
458   5   140   600   90   600   1   600
230   6   100   1500   70   460   1   460



Bah, what was it encoded with? I first thought that the file might compirse of two jpeg images, but that was wrong. I then realised that there's some form of encoding going on, but I got stuck and tired.

NeoThermic
User avatar
frenchfrog
level5
level5
Posts: 2572
Joined: Sun Sep 22, 2002 7:11 pm
Location: Quebec

Postby frenchfrog » Wed Aug 02, 2006 4:48 am

NeoThermic wrote:Bah, what was it encoded with?


I fact I still don't know, probably some kind of basic zip compression.

If I got some times in the coming days I will post how I've done it.
User avatar
Tom
Introversion Staff
Introversion Staff
Posts: 95
Joined: Wed May 30, 2001 1:30 am
Location: London / Heidelberg
Contact:

Postby Tom » Wed Aug 02, 2006 9:21 am

Good work guys!

so it's a free update for the smarstamp program :-)

it's a crappy windows only program, and we're trying to get it to work for Linux so we can automate the generation of stamps for orders. That makes processing orders much faster for those who want physical units.

Frenchfrog, it seems that you've got something in the right direction, but I wondered if you could post a method please. We need to write a program that will download this file when a new update comes out and then do some jiggery pokery on the OLP data files included... Once we've solved the unpacking part of the problem, we've got to figure out how the OLP files relate to each other. John and I have had a crack, but we're pretty stuck.

Thanks!

Tom.
User avatar
Tom
Introversion Staff
Introversion Staff
Posts: 95
Joined: Wed May 30, 2001 1:30 am
Location: London / Heidelberg
Contact:

Postby Tom » Wed Aug 02, 2006 9:24 am

Oh one other thing Frenchfrog, where did you get the original and the new data files from?

Seems that the original data file indicates out of date postage figures, since it relates to pricelist 8.

Oh yes BTW, these OLP files somehow work together to form a postage table where you can select which postage service you want from a product list. One should then be able to infer the service indicator and the price of the relevent stamp...

Finally, Royal mail only support a windows version of the software. We were lucky enough to pickup a linux command line client from someone on the net, but they don't understand how this bin file is extracted either :-( Naturally Royal Mail don't want anything to do with us and our automated system.... they'd much rather that we spend 5 minutes selecting and printing out a stamp for each unit shipped.

and you wonder why our games are always late ? ;-)

Tom.
User avatar
frenchfrog
level5
level5
Posts: 2572
Joined: Sun Sep 22, 2002 7:11 pm
Location: Quebec

Postby frenchfrog » Wed Aug 02, 2006 2:48 pm

I didn't wanted to say exactly how I did it so people working on the problem did get spoiled.

oh, Royal mail is bad, their web site don't work on Firefox and their install crash on my box ....

The original file come from smartstamp_ver2_setup.exe (a trial), which I can't seem to be able to find on their ................ web site. My history bring up this page: http://www.royalmail.com/portal/rm/cont ... tid=188760
that give the possibility to download smartstampsetup3.0.0.8XP.zip . (start page for the trial http://www.royalmail.com/portal/rm/jump ... aId=600023)

The new file come from https://printstamp.royalmail.com/downlo ... _en.12.bin

Now the fun part, spoilers!!!! I've done a program in C that call a function in SZIPPER.DLL to Decrunch the files one by one.
User avatar
frenchfrog
level5
level5
Posts: 2572
Joined: Sun Sep 22, 2002 7:11 pm
Location: Quebec

Postby frenchfrog » Wed Aug 02, 2006 7:30 pm

Tom wrote:Once we've solved the unpacking part of the problem, we've got to figure out how the OLP files relate to each other. John and I have had a crack, but we're pretty stuck.


I given I quick look at the OLP files and I think I understand how they work, it's a databse with IDs related to each others. It should be easy to get the price to pretty much anything (in function of the type of expendition, country, weight and extras).
User avatar
ScareyedHawk
level5
level5
Posts: 1154
Joined: Wed Sep 17, 2003 10:14 pm
Location: Västerås, Sweden
Contact:

Postby ScareyedHawk » Wed Aug 02, 2006 8:20 pm

Oh for fucks sake, I didn't even get the chance to FIND this topic before it was solved.
TimTim
level4
level4
Posts: 772
Joined: Wed Apr 17, 2002 8:42 pm

Postby TimTim » Fri Aug 11, 2006 8:12 pm

ScareyedHawk wrote:Oh for fucks sake, I didn't even get the chance to FIND this topic before it was solved.


I seriously doubt you would of managed to crack it.
User avatar
Babylon5
level5
level5
Posts: 1873
Joined: Sat Jan 08, 2005 10:30 pm
Location: Stevenston, Ayrshire, Scotland
Contact:

Postby Babylon5 » Fri Aug 11, 2006 10:43 pm

You sure? SYH is a genius.
Image

No, I have NOT fixed my speakers.
User avatar
Leonaken
level3
level3
Posts: 285
Joined: Thu Mar 23, 2006 7:36 am
Location: Palo Alto, CA, USA

Postby Leonaken » Wed Aug 30, 2006 1:25 am

Tom, did you ever consider installing WINE binaries?
Wouldn't that let SmartStamp work under Linux?

Return to “General”

Who is online

Users browsing this forum: No registered users and 16 guests