首页 > 作文

解析PHP跨站刷票的实现代码

更新时间:2023-04-06 10:32:48 阅读: 评论:0

废话不多说,上代码


复制代码 代码如下:

function curlrequest($url, $postfield,$referer=”,$cookie=”) {

////www.jb51.net

$ip= rand(100, 244).’.’.rand(100, 244).’.’.rand(100, 244).’.’.rand(100, 244);

$ch = curl_init();

curl_topt($ch, curlopt_url, $url);

curl_topt($ch, curlopt_header, 0);

curl_topt($ch, curlopt_returntransfewith的复合结构用法r, 1);

curl_topt($ch, curlopt_post, 1);

curl_topt($ch, curlopt_postfields, $postfield);

curl_topt($ch, curlopt_cookie, $cookie);

curl_topt($ch, curlopt_httpheader, array(‘x-f先进女职工事迹材料orwarded-for:’.$ip, ‘client-ip:’.$ip)); //构造ip

curl_topt($ch, curlopt_referer, $referer); //构造来路

$data = curl_exec($ch); //运行curl

curl_clo($炼字ch);

return $data;

}

$url=’http://xxxxx/vote.php’;

$ref=’http://xxxxx/index.php’;

$cookies=”;//构造你的cookies

$postfield=array(

‘informat治疗高血压药物ion_id’内分泌失调吃什么药好;=>201204211839164950

);

$postfield = http_build_query($postfield);

$result = curlrequest($url, $postfield,$ref,$cookies);

echo $result;

本文发布于:2023-04-06 10:32:34,感谢您对本站的认可!

本文链接:https://www.wtabcd.cn/fanwen/zuowen/b4cd6db30bb68a51b15d100a34297327.html

版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。

本文word下载地址:解析PHP跨站刷票的实现代码.doc

本文 PDF 下载地址:解析PHP跨站刷票的实现代码.pdf

标签:代码   来路   多说   治疗高血压
相关文章
留言与评论(共有 0 条评论)
   
验证码:
Copyright ©2019-2022 Comsenz Inc.Powered by © 专利检索| 网站地图