Here are with Md5-Check ( non tested ^^ )
PHP Code:
import md5
import string
import sha
Under the Imports
PHP Code:
def hexstr(s):
h = string.hexdigits
r = ''
for c in s:
i = ord(c)
r = ((r + h[((i >> 4) & 15)]) + h[(i & 15)])
return r
def GetMD5(filename):
f = open(filename)
data = f.read()
f.close()
m = md5.new()
m.update(data)
return hexstr(m.digest())
instead of
PHP Code:
sizefile = os.path.getsize("MSS32.dll")
if(str(sizefile)=="979968"):
RunApp()
else:
dbg.LogBox("Error!MSS32 changed.")
We are use this
PHP Code:
Md5Hash = GetMD5('MSS32.dll')
if((Md5Hash == '02466c5102c7297f86a35b80d42cd982'):
RunApp()
else:
dbg.LogBox("Fehler beim Laden der Client Datein !\r Bitte Patche den Client noch einmal durch ! MfG Paincake")
Not Forget to Change the Md5-Hash ^^