喵趣app这个上面的资源很丰富,但是呢防采集也是做的比较狠各种弯弯绕绕的,今天呢给大家分享一下下载它封面的代理转发插件。
抓包到的数据:
GET https://39e3lsm4h5s27hcnuea71sxhu0nj7da8-cdn.imgresovrces.net:23647/cover/comic/cb9b091f32bb77272c27c6c5b042ed38.webp HTTP/1.1 Accept-Encoding: gzip Connection: Keep-Alive Host: 39e3lsm4h5s27hcnuea71sxhu0nj7da8-cdn.imgresovrces.net:23647 User-Agent: Dalvik/2.1.0 (Linux; U; Android 9; V1923A Build/PQ3A.190605.12201529) channel: miaofun referer: com.paokeji.yiqu time: 1709101409921
可以看到几乎是没有什么特殊协议就是一个来源请求头没有了,我们根据这个请求协议直接写php,上传就可以使用了。
使用方法:127.0.0.1/tu.php?url=图片地址
<?php
// 获取图片URL
$url = isset($_GET@['url']) ? $_GET@['url'] : '';
// 检查URL是否为空
if (empty($url)) {
die('Invalid URL');
}
// 设置请求头
$headers = array(
'Accept-Encoding: gzip',
'Connection: Keep-Alive',
'Host: 39e3lsm4h5s27hcnuea71sxhu0nj7da8-cdn.imgresovrces.net:23647',
'User-Agent: Dalvik/2.1.0 (Linux; U; Android 9; V1923A Build/PQ3A.190605.12201529)',
'channel: normal',
'referer: com.paokeji.yiqu',
'time: ' . round(microtime(true) * 1000)
);
// 创建cURL资源
$ch = curl_init();
// 设置cURL选项
curl_setopt($ch, CURLOPT_URL, $url);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
curl_setopt($ch, CURLOPT_HTTPHEADER, $headers);
// 发送请求并获取响应
$response = curl_exec($ch);
// 关闭cURL资源
curl_close($ch);
// 输出响应内容
header('Content-Type: image/webp');
header('Content-Disposition: attachment; filename="downloaded_image.webp"');
echo $response;
?>