#!/bin/bash # This script scans for rogue php files using neopi.py (https://github.com/Neohapsis/NeoPI) # To download neopi: # wget https://raw.githubusercontent.com/Neohapsis/NeoPI/master/neopi.py # chmod +x neopi.py ./neopi.py -aA . | awk {' print $2 '} | grep "\./" | sort | uniq -c | sort -nr | awk {' print $2 '} | while read line; do (echo $line;echo;cat $line)|less; done