| 6 | import java.io.File; |
| 7 | |
| 8 | public 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 | } |
nothing calls this directly
no outgoing calls
no test coverage detected