MCPcopy Create free account
hub / github.com/Ppsoft1991/CodeReviewTools / WarScan

Class WarScan

src/main/java/ppsoft1991/Scanner/unzip/WarScan.java:8–21  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

6import java.io.File;
7
8public class WarScan implements IScan {
9 @Override
10 public void scan(String dir, String fileName) throws Exception {
11 if(dir.endsWith(".war") || dir.endsWith(".jar")){
12 File file = new File(dir);
13 File saveFile = new File(dir.substring(0, dir.length()-4)+".src.zip");
14 System.out.println("[+]装载war包: "+dir);
15 Decompile.doSaveJarDecompiled(file, saveFile);
16 System.out.println("反编译成功!");
17 }else {
18 System.out.println("解压war包模式请指定war包地址");
19 }
20 }
21}

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected