Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import os
- import time
- import thread
- def Start_Protection():
- thread.start_new_thread(Check_Banned_Extension, ())
- thread.start_new_thread(Process_Validate, ())
- def Check_Banned_Extension():
- check = ' '.join(os.listdir(os.getcwd()))
- check_miles = ' '.join(os.listdir(os.getcwd() + '\\miles'))
- banned_ext = [
- '.mix',
- '.m3d',
- '.flt',
- '.asi']
- miles_clean = [
- 'mssa3d.m3d',
- 'mssds3d.m3d',
- 'mssdsp.flt',
- 'mssdx7.m3d',
- 'msseax.m3d',
- 'mssmp3.asi',
- 'mssrsx.m3d',
- 'msssoft.m3d',
- 'mssvoice.asi']
- for i in miles_clean:
- check_miles = check_miles.replace(i, '')
- for i in banned_ext:
- if check.find(i) != -1:
- nome = '%s%s' % (i[0].upper(), i[1:])
- f.write('[VIRTUALMT2 GUARD] ZNALEZIONO PODEJRZANY PLIK %s ROZSZERZENIE NIEZNANE!\n' % nome)
- f.close()
- os._exit(0)
- if check_miles.find(i) != -1:
- f = open('syserr.txt', 'a')
- nome = '%s%s' % (i[0].upper(), i[1:])
- f.write('[VIRTUALMT2 GUARD] ZNALEZIONO PODEJRZANY PLIK %s ROZSZERZENIE NIEZNANE!\n' % nome)
- f.close()
- os._exit(0)
- def Process_Validate():
- time.sleep(20)
- o = os.popen('tasklist /v')
- process = o.read().lower()
- bad_process = [
- 'injector',
- 'musicinstructor',
- 'default ime',
- 'autoit v3 gui',
- 'm2bob',
- 'switch',
- 'Injdector']
- for i in bad_process:
- if process.find(i) != -1:
- f = open('syserr.txt', 'a')
- nome = '%s%s' % (i[0].upper(), i[1:])
- f.write('[VIRTUALMT2 GUARD] ZNALEZIONO PODEJRZANY PLIK (%s) ROZSZERZENIE NIEZNANE!\n' % nome)
- f.close()
- os._exit(0)
- Process_Validate()
- Start_Protection()
Advertisement
Add Comment
Please, Sign In to add comment