A short tutorial how to minimize the risk of getting a PHP Shell uploaded to your server.
Test it on a second terminal:
You should see:
Next steps: Figure out how to run this on boot (use upstart)!
More info: https://github.com/DevelopersPL/gonotifyav
Code:
# Download gonotifyav
wget https://github.com/DevelopersPL/gonotifyav/releases/download/v0.1/gonotifyav
# Add permissions:
chmod +x gonotifyav
# Run:
./gonotifyav --delete 1 /tmp /var/www /dev/shm
Test it on a second terminal:
Code:
wget http://www.r57shell.net/shell/c99.txt -O /tmp/c99.txt
stat /tmp/c99.txt
You should see:
stat: cannot stat ‘/tmp/c99.txt’: No such file or directory
Next steps: Figure out how to run this on boot (use upstart)!
More info: https://github.com/DevelopersPL/gonotifyav