fplanzer

Track infected scripts

Mar 18th, 2019
485
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 0.80 KB | None | 0 0
  1. maldet -a /home/USERNAME/public_html
  2.  
  3. find /home/USERNAME/public_html -ctime -2 -name "*.php"
  4.  
  5. grep -nr strtoupper /home/USERNAME/public_html |grep eval
  6.  
  7. for i in `find /home/USERNAME/public_html/ -name "*.php"`;do head -n 1 $i|grep "eval" && echo $i;done
  8.  
  9. grep -nr strtoupper /home/USERNAME/public_html|grep eval|awk -F: {'print $1'}
  10.  
  11. remove symlink
  12. find /home/USERNAME/public_html -name "*.php" -type l -exec unlink {} \;
  13.  
  14. by date
  15. find . -name "*.php" -newermt 2015-12-19 ! -newermt 2015-12-20 -type f
  16.  
  17. find . -type f -name '*.php' -print | xargs grep -i x29
  18. find . -type f -name '*.php' -print | xargs grep -i x29|awk -F: {'print $1'}
  19. find . -type f -name '*.php' -print | xargs grep -E '[0-9a-zA-Z/]{80}'
  20. find . -type f -name '*.php' -print | xargs grep -E '[0-9a-zA-Z/]{80}'|awk -F: {'print $1'}
Advertisement
Add Comment
Please, Sign In to add comment