- error_reporting( E_ERROR E_WARNING E_PARSE );
- set_time_limit(0);
- $server = 'www.php100.com'; // IP address
- $host = 'www.php100.com'; // Domain name
- $target = '/test.php?x=1'; // Specific program
- $referer = 'http://www.php100.net/down/redirect.php?x=downurl&id=39&urlid=65'; // Referer
- $port = 80;
- $re = fsockopen($server, $port, $errno, $errstr, 30);
- if (!$re){
- echo "<h1>无法连接远程服务器</h1><h3>$errstr ($errno)</h3/>\n";
- }
- else {
- $strhead = "GET $target HTTP/1.1\r\n";
- $strhead .= "Host: $host\r\n";
- //$strhead .= "Cookie: PHPSESSIONIDSQTBQSDA=DFCAPKLBBFICDAFMHNKIGKEG\r\n";
- $strhead .= "Referer: $referer\r\n";
- $strhead .= "Connection: Close\r\n\r\n";
- fwrite($re, $strhead);
- while (!feof($re)){
- echo fgets($re, 128);
- }
- fclose($re);
- }
以上是小编为您精心准备的的内容,在的博客、问答、公众号、人物、课程等栏目也有的相关内容,欢迎继续使用右上角搜索按钮进行搜索php
, server
, re
, target
, referer
伪造referer
phpsessid 伪造、php 伪造ip、php伪造一年工作经验、php curl 伪造ip、php伪造referer跳转,以便于您获取更多的相关知识。
时间: 2024-09-15 01:32:05