Skip to content

Instantly share code, notes, and snippets.

@hihebark
Last active May 7, 2021 11:48
Show Gist options
  • Save hihebark/47850d7ca185e116d6eb9d3e511a6bdc to your computer and use it in GitHub Desktop.
Save hihebark/47850d7ca185e116d6eb9d3e511a6bdc to your computer and use it in GitHub Desktop.
an unsuitable quick solution to kill the kdevtmpfsi / kinsing malware spreading.
#!/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