Skip to content

Commit

Permalink
fix windows bug :)
Browse files Browse the repository at this point in the history
  • Loading branch information
Whoopsunix committed Jun 8, 2024
1 parent 202f754 commit 0644888
Show file tree
Hide file tree
Showing 5 changed files with 11 additions and 9 deletions.
5 changes: 3 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ By. Whoopsunix

目前支持 CLI、Yaml 配置,通过

直接运行生成模板配置文件,并展示支持的调用链
直接运行生成模板~~配置文件(写了就放着了不准备维护)~~,并展示支持的调用链

![image-20240416174431675](attachments/image-20240416174431675.png)

Expand All @@ -69,9 +69,10 @@ Cli 通过 `java -jar PPPYSO-{version}-jar-with-dependencies.jar -g Coherence1 {

```
# 安装依赖
mvn clean
mvn clean
# 打包
mvn clean package -Dmaven.test.skip
mvn clean package -DskipTests
```

# 0x01 URLDNS 增强
Expand Down
4 changes: 3 additions & 1 deletion common/src/main/java/com/ppp/utils/maker/ClassUtils.java
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,9 @@ public static List<Class<?>> getClasses(String packageName) throws Exception {
* 获取指定 Jar 包下的所有类
*/
public static List<Class<?>> getJarClasses(String packageName) throws Exception {
String path = packageName.replace('.', File.separatorChar);
// String path = packageName.replace('.', File.separatorChar);
// fix windows not found
String path = packageName.replace('.', '/');
List<Class<?>> classes = listClassesInPackage(path);
return classes;
}
Expand Down
2 changes: 1 addition & 1 deletion exploit/src/main/java/com/ppp/exploit/JRMPListener.java
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ public void exploit(Object gadget, ExploitHelper exploitHelper) {
int port = exploitHelper.getPort();

try {
Printer.log("Opening JRMP listener on " + port);
Printer.yellowInfo("Opening JRMP listener on " + port);
JRMPListener c = new JRMPListener(port, gadget);
c.run();
}catch (Throwable e){
Expand Down
2 changes: 1 addition & 1 deletion scheduler/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

<groupId>com.ppp</groupId>
<artifactId>scheduler</artifactId>
<version>1.2.1</version>
<version>1.2.2</version>
<packaging>jar</packaging>

<name>scheduler</name>
Expand Down
7 changes: 3 additions & 4 deletions scheduler/src/main/java/com/ppp/Scheduler.java
Original file line number Diff line number Diff line change
Expand Up @@ -3,14 +3,12 @@
import com.ppp.annotation.*;
import com.ppp.chain.urldns.DNSHelper;
import com.ppp.chain.urldns.Product;
import com.ppp.chain.urldns.Subdomain;
import com.ppp.exploit.ExploitPayload;
import com.ppp.sinks.SinkScheduler;
import com.ppp.sinks.SinksHelper;
import com.ppp.sinks.annotation.EnchantEnums;
import com.ppp.sinks.annotation.EnchantType;
import com.ppp.utils.RanDomUtils;
import com.ppp.utils.Reflections;

import java.io.*;
import java.lang.reflect.Field;
Expand All @@ -21,11 +19,11 @@
* @author Whoopsunix
*/
public class Scheduler {
private static String VERSION = "1.2.0";
private static String gadgetPackageName = "com.ppp.chain";
private static String VERSION = "1.2.2";
private static String userDir = System.getProperty("user.dir") + "/PPPConfig.yml";

public static void main(String[] args) throws Exception {
// System.out.println(Arrays.toString(args));
SinksHelper sinksHelper = new SinksHelper();
ExploitHelper exploitHelper = null;
Class<? extends ExploitPayload> exploitClass = null;
Expand Down Expand Up @@ -112,6 +110,7 @@ public static Object serializationMaker(Class cls, SinksHelper sinksHelper) thro

public static void PPPYSOexit() throws Exception {
PPPYSO();
Printer.yellowInfo("Input [-h|-help] to start");
if (!new File(userDir).exists()) {
generateDefaultConfigYaml();
}
Expand Down

0 comments on commit 0644888

Please sign in to comment.