Skip to content

Instantly share code, notes, and snippets.

@lobotony
Created May 11, 2022 17:15
Show Gist options
  • Save lobotony/2b90989bd9c771c4cc7ac760317be0ff to your computer and use it in GitHub Desktop.
Save lobotony/2b90989bd9c771c4cc7ac760317be0ff to your computer and use it in GitHub Desktop.
waits for wdavdaemon_enterprise processes and kills them. run with sudo.
#!/usr/bin/env python3
import psutil
import time
def logDebug(msg):
print(time.ctime() + " " + msg)
while True:
count = 0
for p in psutil.process_iter():
if "wdavdaemon_enterprise" == p.name():
p.kill()
p.wait()
count = count +1
logDebug("swatted: "+str(count))
time.sleep(5)
@lobotony
Copy link
Author

It’s Microsoft’s Antivirus trying to check stuff on your machine. You can try killing it with this script, which is brute force, might not work and has its own problems. You can also try to add exemptions for the local monitoring of files and processes.

@createchange
Copy link

As a Security professional, writing here in case any of my employees come upon this gist.

To all, internal to my company or not, you might want to think twice before deliberately hindering an enterprise security tool.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment