localhost.php 05-15-2017, 06:06 PM
#1
PHP Code:
<?php
function FuckOffCloudFair($url) {
$ch = curl_init();
curl_setopt($ch,CURLOPT_USERAGENT,'Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8.1.13) Gecko/20080311 Firefox/2.0.0.13');
curl_setopt($ch, CURLOPT_COOKIEJAR, './cookies.txt');
curl_setopt($ch, CURLOPT_COOKIEFILE, './cookies.txt');
curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, FALSE);
curl_setopt($ch, CURLOPT_HEADER, false);
curl_setopt($ch, CURLOPT_FOLLOWLOCATION, true);
curl_setopt($ch, CURLOPT_URL, $url);
curl_setopt($ch, CURLOPT_REFERER, $url);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, TRUE);
$result = curl_exec($ch);
curl_close($ch);
return $result;
}
$html = FuckOffCloudFair('http://127.0.0.1:81');
$pattern = '/[a-z0-9_\-\+]+@[a-z0-9\-]+\.([a-z]{2,3})(?:\.[a-z]{2})?/i';
preg_match_all($pattern, $html, $matches);
foreach($matches[0] as $emailaddress){
$message = "Hi, your email has been exposed online. \n\nThis include your email but also contains passwords. \n\nMore related information can be found at http://hacxx.dx.am";
mail($emailaddress, 'Did you know that your email is exposed?', $message);
print "Sent email to " . $emailaddress . "<BR>";
}
?>