Find top/largest files and directories on a Linux server 1

Find top/largest files and directories on a Linux server

To find the largest files and directories on a linux server, type the command bellow… and grab a cup of coffee afterwards. Change head -n $top_num to your liking to get the top x files and/or directories.

 

Symlink scan on Linux web server 2

Symlink scan on Linux web server

Scan symlinks on web server directory structure recursively to find if any symlinks exist. I used it to discover if a shared web hosting server was compromised/ rooted using the symlink attack. Read about the attack in the link below. Note: Don’t forget to change the path.

Anatomy of the attack

PHP Malware Scan on Linux Server 3

PHP Malware Scan on Linux Server

Note: that there will be a lot false positives when scanning WordPress file structures.