diff --git a/README.md b/README.md index 56b1ca4..4c6ba29 100644 --- a/README.md +++ b/README.md @@ -97,25 +97,25 @@ Show the new process name, file path, cmd line, pid import psutil, time def proc_detect(): - existing_processes = set() + existing_process = set() for p in psutil.process_iter(): - if p.pid not in existing_processes: - existing_processes.add(p.pid) + existing_process.add(p.pid) while True: time.sleep(0.1) + new_process = set() for p in psutil.process_iter(): + new_process.add(p.pid) + for pid in new_process - existing_process: try: - if p.pid not in existing_processes: - existing_processes.add(p.pid) - name, file, cmd = p.name(), p.exe(), p.cmdline() - print(f"Name: {name}") - print(f"File: {file}") - print(f"Pid: {p.pid}") - print(f"Cmd: {cmd}") - elif not psutil.pid_exists(p.pid): - existing_processes.remove(p.pid) + p = psutil.Process(pid) + name, file, cmd = p.name(), p.exe(), p.cmdline() + print(f"Name: {name}") + print(f"File: {file}") + print(f"Pid: {p.pid}") + print(f"Cmd: {cmd}") except: pass + existing_process = new_process proc_detect() ``` @@ -155,6 +155,10 @@ https://pyantivirus.wixsite.com/pyas https://github.com/87owo/PYAS +## PYAS Driver + +https://github.com/0sha0/PYAS_Protection + ## MIT license https://github.com/87owo/PYAS/blob/main/LICENSE.md @@ -167,6 +171,6 @@ Other systems may experience software malfunctions or crash ## Special Thanks -360, Wix, VirusShare, mtkiao129, AV-T Team of LisectGroup +Wix, 0sha0, mtkiao129, AV-T Team of LisectGroup Copyright© 2020~2024 PYAS Security By 87owo