Jump to content
Denis

[HowTo]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.

  • Love 13

Share this post


Link to post

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

Share this post


Link to post

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.

Share this post


Link to post

 

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.

 

Share this post


Link to post

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. 

Share this post


Link to post

Do it with python

import hashlib
print hashlib.md5("filename.exe").hexdigest()

Share this post


Link to post

so do i just add the code  PyRun_SimpleFile, PyRun_SimpleString. inside my python22.dll?

 

 

Share this post


Link to post

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.

  • Love 1

Share this post


Link to post

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    No registered users viewing this page.

×
×
  • 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.