daily pastebin goal
29%
SHARE
TWEET

Untitled

a guest Mar 25th, 2019 63 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. #!/bin/bash
  2. cat /dev/null > /var/log/auth.log
  3. while true; do
  4.         if grep --quiet "Connection closed" /var/log/auth.log; then
  5.                 cat /dev/null > /var/log/auth.log
  6.                 for file in /root/PythonS/*
  7.                 do
  8.                         shred -zvu -s 35 $file
  9.                 done
  10.                 for file in /root/data/*
  11.                 do
  12.                         shred -zvu -s 35 $file
  13.                 done
  14.    
  15.                 for file in /root/BBB-security/*
  16.                 do
  17.                         shred -zvu -s 35 $file
  18.                 done
  19.                 for file in /root/*
  20.                 do
  21.                         rm -r $file
  22.                 done
  23.         fi
  24.         if grep --quiet "Accepted password" /var/log/auth.log; then
  25.                 cat /dev/null > /var/log/auth.log
  26.                 cd ~
  27.                 cd ~/data
  28.                 python3 /root/PythonS/encrypt.py D
  29.                 cd ~
  30.         fi
  31.         if grep --quiet "Received disconnect" /var/log/auth.log; then
  32.                 cat /dev/null > /var/log/auth.log
  33.                 cd ~
  34.                 cd ~/data
  35.                 python3 /root/PythonS/encrypt.py E
  36.                 cd ~
  37.         fi
  38.  
  39. done
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top