当前位置:网站首页>HackTheBox-Gunship
HackTheBox-Gunship
2022-07-02 08:34:00 【galaxy3000】
List of articles
summary
HackTheBox Website CTF shooting range Web Related topics Gunship, Title address https://app.hackthebox.com/challenges/gunship, Main investigation AST Injected knowledge points .
subject
Title Overview
The title provides attachment download , After decompression, as shown in the figure
After opening the program instance , Prompt to visit 138.68.142.134:32761
, visit http://138.68.142.134:32761, See the following Web Interface
Their thinking
Using browser plug-ins Wappalyzer View its components , Found as Node.js Developed applications
see routes Under the index.js
const path = require('path');
const express = require('express');
const pug = require('pug');
const { unflatten } = require('flat');
const router = express.Router();
router.get('/', (req, res) => {
return res.sendFile(path.resolve('views/index.html'));
});
router.post('/api/submit', (req, res) => {
const { artist } = unflatten(req.body);
if (artist.name.includes('Haigh') || artist.name.includes('Westaway') || artist.name.includes('Gingell')) {
return res.json({
'response': pug.compile('span Hello #{user}, thank you for letting us know!')({ user: 'guest' })
});
} else {
return res.json({
'response': 'Please provide us with the full name of an existing member.'
});
}
});
module.exports = router;
see package.json Version corresponding to each component
among pug:3.0.0 There is RCE Loophole , See https://github.com/pugjs/pug/issues/3312
stay index.js Can be seen in , Request for POST Mode submission , adopt req.body
Receiving parameters .
Question answer
Use postman Send to get flag
边栏推荐
- One of the reasons for WCF update service reference error
- What are the platforms for selling green label domain names? What is the green label domain name like?
- CarSim problem failed to start solver: path_ ID_ OBJ(X) was set to Y; no corresponding value of XXXXX?
- Intelligent manufacturing solutions digital twin smart factory
- Carla-UE4Editor导入RoadRunner地图文件(保姆级教程)
- Development of digital collection trading website development of metauniverse digital collection
- Web security -- core defense mechanism
- sqli-labs第1关
- Vs code configuration problem
- 顺序表基本功能函数的实现
猜你喜欢
Animation synchronization of CarSim real-time simulation
群辉 NAS 配置 iSCSI 存储
sqli-labs第12关
ARP及ARP欺骗
Sqlyog remote connection to MySQL database under centos7 system
Introduction to parameters of CarSim pavement 3D shape file
Use the kaggle training model and download your own training model
W10 is upgraded to W11 system, but the screen is black, but the mouse and desktop shortcuts can be used. How to solve it
C language custom type enumeration, Union (clever use of enumeration, calculation of union size)
File upload Labs
随机推荐
Realization of basic function of sequence table
Solid principle: explanation and examples
Data asset management function
My VIM profile
用数字 5,5,5,1 ,进行四则运算,每个数字当且仅当用一次,要求运算结果值为 24
St-link connection error invalid ROM table of STM32 difficult and miscellaneous diseases
Chinese garbled code under vscade
Matlab - autres
Gateway is easy to use
Detailed explanation of NIN network
High school mathematics compulsory one
Force buckle method summary: sliding window
Use of OpenCV 6.4 median filter
Web security -- Logical ultra vires
Sentinel 简单使用
Library function of C language
OpenCV3 6.3 用滤波器进行缩减像素采样
Analysis of the use of comparable, comparator and clonable interfaces
OpenCV3 6.2 低通滤波器的使用
Global and Chinese markets of tilting feeders 2022-2028: Research Report on technology, participants, trends, market size and share