Best Blackhat Forum

Full Version: Change to Fake Referral Php Script
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
PHP Code:
<?php

$host 
'www.yourtargeturl.com';
$service_uri '/detect_referal.php';
$vars ='additional_option1=yes&additional_option2=un';

$header "Host: $host\r\n";
$header .= "User-Agent: PHP Script\r\n";
$header .= "Content-Type: application/x-www-form-urlencoded\r\n";
$header .= "Referer: http://www.google.com/search?hl=en&q=jigh&btnG=Google+Search \r\n";
$header .= "Content-Length: ".strlen($vars)."\r\n";
$header .= "Connection: close\r\n\r\n";

$fp fsockopen("".$host,80$errno$errstr);

if (!
$fp) {
  echo 
"$errstr ($errno)<br/>\n";
  echo 
$fp;
} else {
fputs($fp"POST $service_uri  HTTP/1.1\r\n");
fputs($fp$header.$vars);
fwrite($fp$out);

while (!
feof($fp)) {
echo 
fgets($fp128);
}
fclose($fp);
}
?>

Then for detect_referral, use file below.
PHP Code:
<?php

echo $_SERVER['HTTP_REFERER']

?>

I'll share more helpful information/guide soon. [Image: smile.gif]
Press THANKS or REP me if you found it useful. [Image: cool.gif]
How can I make this work?

I'm confused...

Is it just set, upload, and access type of file?
I am also confused, I want to have a link on my website that when clicked it would show another spoofed website as the referer. is this possible?
Good job man
Hi all! good lucky to you
Reference URL's