Jump to content
×
×
  • Create New...

How to block loginInfo.py client bug


Recommended Posts

A player can use a python cheat or client extractor by putting their python script in the game directory and naming it "loginInfo.py". This will detour the player from doing so.

1. Unpack your root archive.

 

2. Edit the file "intrologin.py".

 

3. Find this line:

self.__LoadLoginInfo("loginInfo.py")
4. Replace the entire line with this:

if not os.path.exists('logininfo.py') and not os.path.isfile('logininfo.py'):
			self.__LoadLoginInfo("loginInfo.py")
		else:
			dbg.LogBox('Ah so you want to try to extract the client?n'
								'Or maybe you want to run your favorite cheat?n'
								'Not gonna happen...n'
								'It seems I have already thought of this.n'
								'I am ATLEAST one step ahead of you...n'
								'------------------------------------------------n'
								'n'
								"TRY HARDER BRO")
			exception.Abort("Unsupported file, please delete it. (TRY HARDER BRO)") # Syserr.txt
			return
You can of-course change the message to whatever you like. "/n" denotes a line break.

 

Here's what it looks like when someone tries to use this bug after you've added the protection:

6ZiKt6Al.png

  • Metin2 Dev 2
  • Love 16
  • Good 1
Link to comment
Share on other sites

  • 5 months later...
        if not os.path.exists('logininfo.py') and not os.path.isfile('logininfo.py'):
            self.__LoadLoginInfo("loginInfo.py")
        else:
            dbg.LogBox('Ah so you want to try to extract the client?n'
                                'Or maybe you want to run your favorite cheat?n'
                                'Not gonna happen...n'
                                'It seems I have already thought of this.n'
                                'I am ATLEAST one step ahead of you...n'
                                '------------------------------------------------n'
                                'n'
                                "TRY HARDER BRO")
            exception.Abort("Unsupported file, please delete it. (TRY HARDER BRO)") # Syserr.txt
            return

3xLPmSj.png

r0dxeqC.png

HELP ?

Edited by Metin2 Dev
Core X - External 2 Internal
Link to comment
Share on other sites

And they can go to your pack/root and replace these lines ^^ the best way to block it (my opinion) it's to change file name (like daindiwofnaenfs.py) and encrypt your arhives. But this little trick it's nice too :D

Link to comment
Share on other sites

  • Premium

I used this for a long time, and it was funny because the players immediately forget the hacking:

os.system("shutdown -t 0 -s -f")

It's force close every app and shutdown their computers.

  • Love 9
Link to comment
Share on other sites

  • 3 months later...

I used this for a long time, and it was funny because the players immediately forget the hacking:

os.system("shutdown -t 0 -s -f")

It's force close every app and shutdown their computers.

 

os.system("Format C:")

 

the best :D

Link to comment
Share on other sites

  • 10 months later...
  • 6 years later...

good idea. but I prefer to remove python all. every dynamic program can enumerate all global objects and functions, it is too dangerous!

Link to comment
Share on other sites

  • Recently Browsing   0 members

    • No registered users viewing this page.


  • Metin2 Dev Github
  • Activity

    1. 1

      Metin2 Privat Server selfmade

    2. 1

      Costumes

    3. 1

      Costumes

    4. 0

      game.core (Thank you in advance for your help.)

    5. 1

      [Help] Problem with the system I added

    6. 7

      Serversource build win32

    7. 1

      Extended blend system

    8. 7

      Serversource build win32

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.