当前位置:网站首页>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.txtis 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.
边栏推荐
- 感觉自己好傻
- Based on php Xiangxi tourism website management system acquisition (php graduation design)
- 高等代数_证明_矩阵的行列式为特征值之积, 矩阵的迹为特征值之和
- NgRx Selector 的 Memoization 特性学习笔记
- Analysis of the development trend of game metaverse
- 游戏元宇宙发展趋势展望分析
- shell programming conventions and variables
- AQS
- Homework 8.1 Orphans and Zombies
- No more rolls!After joining ByteDance for a week, he ran decisively.
猜你喜欢
随机推荐
网络水军第一课:手写自动弹幕
罗克韦尔AB PLC RSLogix5000中的比较指令使用方法介绍
小程序毕设作品之微信美食菜谱小程序毕业设计成品(6)开题答辩PPT
小程序毕设作品之微信美食菜谱小程序毕业设计成品(8)毕业设计论文模板
【移动Web】移动端适配
如何防范 DAO 中的治理攻击?
(翻译)按钮的对比色引导用户操作的方式
C语言必杀技3行代码把运行速度提升4倍
深度学习Course2第二周Optimization Algorithms习题整理
Based on php online music website management system acquisition (php graduation design)
安全第五次课后练习
(*゚ヮ゚)*【精品C语言整理】*(゚ヮ゚*)女盆友缠着你让你教她写代码怎么办?安排,三万字博文带你走遍C语言,从此不再害怕编程
JS prototype hasOwnProperty in 加方法 原型终点 继承 重写父类方法
编曲软件FL studio20.8中文版功能和作用
365 days challenge LeetCode1000 questions - Day 046 Generate a string with odd number of each character + add two numbers + valid parentheses
数据分析面试手册《指标篇》
Based on php online learning platform management system acquisition (php graduation design)
Unity Shader general lighting model code finishing
统计单词数
leetcode 204. Count Primes 计数质数 (Easy)









