贴码子
代码语言:javascript复制<?php
/*
* @Project:
* @Date: 2021-08-04 20:59:32
* @LastEditors: Qicloud
* @LastEditTime: 2021-08-04 21:11:15
* @FilePath: undefinedf:DesktopUntitled-1.php
* 落座无言行三载,持笔无悔笑苍生!
*/
$Dbfile = './qqwry.dat'; //定义目录及文件名
$copywrite = file_get_contents('http://update.cz88.net/ip/copywrite.rar');
$qqwry = file_get_contents('http://update.cz88.net/ip/qqwry.rar');
$key = unpack('V6', $copywrite)[6];
for($i = 0; $i < 0x200; $i ) {
$key *= 0x805;
$key ;
$key = $key & 0xFF;
$qqwry[$i] = chr(ord($qqwry[$i]) ^ $key);
}
$qqwry = gzuncompress($qqwry);
/**
* 判断下载数据是否存在,否则失败
*/
if (file_put_contents($Dbfile, $qqwry)) {
echo '成功';
} else {
echo 'Error';
}
然后去设置定时任务即可,貌似屏蔽海外的机器不能玩这个,改天我建一个公共的出来玩