App exe 封装教程 发表于 2021-02-24 | 更新于 2025-01-18
| 总字数: 465 | 阅读时长: 2分钟 | 浏览量:
jpackage Burp-Suite-Launch IdeaProjects/Burp-Suite-Launch/src/burpsuite/Main.java
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 package burpsuite;public class Main { public static void main (String[] args) { new Main ().shell(); } public String getPath () { String path = this .getClass().getProtectionDomain().getCodeSource().getLocation().getPath(); if (System.getProperty("os.name" ).contains("dos" )) { path = path.substring(1 ); } if (path.contains("jar" )) { path = path.substring(0 , path.lastIndexOf("." )); return path.substring(0 , path.lastIndexOf("/" )); } return path.replace("target/classes/" , "" ); } public void shell () { String getPath = getPath(); try { Runtime.getRuntime().exec(getPath + "/start.sh " + getPath); } catch (Exception e) { e.printStackTrace(); } } } ```ini  cmd = burpsuite + "\\jdk-15\\bin\\java.exe -noverify -javaagent:" \ + burpsuite + "\\BurpSuiteLoader.jar -javaagent:" \ + burpsuite + "\\BurpSuiteCn.jar -Dfile.encoding=utf-8 -jar " \ + burpsuite + "\\Burp-Suite.jar" subprocess.call(cmd, shell=True , stdin=subprocess.PIPE, stdout=subprocess.PIPE, stderr=subprocess.PIPE)
XRSec has the right to modify and interpret this article. If you want to reprint or disseminate this article, you must ensure the integrity of this article, including all contents such as copyright notice. Without the permission of the author, the content of this article shall not be modified or increased or decreased arbitrarily, and it shall not be used for commercial purposes in any way