当前位置:网站首页>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.
边栏推荐
- (*゚ヮ゚)*【精品C语言整理】*(゚ヮ゚*)女盆友缠着你让你教她写代码怎么办?安排,三万字博文带你走遍C语言,从此不再害怕编程
- Kubernetes Scheduler全解析
- 自建 Prometheus 采集腾讯云容器服务监控数据最佳实践
- Safe fifth after-school exercise
- 数据分析面试手册《指标篇》
- 模拟数据之mockjs
- 小程序毕设作品之微信美食菜谱小程序毕业设计成品(7)中期检查报告
- Ten years after graduation, financial freedom: those things that are more important than hard work, no one will ever teach you
- Shell programming conditional statement
- How to prevent governance attacks in DAOs?
猜你喜欢
No more rolls!After joining ByteDance for a week, he ran decisively.
一种灵活的智能合约协作方式
小程序毕设作品之微信美食菜谱小程序毕业设计成品(5)任务书
【开源】Sentinel高性能高可用集群限流解决方案
第一讲 测试知多少
高等代数_证明_矩阵的行列式为特征值之积, 矩阵的迹为特征值之和
HCIP---Multiple Spanning Tree Protocol related knowledge points
程序员必备的 “ 摸鱼神器 ” 来了 !
使用分类权重解决数据不平衡的问题
小程序毕设作品之微信体育馆预约小程序毕业设计成品(4)开题报告
随机推荐
Lecture 3: Several common table field data types in MySQL database
[Mobile Web] Mobile terminal adaptation
leetcode 204. Count Primes 计数质数 (Easy)
游戏元宇宙发展趋势展望分析
2022 版 MySQL 巅峰教程,收藏好,慢慢看
SOM Network 1: Principles Explained
找工作必备!如何让面试官对你刮目相看,建议收藏尝试!!
familiar friend
365 days challenge LeetCode1000 questions - Day 046 Generate a string with odd number of each character + add two numbers + valid parentheses
scikit-learn no moudule named six
Safe fifth after-school exercise
编曲软件FL studio20.8中文版功能和作用
小程序毕设作品之微信体育馆预约小程序毕业设计成品(3)后台功能
如何防范 DAO 中的治理攻击?
365天挑战LeetCode1000题——Day 046 生成每种字符都是奇数个的字符串 + 两数相加 + 有效的括号
SOM Network 2: Implementation of the Code
如何理解 new (...args: any[]) => any
Based on php animation peripheral mall management system (php graduation design)
shell programming conventions and variables
毕业十年,财富自由:那些比拼命努力更重要的事,从来没人会教你