Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import psutil,os,sys,time
- def scan():
- mainexe=str
- test=[]
- p = psutil.Process(pid)
- for dll in p.memory_maps():
- if dll.path.endswith(name.replace(".exe","")+".exe"):
- mainexe=dll.path
- if not dll.path.endswith(".exe") and not str(dll.path).find("Windows")==3 and not str(dll.path).find("ProgramData")==3 and not str(dll.path).find("C:\\Program Files\\")==0:
- test.append(dll.path)
- return test,mainexe
- def issystemsfile():
- standardsizeofcrashhadler=376096
- pathofcrashhadler=str
- path_file = []
- for root, dirs, files in os.walk(scan()[1].replace(name+".exe","")):
- for file in files:
- if file.endswith(""):
- path_file.append(os.path.join(root, file))
- result=list(set(scan()[0]) & set(path_file))
- result=[item for item in scan()[0] if item not in result]
- i=0
- length=len(result)
- while i!=length:
- if str(result[i]).find("cache") != -1:
- del result[i]
- length = len(result)
- continue
- if str(result[i]).find("Windows") != -1:
- del result[i]
- length = len(result)
- continue
- length=len(result)
- i+=1
- for i in result:
- if str(i).find("Steam")!=-1 and str(i).find("crashhandler.dll")!=-1:
- pathofcrashhadler=str(i).replace("crashhandler.dll","")
- if standardsizeofcrashhadler!=os.path.getsize(i):
- return "mod"
- break
- else:
- path_file = []
- for root, dirs, files in os.walk(str(i).replace("crashhandler.dll","")):
- for file in files:
- if file.endswith(""):
- path_file.append(os.path.join(root, file))
- result = [item for item in result if item not in path_file]
- if result==[]:
- return "ok"
- break
- else:
- return result
- break
- def kill():
- for proc in psutil.process_iter():
- if proc.name() == name.replace(".exe", "") + ".exe":
- print("Закрытие приложения...")
- time.sleep(1)
- proc.kill()
- def find():
- for i in range(len(firstscan)):
- if issystemsfile()=="ok":
- print("\n"*100+"Наблюдаю...")
- else:
- if issystemsfile()=="mod":
- print("Обнаружено изменение в файлах стима")
- time.sleep(4)
- kill()
- sys.exit()
- else:
- print("Обнаружено внедрение этой длл:",issystemsfile())
- time.sleep(4)
- kill()
- sys.exit()
- time.sleep(delay)
- if __name__ == "__main__":
- print("===АНТИ-ЧИТ СЫЩ 0.1===")
- time.sleep(1)
- name = input("Введите имя процесса: ")
- try:
- pid = [p.info["pid"] for p in psutil.process_iter(attrs=['pid', 'name']) if name in p.info['name']][0]
- except:
- print("Ошибка, нет процесса")
- sys.exit()
- delay = float(input("Введите задержку(в сек.): "))
- firstscan = scan()[0]
- while True:
- find()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement