Last active
May 7, 2021 11:48
-
-
Save hihebark/47850d7ca185e116d6eb9d3e511a6bdc to your computer and use it in GitHub Desktop.
an unsuitable quick solution to kill the kdevtmpfsi / kinsing malware spreading.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
# an unsuitable quick solution | |
# added it to crontab -e | |
ps -aux | grep -v grep | grep -E "kdevtmpfsi|kinsing" | awk '{print $2}' | while read line ; do kill -9 $line ; done && rm -rf /tmp/kdevtmpfsi* && rm -rf /tmp/kinsing* | |
echo "$(date) removing..." |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment