Jump to content

How To Protect your Client against Python Injectors


Recommended Posts

Tools needed: http://mh-nexus.de/en/hxd/
 
I have seen that many people are using the python file extractor to steal from other people their work.I don't think it's nice so I found one fix.
 
The main function that executes the python injector is PyRun_SimpleFile, PyRun_SimpleString.

 

We open at HxD the python22.dll and we change the 2 functions that I said.

 

If you want to protect the python22.dll from read you can try to pack it with mpress.(Untested but I think it will work.)

 

After doing that, you can add also a md5 check to the python22.dll because someone maybe try to change the python22.dll with another one where the functions are not modified.

 

Regards.

  • Metin2 Dev 1
  • Good 1
  • Love 15
  • Former Staff

I think the new bin you selfcompile (or the 40250 test client) is safe from py injection. I tried to inject Ingame Map Object editor to it and it didnt work. The client crashed imidietly

 

I think the new bin you selfcompile (or the 40250 test client) is safe from py injection. I tried to inject Ingame Map Object editor to it and it didnt work. The client crashed imidietly

 

Yea same here.

 

  • 1 month later...
  • 3 months later...
  • Premium

Hi i look on your topic with protection python22.dll againts injections but i dont know which program do you mean this md5 check i find on internet someone like md5 check but it is simple program for showing just same the pograms and i need somthing implement to the exe file. Thanks for your answer. 

  • 7 months later...
  • Honorable Member

No, you have to rename or fill those strings with 0x00's.

So PyRun_SimpleString in hex:

50 79 52 75 6E 5F 53 69 6D 70 6C 65 53 74 72 69 6E 67

Replace with this:

00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00

And do same with PyRun_SimpleFile too.

  • Metin2 Dev 1
  • Love 1

Don't use any images from : imgur, turkmmop, freakgamers, inforge, hizliresim... Or your content will be deleted without notice...
Use : https://metin2.download/media/add/

Please use https://metin2.download/ when uploading files smaller than 100MB, otherwise the approval will take longer due to manual upload.

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
×
×
  • Create New...

Important Information

Terms of Use / Privacy Policy / Guidelines / We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.