Ok. So I have downloaded this source for a PHP Port Scanner with Mailing features from HBH. And I compiled the page, and uploaded it to my site, and it seems that I changed the mail function from mail(
blahblah@blah.com) to my email address, and I never recieve any emails from the port scanner page. I use AOL, so I tried to check if my spam filters got rid of it, but there was nothing in my Spam Folder, or any folder at all! Would anyone know whats going on?
This would be the code if needed.:
Code: Select all
<?php
$ports = array(21,23,25,79,80,110,135,137,138,139,143,443,445,1433,3306,3389);
$ip = $_SERVER['REMOTE_ADDR'];
for ($i = 0; $i < sizeof($ports); $i++) {
$port = $ports[$i];
$fp = @fsockopen($ip, $port, &$errno, &$errstr, 1);
if ($fp) {
mail('myemailadress@aol.com', 'Open Port', 'User with IP '.$ip.' has port '.$port.' open!');
}
}
?>
Thanks for the help.