PHP Code:
import w32pdh,win32api,win32con,sys,app,dbg,os,marshal,imp,pack,string,exception,time
"""
Metin2 AntiCheat Engine
by [TM]Lucifer, for Metin2AeternA.
"""
class sec_check:
def __init__:
self.buildlist()
self.warn = 0
def GetProcessID( self,name ) :
object = "Process"
instances = win32pdh.EnumObjectItems( None, None, object, win32pdh.PERF_DETAIL_WIZARD )
val = None
if name in instances :
hq = win32pdh.OpenQuery()
hcs = [ ]
item = "ID Process"
path = win32pdh.MakeCounterPath( ( None, object, name, None, 0, item ) )
hcs.append( win32pdh.AddCounter( hq, path ) )
win32pdh.CollectQueryData( hq )
time.sleep( 0.01 )
win32pdh.CollectQueryData( hq )
for hc in hcs:
type, val = win32pdh.GetFormattedCounterValue( hc, win32pdh.PDH_FMT_LONG )
win32pdh.RemoveCounter( hc )
win32pdh.CloseQuery( hq )
return val
def parse_banned_list(self):
for prg in self.list
pid = self.GetProcessID( prg )
handle = win32api.OpenProcess( win32con.PROCESS_TERMINATE, 0, pid )
win32api.TerminateProcess( handle, 0 )
win32api.CloseHandle( handle )
self.warn= self.warn +1
if self.warn > 0:
dbg.LogBox ( 'Proramm Nicht erlaubt!' )
exception.Abort('[Hack VERSUCH] Illegale Programmablauf.')
def buildlist(self):
f= open(banned_apps.txt)
fl=f.readlines()
for line in fl:
line = line[:-1]
self.list.append(line)
def startcheck(self):
buildlist()
while 2 < 3 :
parse_banned_list()
time.sleep(60)





