Method
writeFile
(byte[] bytes,String filepath)
Source from the content-addressed store, hash-verified
| 37 | |
| 38 | |
| 39 | public static void writeFile(byte[] bytes,String filepath){ |
| 40 | try { |
| 41 | //writePath 为最终文件路径名 如:D://test.txt |
| 42 | FileOutputStream fos = new FileOutputStream(filepath); |
| 43 | fos.write(bytes); |
| 44 | fos.close(); |
| 45 | } catch (Exception e) { |
| 46 | //e.printStackTrace(); |
| 47 | BurpExtender.stderr.println("[*] " + e.getMessage()); |
| 48 | } |
| 49 | } |
| 50 | |
| 51 | |
| 52 | public static String getTempReqName(String filename) { |
Tested by
no test coverage detected