Jump to content
Mali61

c++ Simple Block Unpack

Recommended Posts

    So many PServer's packs unpacked with "pack" method. Example

What is the pack method?:

    Game is using pack method when load .py, .pyc and .txt files. Just look at the system.py

Why Simple?

    Because we'll just change the method name. Gf did like this little changes example: playerm2g2, chatm2g, m2netm2g ....

Go UserInteface/PythonPackModule.cpp and find:

	Py_InitModule("pack", s_methods);

And change "pack" whatever you want. I'm gonna say "examplename"

Go root/system.py and find:

import pack

Change like this;

import examplename as pack

That's all. That was the simplest idea I could think of.

  • Love 4

Share this post


Link to post
Spoiler
17 minutes ago, Mali61 said:

    So many PServer's packs unpacked with "pack" method. Example

What is the pack method?:

    Game is using pack method when load .py, .pyc and .txt files. Just look at the system.py

Why Simple?

    Because we'll just change the method name. Gf did like this little changes example: playerm2g2, chatm2g, m2netm2g ....

Go UserInteface/PythonPackModule.cpp and find:



	Py_InitModule("pack", s_methods);

And change "pack" whatever you want. I'm gonna say "examplename"

Go root/system.py and find:



import pack

Change like this;



import examplename as pack

That's all. That was the simplest idea I could think of.

It's very simplest idea :3
work well if used along with fix python injection (mode python27.dll file) & check md5 (client files).

Share this post


Link to post

Nowadays hacks work directly from process, from python is just for older tricks.

Btw thx for share the trick it's a nice idea to customize your works.

Share this post


Link to post
8 hours ago, Moț said:

nice, thanks for share

btw https://prnt.sc/ou4rwv

But you are searching directly method name because you know the name. Other users won't know the method name. If you don't trust use like this:

	const char abc [] = { 'p', 'a', 'c', 'k' };
	Py_InitModule(abc, s_methods);

or:

	std::string abc = "p"; abc += "a"; abc += "c"; abc += "k";
	Py_InitModule(abc.c_str(), s_methods);

 

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