From the terminal (SSH): grep -Ril "find /home/username/public_html/ -type f -mtime -2" From a .php file: <?php $last=shell_exec('grep -Ril "find /home/username/public_html/ -type f -mtime -2"'); echo "<pre>$last</pre>"; ?> The...
Content Security Policy (CSP) is a security layer that can help you detect and mitigate Cross Site Scripting (XSS) and data injection attacks. If your web application displays and stores custom HTML/CSS from user input, then you most...
Here in how to change the default Time Zone permanently in cPanel using the .htaccess file Step 1. First, check you current time yone settings using a simple .php script like this: <?php echo "Today is " . date("Y/m/d") . "<br>"; echo "The...
Here is a simple PHP script that you can use to test if a port is open on the server or not. <?php $host = $_SERVER['SERVER_ADDR']; $ports = array(21, 25, 80, 81, 110, 443, 3306); foreach ($ports as $port) { $connection = @fsockopen($host...
Here is a list of the top 10 most useful browser extensions that I use daily, and hopefully some other System Administrators and Web Developers will find them useful as well. AdBlocker Number one of this list is the first extension that I always...
If you’ve installed the official CentOS image, after trying to login as root you will see the following message: “Please login as the user “centos” rather than the user “root”. Here is how to permit root login in...
Here is yet another PHP Shell which I stumbled upon today. It’s pretty basic and allows an attacker to do pretty much the same as with any other shell. And here is the obfuscated code for the b374k shell 3.2: <?php function...
Quick List of the Best Web Hosting Control Panels cPanel – Best Linux-only web hosting control panel for users who want a control panel that’s tried and tested over the yearsPlesk – Perfect Windows/Linux web hosting...
On a WordPress website that is protected with ModSecurity, when admin edits pages using Elementor or Gutenber in wp-admin dashboard, ModSecurity may falsely detect it as XSS attack. What we usually do is disable specific rules that create this false...
PIP is part of Extra Packages for Enterprise Linux (EPEL), so we first need to install EPEL: yum install epel-release Confirm the install and hit enter to complete the install process. then we can install python-pip: yum -y install python-pip...