Once, when replacing the network adapter in the server, I needed to change its old name in the netplan configuration, that is, replace several hundred words in the file, so I came up with the command:
Continue reading “Replacing a word in Linux files”Tag Archives: find
Script for email notifications when detecting prohibited files
Once, a vulnerability was revealed on one of the file hosting services through which an attacker could upload files to a PHP server and execute it, the vulnerability was fixed and just in case, I wrote a script that would send an email if a PHP file was found in the specified directory:
Continue reading “Script for email notifications when detecting prohibited files”