MCPcopy Create free account
hub / github.com/c0ny1/sqlmap4burp-plus-plus / makeBatFile

Method makeBatFile

src/main/java/burp/Util.java:60–75  ·  view source on GitHub ↗
(String filename,String content)

Source from the content-addressed store, hash-verified

58
59
60 public static String makeBatFile(String filename,String content){
61 Properties properties = System.getProperties();
62 String tempDir = (String) properties.get("java.io.tmpdir");
63 String batFile = (tempDir + File.separator + filename);
64 String sysEncoding = System.getProperty("file.encoding");
65 try {
66 OutputStreamWriter write = new OutputStreamWriter(new FileOutputStream(batFile),sysEncoding);
67 BufferedWriter writer=new BufferedWriter(write);
68 writer.write(content);
69 writer.close();
70 return batFile;
71 } catch (Exception e) {
72 BurpExtender.stderr.println("[*] "+e.getMessage());
73 return "Fail";
74 }
75 }
76
77
78 public static String getBanner(){

Callers 1

runMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected