博客主页 🐟
PHP------图片API劫持
PHP------图片API劫持

Author:

©

Wordage:

共计 471 字

needs:

约 0 分钟

Popular:

259 ℃

Created:

目 录
<?php
$ch= curl_init();
$timeout= 5;
curl_setopt ($ch, CURLOPT_URL, 'https://api.xxx.xxx/xxx');
curl_setopt ($ch, CURLOPT_RETURNTRANSFER, 1);
curl_setopt ($ch, CURLOPT_CONNECTTIMEOUT, $timeout);
$file_contents= curl_exec($ch);
curl_close($ch);
preg_match('/https?:\/{2}[-A-Za-z0-9+&@#\/\%?=~_|!:,.;]+[-A-Za-z0-9+&@#\/\%=~_|]/i',$file_contents, $matches);
$url = $matches[0];
echo"<script>window.location.href='$url';</script>";
?>
文章二维码
PHP------图片API劫持
共计 0 条评论,点此发表评论
博客主页 哀.net OωO
萌ICP备20238808号 数字生命计划 本站已运行 1 年 238 天 6 小时 6 分 Copyright © 2023 ~ 2024. 哀.net All rights reserved.
打赏图
打赏博主
欢迎
搜 索
足 迹
分 类
  • 默认分类
  • 语言分类
  • 其他分类