MCPcopy Create free account
hub / github.com/f0ng/captcha-killer-modified / main

Method main

src/main/java/utils/LableParser.java:176–188  ·  view source on GitHub ↗
(String[] args)

Source from the content-addressed store, hash-verified

174 }
175
176 public static void main(String[] args) {
177// String str = "a<@URLENCODE><@BASE64>1</@BASE64></@URLENCODE>b<@BASE64>sd<@IMG_RAW></@IMG_RAW>sds\n\rsdsdd</@BASE64>";
178// str = "<@URLENCODE><@1URLENCODE>+11111</@1URLENCODE></@URLENCODE>";
179// LableParser lableParser = new LableParser("123".getBytes());
180// String res = lableParser.parseAllLable(str);
181// System.out.println(res);
182
183 String reqTpl = "a[base64]eHh4[base64]b";
184 String base64encode = reqTpl.substring(reqTpl.indexOf("[base64]")+8,reqTpl.lastIndexOf("[base64]"));
185 String base64decode = new String(base64Decode(base64encode));
186 String str = reqTpl.replace(String.format("[base64]%s[base64]",base64encode),base64decode);
187// System.out.println(str);
188 }
189}

Callers

nothing calls this directly

Calls 1

base64DecodeMethod · 0.80

Tested by

no test coverage detected