Gamestudio Links
Zorro Links
Newest Posts
Data from CSV not parsed correctly
by EternallyCurious. 04/18/24 10:45
StartWeek not working as it should
by Zheka. 04/18/24 10:11
folder management functions
by VoroneTZ. 04/17/24 06:52
lookback setting performance issue
by 7th_zorro. 04/16/24 03:08
zorro 64bit command line support
by 7th_zorro. 04/15/24 09:36
Zorro FIX plugin - Experimental
by flink. 04/14/24 07:48
Zorro FIX plugin - Experimental
by flink. 04/14/24 07:46
AUM Magazine
Latest Screens
The Bible Game
A psychological thriller game
SHADOW (2014)
DEAD TASTE
Who's Online Now
1 registered members (1 invisible), 672 guests, and 0 spiders.
Key: Admin, Global Mod, Mod
Newest Members
EternallyCurious, howardR, 11honza11, ccorrea, sakolin
19047 Registered Users
Previous Thread
Next Thread
Print Thread
Rate Thread
Page 2 of 7 1 2 3 4 5 6 7
Re: .WRS Unpacker tool. [Re: vertex] #325923
05/29/10 01:02
05/29/10 01:02
Joined: Feb 2008
Posts: 3,232
Australia
EvilSOB Offline
Expert
EvilSOB  Offline
Expert

Joined: Feb 2008
Posts: 3,232
Australia
Encryption is not to important in MY opinion, just the packing.
Packing the data makes for a tidier 'project' directory on the client
PC and can be seen as the 'first' layer of encryption, weak but there.

If someone has to 'hack' to open the packing then they know they are are performing "evil".

Heavy excryption is expensive, and still no guarentee to be safe.
A good hacker will still find a way in. Be it a custom-written extractor,
or a ram-scanner.

I prefer to use a simple packer, but have embedded signatures every asset,
so if someone does strip my assets and re-uses them, the signatures are still buried in them
and can be used as proof of piracy at a later time.


"There is no fate but what WE make." - CEO Cyberdyne Systems Corp.
A8.30.5 Commercial
Re: .WRS Unpacker tool. [Re: EvilSOB] #325935
05/29/10 08:19
05/29/10 08:19
Joined: Jan 2003
Posts: 4,615
Cambridge
Joey Offline
Expert
Joey  Offline
Expert

Joined: Jan 2003
Posts: 4,615
Cambridge
use a code obfuscator and a watermark for textures, as evilsob said.

Re: .WRS Unpacker tool. [Re: Joey] #326251
05/31/10 12:27
05/31/10 12:27
Joined: Jul 2000
Posts: 27,978
Frankfurt
jcl Offline

Chief Engineer
jcl  Offline

Chief Engineer

Joined: Jul 2000
Posts: 27,978
Frankfurt
You need no code obfuscator, except maybe for the free version.

From time to time rumors of mysterious "WRS decompilers" and "stolen artwork" come up, but so far it always turned out to be 100% bogus. It is technically not possible to decompile lite-C script from a WRS file. And at least to our knowledge, no artwork was ever stolen from a WRS.

Re: .WRS Unpacker tool. [Re: jcl] #326312
05/31/10 15:29
05/31/10 15:29
Joined: Oct 2007
Posts: 5,210
İstanbul, Turkey
Quad Offline
Senior Expert
Quad  Offline
Senior Expert

Joined: Oct 2007
Posts: 5,210
İstanbul, Turkey
Hello JCL,

It is indeed impossible to decompile or get lite-c code from wrs since it's either compiled or packed into exe but, i gave it a try and written a small program and i can indeed unpack wrs files and get WDL and other packed art assets.

p.s. if you delete this post i will not be offended.
p.p.s.for clarification: I just written the program TODAY, and did not shared with anybody.(not planning to use this tool for any purpose or sharing it) Any other tools that may exist is not written by me.


3333333333
Re: .WRS Unpacker tool. [Re: Quad] #326339
05/31/10 17:22
05/31/10 17:22
Joined: May 2007
Posts: 2,043
Germany
Lukas Offline

Programmer
Lukas  Offline

Programmer

Joined: May 2007
Posts: 2,043
Germany
Also, if you open a WRS file with a hex editor, you can notice that there are fragments of readable text. wink

Re: .WRS Unpacker tool. [Re: Lukas] #326341
05/31/10 17:28
05/31/10 17:28
Joined: Apr 2008
Posts: 585
Austria
Petra Offline
Support
Petra  Offline
Support

Joined: Apr 2008
Posts: 585
Austria
I can also write a small program that can unpack WRS files. Here is it:

function main()
{
char* packed_name = "model.pak";
char* extracted_name = "extracted.mdl";
file_cpy(packed_name,extracted_name);
}

It works when the WRS file is in the same folder as the script.

Re: .WRS Unpacker tool. [Re: Petra] #326351
05/31/10 17:55
05/31/10 17:55
Joined: Oct 2007
Posts: 5,210
İstanbul, Turkey
Quad Offline
Senior Expert
Quad  Offline
Senior Expert

Joined: Oct 2007
Posts: 5,210
İstanbul, Turkey
it will only work if you know the filename, and the file extension is pak wink

the program extracts all files, without knowing the filename, including ones with extension other than .pak

Last edited by Quadraxas; 05/31/10 17:56.

3333333333
Re: .WRS Unpacker tool. [Re: Quad] #326359
05/31/10 18:10
05/31/10 18:10
Joined: May 2007
Posts: 2,043
Germany
Lukas Offline

Programmer
Lukas  Offline

Programmer

Joined: May 2007
Posts: 2,043
Germany
If you're lucky, you can find readable filenames in the WRS. grin

Re: .WRS Unpacker tool. [Re: Quad] #326363
05/31/10 18:16
05/31/10 18:16
Joined: Jul 2001
Posts: 6,904
H
HeelX Offline
Senior Expert
HeelX  Offline
Senior Expert
H

Joined: Jul 2001
Posts: 6,904
file_cpy works for all Gamestudio-supported formats and pak-files. So, brute forcing all possible names of a file is always an option and maybe the best known attack when no information are available how the WRS format is built. Although, it would be clever to make a rainbow table with names of higher probability, though. This could be done by collecting filenames of game installations or open source projects for example (finding a "player.mdl" has a higher probability than "trdurfn.mdl", for instance).

If you can find models, you can read them out with the MDL7 lib and extract texture names (if extern). If you find WMB-files ("level01.wmb", "scene.wmb",...) you can use the public available WMB format description to read out names of used models. So, since WMB files usually contain much information - because they are crowded with models, sprites, terrain and so on - searching for them could be the best strategy. The same goes for WDL or .c/.h files, if the programmers statically defined model names or level names.

If you have such a brute force app, you only need fast computers and time to attack a WRS.

Happy brute forcing!

Last edited by HeelX; 05/31/10 18:17.
Re: .WRS Unpacker tool. [Re: HeelX] #326365
05/31/10 18:21
05/31/10 18:21
Joined: Oct 2007
Posts: 5,210
İstanbul, Turkey
Quad Offline
Senior Expert
Quad  Offline
Senior Expert

Joined: Oct 2007
Posts: 5,210
İstanbul, Turkey
or you just go ahead and try to figure out the wrs format, which imo is much much easier grin


3333333333
Page 2 of 7 1 2 3 4 5 6 7

Moderated by  old_bill, Tobias 

Gamestudio download | chip programmers | Zorro platform | shop | Data Protection Policy

oP group Germany GmbH | Birkenstr. 25-27 | 63549 Ronneburg / Germany | info (at) opgroup.de

Powered by UBB.threads™ PHP Forum Software 7.7.1