MCPcopy Index your code
hub / github.com/0x727/DropLabTools / RandomStr

Method RandomStr

src/main/java/com/droplab/Utils/CommonUtils.java:54–63  ·  view source on GitHub ↗

随机字符串生成 @param bit @return

(int bit)

Source from the content-addressed store, hash-verified

52 * @return
53 */
54 public static String RandomStr(int bit){ //随机字符串生成
55 String str="abcdefhijklmnopqrstuvwxyzABCDEFHIJKLMNOPQRSTUVWXYZ";
56 Random rand=new Random();
57 StringBuffer buffer = new StringBuffer();
58 for (int i = 0; i < bit; i++) {
59 int anInt = rand.nextInt(str.length());
60 buffer.append(str.charAt(anInt));
61 }
62 return buffer.toString();
63 }
64
65 /**
66 * 字节数组转16进制

Callers 13

getMemoryShellMethod · 0.95
getUploadShellMethod · 0.95
A6V5FastJsonMethod · 0.95
A6FileUploadPocMethod · 0.95
htmlofficeservletMethod · 0.95
V8GETSHELLTWOMethod · 0.95
V9GETSHELLRCEMethod · 0.95
A6V5FastJsonMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected