Skip to content

Instantly share code, notes, and snippets.

View ahmadzip's full-sized avatar

Ahmad Sulaeman ahmadzip

View GitHub Profile
@ahmadzip
ahmadzip / main.py
Last active March 22, 2023 21:18
Program untuk memberhentikan otomatis software dalam waktu tertenu menggunakan python
#made with ❤️ by @man.zip_
import os
import time
remove = ['system', 'smss', 'csrss', 'wininit', 'services', 'lsass', 'lsm', 'task', 'svc', 'registry', 'power', 'security', 'search', "smartscreen", "updater"]
running_processes = list(dict.fromkeys([process.replace('"', '').split(',')[0] for process in os.popen('tasklist /fo csv /nh').read().strip().split('\n') if all(word.lower() not in process.lower() for word in ['system', 'smss', 'csrss', 'wininit', 'services', 'lsass', 'lsm', 'task', 'svc', 'registry', 'power', 'security'])]))
def waitingSoftware():
while True:
print("Menunggu software terbuka")