spy.php
<?php ?>
i target.php
<?php ?>
Chciałbym żeby wynik zwracany w target.php był http://www.w3.org/
Porszę o pomoc przeszukałe forum i manuala i na temat referera jest mało informacji
P.S. Mam nadzieję że da sie to zrobić przy pomocy PHP5
<?php ?>
<?php ?>
<?php // the site we want to attack $host = "www.mysite.com"; // the file we want to attack $file = "formprocess.php"; // construct a header for our request 'method' => "POST", header'=> accept-language: enrn" . "Host: $hostrn" . "Referer: http://$hostrn" . // Setting the http-referer "Content-Type: application/x-www-form-urlencodedrn" . "Content-Length: 33rnrn" . "username=mustap&comment=NOCOMMENTrn" ) ); // get the requested page from the server // with our header as a request-header $context = stream_context_create($hdrs); $fp = fopen("http://" . $host . "/" . $file, 'r', false, $context); fpassthru($fp); fclose($fp); ?>