News: Make your MMO dream a reality! - RPG Maker XP Online System
Pages: [1]
  Print  
Author Topic: Encrypting RMXP Methods?  (Read 4126 times)
poxy
Transcended Spirit
***

Level: 16
Offline Offline

Gender: Male
Posts: 184



View Profile
« on: July 31, 2010, 02:01:59 AM »

Does anyone know of a reliable way or a program to encrypt projects, that defeats the decrypter programs?

Or a good DLL packer, and if so could you pm it to me
Logged

(click to show/hide)
gameus
Green Gmod Game_Guy AKA G4 AKA hyper-G AKA G-force
Global Moderator
Chaos Ultimate
****

Level: 401
Offline Offline

Gender: Male
Posts: 6458



View Profile
« Reply #1 on: July 31, 2010, 02:15:21 AM »

I've been working on one in c++. I managed to encrypt the data of a png file but I havent found a way to decrypt it for usage in game xD
Logged

Zeriab
Ethereal Devastator
****

Level: 65
Offline Offline

Posts: 351


Mighty Scripter


View Profile WWW
« Reply #2 on: July 31, 2010, 02:19:30 AM »

Code: [Select]
.gsub!(/./m, '')
Logged

Agckuu Coceg
Transcended Spirit
***

Level: 0
Offline Offline

Gender: Male
Posts: 154


Hail to the Gin, baby!!!


View Profile WWW
« Reply #3 on: July 31, 2010, 02:24:57 AM »

    This encryption system belongs to Vgvgf. Copied from hbgames.org.

Quote from: vgvgf
Well, here is the idea of this protection explained:

[list=1]
  • You modify the Magic Key in the RGSS102E.dll or RGSS202E.dll
  • You encrypt your game with the same key (Use DRGSS for this or any other encryptor that allows custom key)
  • You then have to compress/pack/crypt the RGSS dll, otherwise, almost anyone can just jump to where the magickey is located with any hex editor, and obtain it easily.
[size=125]The advantages:[/size]
  • Decryptors can't be used directly to decrypt the .rgssad/.rgss2a if you don't have the custom magic key.
  • RGSSAD Extractor won't work, as it would be replacing the dll which contains the custom magic key.
[size=125]Problems:[/size]
  • The scripts still can be obtained from memory
  • If someone manages to decompress/unpack/decrypt the dll, they would be able to obtain the custom magic key
  • Someone with some debugger experience can obtain the magic key
  • Some compressors/encrypters/packers for dll will leave the rgss dll unusable in some computers
[size=125]Tutorial for doing applying this protection method yourself:[/size]
Modifying RGSS dll
First, you will need an unpacked RGSS dll. Here are both xp and vx rgss dlls unpacked by me:
RGSS102E-uncompressed.rar
RGSS202E.rar

If you want to unpack the dll by yourself, use: Stripper_v213b9.rar

You may try using the default rgss dll, but packing a packed dll isn't a good idea.

Then, you will need a hex editor, I recommend using: http://frhed.sourceforge.net/, but anyone will do.

Open the rgss dll with the hex editor and search for the 0xDEADCAFE key. But warning, the key is stored in little endian order, so you have to search for the inversed bytes FE CA AD DE (In frhed search for: <bh:fe><bh:ca><bh:ad><bh:de>), or if you have downloaded one of the rgss dll I uploaded you can use Go To (Ctrl+G), and for RGSS102E.dll go to 39628 or for RGSS202E.dll go to 43063.


So, now you want for example to use the key 0x12345678, then you have to write it in reversed byte order (Remember, 2 digits = 1 byte), that's 78 56 34 12.


Encrypt the game with your new magic key
Just use DRGSS, and in the magic key field use your custom key (In this example 12345678)


Pack the RGSS dll
Warning, some packers will leave the rgss dll unusable for some pcs. Make sure that it work in differents computers before releasing a project with this protection.

So, you have to find a good packer, compressor, crypter for DLL. Here is a list: http://www.woodmann.com/crackz/Packers.htm
Logged

I'm not retarded, but I'm busy. Sorry for patience.

Agckuu Coceg
Transcended Spirit
***

Level: 0
Offline Offline

Gender: Male
Posts: 154


Hail to the Gin, baby!!!


View Profile WWW
« Reply #4 on: July 31, 2010, 02:25:44 AM »

Oh, double-post...
I just forgot something. Best packer for packing RGSS*dll - UPX. It's free.

http://upx.sourceforge.net/

Usually RGSS*dll packs with ASPack. But it's not freeware.
« Last Edit: July 31, 2010, 02:32:00 AM by Darth Gin-San » Logged

I'm not retarded, but I'm busy. Sorry for patience.

poxy
Transcended Spirit
***

Level: 16
Offline Offline

Gender: Male
Posts: 184



View Profile
« Reply #5 on: July 31, 2010, 02:30:55 AM »

Yea, I've seen that topic. That's why I need a good .DLL packer (in pm, please). Thanks for the help but probably better to put that in spoilers.

I've been working on one in c++. I managed to encrypt the data of a png file but I havent found a way to decrypt it for usage in game xD

I've read your topic on that earlier. All I can say is good luck. It would be a really great tool for teh community. :]
« Last Edit: July 31, 2010, 02:40:22 AM by Darth Darth » Logged

(click to show/hide)
Agckuu Coceg
Transcended Spirit
***

Level: 0
Offline Offline

Gender: Male
Posts: 154


Hail to the Gin, baby!!!


View Profile WWW
« Reply #6 on: July 31, 2010, 02:35:39 AM »

Well, I think I answered this question.
Logged

I'm not retarded, but I'm busy. Sorry for patience.

gameus
Green Gmod Game_Guy AKA G4 AKA hyper-G AKA G-force
Global Moderator
Chaos Ultimate
****

Level: 401
Offline Offline

Gender: Male
Posts: 6458



View Profile
« Reply #7 on: July 31, 2010, 02:54:22 AM »

It can still be unencrypted. Anyone can use vgvgf's rgssad extractor, or anyone can open a hex editor find the magic key and decrypt it. In case you havent seen his latest work, he updated his program for encrypting and decrypting.
Logged

Agckuu Coceg
Transcended Spirit
***

Level: 0
Offline Offline

Gender: Male
Posts: 154


Hail to the Gin, baby!!!


View Profile WWW
« Reply #8 on: July 31, 2010, 08:21:52 AM »

It can still be unencrypted. Anyone can use vgvgf's rgssad extractor, or anyone can open a hex editor find the magic key and decrypt it. In case you havent seen his latest work, he updated his program for encrypting and decrypting.


Yes, I know that DRGSS can also decrypting projects, but this is only if you know magic key of this project.

But it all depends primarily on the packer. Find magickey in packed*dll is not a very doable task. Besides, it stop at least 50-60% of "hackers", who even really a hex-editor can not understand. ^_^
Logged

I'm not retarded, but I'm busy. Sorry for patience.

gameus
Green Gmod Game_Guy AKA G4 AKA hyper-G AKA G-force
Global Moderator
Chaos Ultimate
****

Level: 401
Offline Offline

Gender: Male
Posts: 6458



View Profile
« Reply #9 on: July 31, 2010, 03:21:44 PM »

There are dll unpackers as well. Its really not that hard to find one. I'm just saying its still pretty difficult to protect your project.
Logged

WhiteRose
Trying to code in Ruby
Moderator
Lexima Warrior
***

Level: 127
Offline Offline

Gender: Female
Posts: 2348


<3


View Profile
« Reply #10 on: July 31, 2010, 05:45:14 PM »

I don't think there's any sure-fire way to completely protect your project from everyone. Even most commercial games can be (and in many cases, have been) hacked and decrypted. You can, of course, legally protect your materials by copyrighting them.
Logged

poxy
Transcended Spirit
***

Level: 16
Offline Offline

Gender: Male
Posts: 184



View Profile
« Reply #11 on: July 31, 2010, 07:40:44 PM »

Besides the dll unpackers, packing the dll can cause issues with the way the game runs.

I don't think there's any sure-fire way to completely protect your project from everyone. Even most commercial games can be (and in many cases, have been) hacked and decrypted. You can, of course, legally protect your materials by copyrighting them.

That's true, but at least I can try to make it harder for most people.

Just gonna have to hold out for G_G's encrypter...
« Last Edit: July 31, 2010, 07:47:57 PM by Darth Darth » Logged

(click to show/hide)
gameus
Green Gmod Game_Guy AKA G4 AKA hyper-G AKA G-force
Global Moderator
Chaos Ultimate
****

Level: 401
Offline Offline

Gender: Male
Posts: 6458



View Profile
« Reply #12 on: July 31, 2010, 08:07:24 PM »

Well I did have this data encrypter. Dont think I have it anymore. People could decrypt the game, but they wouldnt have any of the data but someone with scripting knowledge could still get the data.

That way was more of a detour then getting everything right away, that, and most people who decrypt games are just trying to leach stuff so they most likely wouldnt know how to get it.
Logged

vgvgf
Guest
« Reply #13 on: August 13, 2010, 07:48:45 PM »

It can still be unencrypted. Anyone can use vgvgf's rgssad extractor, or anyone can open a hex editor find the magic key and decrypt it. In case you havent seen his latest work, he updated his program for encrypting and decrypting.
If using the method Agckuu Coceg  mentioned, my rgssad extractor won't work, in case the RGSS dll is well packed after changing the magic key. Using a normal dll with the injected code for loading the "RGSSAD Extractor.rb" for getting the files, won't work because it will have a different magic key and will fail loading the RGSSAD. And, you need an unpacked dll for injecting the code for my RGSSAD Extractor. So the strenght of that method relies on how well was the dll packed (Still, skillful people may get the magic key without even unpacking the dll).
Logged
Pages: [1]
  Print  
 
Jump to:  


*
*
Shoutbox
Latest Shouts
View All
Today at 12:05:37 AM KK20: I can only find things on how to disable it system-wide. 
November 26, 2014, 10:55:00 PM Wecoc: Is possible to disable ClearType on the game's font using Win32API?
November 26, 2014, 09:10:22 PM Blizzard: It takes about 2-3 languages and then every other language becomes "yet another language". That's obviously a good thing.
November 26, 2014, 06:38:10 PM ForeverZer0: Once you learn one language, the rest can be learned much easier, most of them are fundamentally the same. They each have their differences of course, but the basic knowledge of how programming works is pretty much universal, and the knowledge can be applied to any language.
November 26, 2014, 06:20:58 PM Kiwa: Damn! im too lazy to study all these programming languages. I envy you guys who have the determination to keep studying lol. I've really enjoyed Ruby sofar but other than web/rpg maker is ruby even useful? i saw online that its "in demand" but are there exe compilers out there? i took a look at C# code online. it looks familiar but not. get a referb @Ranquil. pretty cheap
November 26, 2014, 01:00:14 PM Ranquil: @Kiwa: Because my computer is old and shitty and its processor is about to die. :D As Xuroth already said, there's a free version of Unity as well. You can use C# or Javascript with it. And yes, C# is easier. It's a pretty easy language now that I've had to study it at school a bit. :D
November 26, 2014, 12:57:19 PM Kiwa: on a funny note.. my buddy came out here to japan a few months ago. he picked up a 3DS and went back to the states. he got the new smash bros for the DS and its regon locked...lol..sucks to be him. lol
November 26, 2014, 12:55:25 PM Kiwa: Thanks @xuroth. ill look into it. I'm still learning Ruby. i really like it but I'm not sure if its so practical. im also taking a look at the java course on Codecademy. but i only got about 15% thru it. cuz i prioritized RUBY and Rails.
November 26, 2014, 11:42:23 AM Blizzard: @mrbane: Please don't shoutvertise topics. Happy New topics appear in the "New posts since last visit" and people will read your topic if they are interested.
November 26, 2014, 09:40:13 AM Xuroth: @Kiwa Unity has a free version as well as the pro. And you can use Javascript and C# (a slightly easier language, I've been told). 

View All


HB Games RpgMaker.org