Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save mehdiMj-ir/fe763e6a6fc451155334117d511f60bf to your computer and use it in GitHub Desktop.
Save mehdiMj-ir/fe763e6a6fc451155334117d511f60bf to your computer and use it in GitHub Desktop.
kill-kdevtmpfsi.sh
#!/bin/bash
# kinsing deleteing here
PID=$(pidof kinsing)
echo "$PID"
kill -9 $PID
# /tmp/kinsing deleteing here (Some times it will run /tmp path)
PID=$(pidof /tmp/kinsing)
echo "$PID"
kill -9 $PID
# kdevtmpfsi deleteing here
PID=$(pidof kdevtmpfsi)
echo "$PID"
kill -9 $PID
# /tmp/kdevtmpfsi deleteing here (Some times it will run /tmp path)
PID=$(pidof /tmp/kdevtmpfsi)
echo "$PID"
kill -9 $PID
# Delete malware files
find / -iname kdevtmpfsi -exec rm -fv {} \;
find / -iname kinsing -exec rm -fv {} \;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment