MCPcopy Index your code
hub / github.com/f0ng/autoDecoder / getPath

Method getPath

src/burp/BurpExtender.java:694–713  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

692
693
694 public static String getPath(){
695 String oss = System.getProperty("os.name");
696
697 try {
698 if (!callbacks.loadExtensionSetting("autoDecoderfilepath").equals("") && callbacks.loadExtensionSetting("autoDecoderfilepath") != null) {
699 return callbacks.loadExtensionSetting("autoDecoderfilepath");
700 }
701 }catch (Exception e){
702
703 }
704
705 if ( oss.toLowerCase().startsWith("win") ) {
706 //System.out.println(oss);
707 return "autoDecoder.properties";
708 } else {
709 String jarPath = callbacks.getExtensionFilename(); // 获取当前jar的路径
710 //System.out.println(jarPath);
711 return jarPath.substring(0, jarPath.lastIndexOf("/")) + "/autoDecoder.properties";
712 }
713 }
714
715 public static String sendPostnew(String url, String param) throws IOException {
716 OkHttpClient okHttpClient = new OkHttpClient();

Callers 5

IndexautoDecoderClass · 0.95
getEncryptHostsMethod · 0.95
processHttpMessageMethod · 0.95
getwordsMethod · 0.95
getnotwordsMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected