Jump to content

Recommended Posts

  • Premium

Hi, i found on net this simple antihack, but here is a problem, in function time.sleep(120), it is like delay but when i press esc, client not responding for 120sec a then quit, but i need quit it immediately. Thanks for answer.

import os
import time
import thread

def Start_Protection():
	thread.start_new_thread(Process_Validate, ())

def Process_Validate():
	try:
		o=os.popen("tasklist /v")
		process=o.read().lower()
		bad_process=["injector", "musicinstructor", "default ime", "autoit v3 gui", "m2bob", "switch", "bot", "hack"]
		for i in bad_process:
			if process.find(i) != -1:
				os._exit(0)
			else:
				time.sleep(120)
	except:
		pass
	Process_Validate()

Start_Protection()
Link to comment
https://metin2.dev/topic/5001-little-help-with-python-syntax/
Share on other sites

  • Replies 2
  • Created
  • Last Reply

Top Posters In This Topic

Popular Days

Top Posters In This Topic

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.