Skip to content

Commit 19b04e5

Browse files
committed
fix rmi local reference payload bug
1 parent 109360f commit 19b04e5

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66

77
<groupId>cckuailong</groupId>
88
<artifactId>JNDI-Injection-Exploit-Plus</artifactId>
9-
<version>1.1-SNAPSHOT</version>
9+
<version>1.2-SNAPSHOT</version>
1010

1111
<properties>
1212
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>

src/main/java/jndi/RMIRefServer.java

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -329,6 +329,9 @@ private boolean handleRMI ( ObjectInputStream ois, DataOutputStream out ) throws
329329

330330
String cpstring = this.classpathUrl.toString();
331331
String reference = Mapper.references.get(object);
332+
if (reference == null) {
333+
reference = Mapper.references1.get(object);
334+
}
332335

333336
if (reference == null) {
334337
System.out.println(getLocalTime() + " [RMISERVER] >> Reference that matches the name(" + object + ") is not found.");

0 commit comments

Comments
 (0)