Raised This Month: $51 Target: $400
 12% 

Encrypt resources


Post New Thread Reply   
 
Thread Tools Display Modes
fysiks
Veteran Member
Join Date: Sep 2007
Location: Flatland, USA
Old 03-22-2016 , 23:25   Re: Encrypt resources
Reply With Quote #11

Quote:
Originally Posted by Depresie View Post
Yes, it is possible, i just found a way to encrypt them in such way to work only on one game server..
I don't believe you. Please explain what you think will work.
__________________
fysiks is offline
Kowalsky
Senior Member
Join Date: Mar 2015
Location: Poland
Old 03-23-2016 , 05:31   Re: Encrypt resources
Reply With Quote #12

Depresie, I couldn't agree more. He is a complete scumbag. He has his own website where he is selling AMXX plugins without providing the source code and binding his plugins by IP. Later on when the plugin is sold, he doesn't support the users. (I am not one of the users but I know many client that suffered from him). But what's the point of bying pure amxx? Ehh, I don't understand it. If you really found out the way to encrypt models, don't tell it here. He will use it to his advantage to sell them on his website... Same as those amxx plugins. What a scumbag... Besides I am not sure about the quality of the code he is offering, most likely it is trashy..

Last edited by Kowalsky; 03-23-2016 at 05:33.
Kowalsky is offline
ddhoward
Veteran Member
Join Date: May 2012
Location: California
Old 03-23-2016 , 05:44   Re: Encrypt resources
Reply With Quote #13

Quote:
Originally Posted by Depresie View Post
encrypt
If you are "encrypting" files which the client must use, then the client must be provided with a way to decrypt said files in order to use them.

Any encryption done would either
  1. make the files unusable
  2. isn't actually "encryption"
  3. require that the decryption key would be freely passed around to every client who joins the server.
    • Further, the game client would need to support the decryption.

I'm going to guess that we're dealing with option B here.
__________________

Last edited by ddhoward; 03-23-2016 at 05:47.
ddhoward is offline
klippy
AlliedModders Donor
Join Date: May 2013
Location: Serbia
Old 03-23-2016 , 06:19   Re: Encrypt resources
Reply With Quote #14

It isn't really encryption, but I saw something strange a few years ago. Ovidius sent me some zombie server where I joined and everything looked okay. But, someone reported to him that he couldn't join a server that uses these same resources that zombie server did (they would get a client crash or something, I don't remember, it just wasn't working). When I looked at the model file with a hex editor, it contained some ASCII art in it separated by a lot of whitespaces from other data.
How and why does that work? I have no idea, but it looks like "protecting" models to be used only on one server is really possible. HL/GoldSrc engine is strange indeed.
klippy is offline
Depresie
Veteran Member
Join Date: Nov 2013
Old 03-23-2016 , 06:46   Re: Encrypt resources
Reply With Quote #15

I won't explain here how it works, since we have enough restrictions and bullshit on the internet...

My way is different from the one Klippy is talking about, i doesn't crash clients or servers that are using the exact files, here is what it actually does

Makes the .mdl file unable to be decompiled/edited/opened by such programs as half life model viewer
If the file will be used on another server, it won't be rendered, it would be a blank model

It requires Amxmodx and model editing

I'd like to share this "discovery" only for knowledge, but i am afraid i can't since there are too many morons on the internet who are trying to comercialize anything that they can

@ddhoward

a and the first half of c, also maybe b
__________________

Last edited by Depresie; 03-23-2016 at 06:56.
Depresie is offline
gabuch2
AlliedModders Donor
Join Date: Mar 2011
Location: Chile
Old 03-23-2016 , 08:16   Re: Encrypt resources
Reply With Quote #16

Quote:
Originally Posted by Depresie View Post
I won't explain here how it works, since we have enough restrictions and bullshit on the internet...

My way is different from the one Klippy is talking about, i doesn't crash clients or servers that are using the exact files, here is what it actually does

Makes the .mdl file unable to be decompiled/edited/opened by such programs as half life model viewer
If the file will be used on another server, it won't be rendered, it would be a blank model

It requires Amxmodx and model editing

I'd like to share this "discovery" only for knowledge, but i am afraid i can't since there are too many morons on the internet who are trying to comercialize anything that they can

@ddhoward

a and the first half of c, also maybe b
How many servers are using this method to protect their content? IMHO this knowledge can be used to adapt the current decompilers to bypass all the restrictions.
__________________
gabuch2 is offline
Depresie
Veteran Member
Join Date: Nov 2013
Old 03-23-2016 , 10:02   Re: Encrypt resources
Reply With Quote #17

None are using this method to protect their content, since im the only one who knows it...
But there are other two, but not fully functional

1. Forbids decompiling all the model ( the model can be used on other servers )

2. Forbids opening the model in any .mdl viewer ( the model can be used on other servers )

But my method, i never seen it anywhere before... it forbids both opening/editing the model and using it on other servers that don't know the "key" to make it work ( the key is based strictly on server side plugin )
__________________

Last edited by Depresie; 03-23-2016 at 10:03.
Depresie is offline
OvidiuS
Chillaxin'
Join Date: Dec 2009
Location: Serbia
Old 03-23-2016 , 15:24   Re: Encrypt resources
Reply With Quote #18

Quote:
Originally Posted by KliPPy View Post
It isn't really encryption, but I saw something strange a few years ago. Ovidius sent me some zombie server where I joined and everything looked okay. But, someone reported to him that he couldn't join a server that uses these same resources that zombie server did (they would get a client crash or something, I don't remember, it just wasn't working). When I looked at the model file with a hex editor, it contained some ASCII art in it separated by a lot of whitespaces from other data.
How and why does that work? I have no idea, but it looks like "protecting" models to be used only on one server is really possible. HL/GoldSrc engine is strange indeed.
Since the thread is revived, here is the model from that server: https://mega.nz/#!T4AEUSyL!SEA3KIub-...hbZ0lWujhiv-yg
Maybe it will help someone on creating their own "protection".
OvidiuS is offline
Send a message via Skype™ to OvidiuS
Arkshine
AMX Mod X Plugin Approver
Join Date: Oct 2005
Old 03-23-2016 , 16:32   Re: Encrypt resources
Reply With Quote #19

HLMV can open it. It doesn't seem protected. But well, I would guess you would need to just alter some offset in the table to skip textures location, or something similar which can be easily fixed with a plugin.
__________________
Arkshine is offline
Depresie
Veteran Member
Join Date: Nov 2013
Old 03-23-2016 , 21:11   Re: Encrypt resources
Reply With Quote #20

@Ovidius
Interesting, i never seen that before, but it's useless, it can be easily fixed

I didnt try to decompile it with model viewer, but even if the texture part would keep you from decompiling it, you can just export the textures, and then decompile the model bypassing textures

Also i think it would work even like that on a server.. didn't test tho..
__________________

Last edited by Depresie; 03-23-2016 at 21:57.
Depresie is offline
Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 12:00.


Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Theme made by Freecode