当前位置:网站首页>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.
边栏推荐
- 不卷了!入职字节跳动一周就果断跑了。
- 感觉自己好傻
- 网络水军第一课:手写自动弹幕
- 【ASM】字节码操作 MethodWriter
- Recycling rental system 100% open source without encryption Mall + recycling + rental
- 小程序毕设作品之微信体育馆预约小程序毕业设计成品(3)后台功能
- AIDL communication
- Based on php online learning platform management system acquisition (php graduation design)
- 2022 edition of MySQL tutorial, top collection good, take your time
- 统计单词数
猜你喜欢
随机推荐
小程序毕设作品之微信体育馆预约小程序毕业设计成品(1)开发概要
Postman 批量测试接口详细教程
Kubernetes Scheduler全解析
安全第五次课后练习
模拟数据之mockjs
熟悉的朋友
Unity Shader general lighting model code finishing
scikit-learn no moudule named six
【移动Web】移动端适配
Yizhou Financial Analysis | The intelligent transformation of bank ATM machines is accelerated; the new Internet loan regulations bring challenges
SOM网络1:原理讲解
Based on php hotel online reservation management system acquisition (php graduation project)
一种灵活的智能合约协作方式
Based on php online music website management system acquisition (php graduation design)
【C语言实现】求两个整数的较大值
Dichotomy Medium LeetCode6133. Maximum Number of Groups
罗克韦尔AB PLC RSLogix5000中的比较指令使用方法介绍
企业公众号文章写作方向:如何写出读者认可的优质内容
kubernetes CoreDNS全解析
03、GO语言变量定义、函数









