feat: support other middleware suo5 shell

This commit is contained in:
ReaJason
2025-02-15 13:50:04 +08:00
parent 98f44cad3b
commit 142a9e2c47
74 changed files with 8023 additions and 20 deletions
@@ -31,13 +31,13 @@ public class Suo5Manager {
public static void main(String[] args) {
System.out.println(suo5Command);
boolean test = test("http://localhost:8081/app/test", "test");
boolean test = test("http://localhost:32953/app/test", "test");
System.out.println(test);
}
public static boolean test(String targetUrl, String ua) {
ProcessBuilder processBuilder = new ProcessBuilder(
suo5Command, "-t", targetUrl, "--timeout", "5", "-ua", ua
suo5Command, "-t", targetUrl, "--timeout", "5", "-ua", ua, "-H", "Referer: " + targetUrl
);
processBuilder.redirectErrorStream(true);
ExecutorService executor = Executors.newSingleThreadExecutor();