I have been trying to find the PID of a php site which is hosted in my apache web server. I did not know that it was very easy until in found the built in php function getmypid(). To find the process ID (PID) of a PHP script use the following code in your php [...]
Archive for the ‘Commands’ Category
IFRAME Virus injecting malicious code | Web server security
November 28th, 2009
Aneesh This year, there has been a large increase in the number of legitimate websites infected by a so-called “iframe” threat – a type of malicious script.
Several prominent websites have come under attack from hackers who have modified the underlying code so that malware can be distributed to unsuspecting users who visit the site. When a [...]
restrict ftp access using iptables
November 25th, 2009
Aneesh Assume the server’s IP address is 125.121.156.156. Now we can block all ftp connections to the server withe the following ip tables rule
iptables -I INPUT -s 0.0.0.0 -d125.121.156.156 -p tcp -m tcp –dport 21 -j DROP
Now we can allow only authorised ip by the folloing rule. Assume the IP to be allowed is [...]



Posted in

