MCPcopy Create free account
hub / github.com/c0ny1/captcha-killer / requestImage

Method requestImage

src/main/java/utils/Util.java:265–278  ·  view source on GitHub ↗
(String url,String raw)

Source from the content-addressed store, hash-verified

263 }
264
265 public static byte[] requestImage(String url,String raw){
266 if(Util.isURL(url)) {
267 HttpClient http = new HttpClient(url, raw, null);
268 byte[] rsp = http.doReust();
269 BurpExtender.gui.getTaResponse().setText(new String(rsp));
270 int BodyOffset = BurpExtender.helpers.analyzeResponse(rsp).getBodyOffset();
271 int body_length = rsp.length - BodyOffset;
272 byte[] byteImg = Util.subBytes(rsp, BodyOffset, body_length);
273 return byteImg;
274 }else{
275 BurpExtender.stderr.println("[-] captcha URL format invalid");
276 return null;
277 }
278 }
279
280 public static String matchByRegular(String str,String reg){
281 String res = "";

Callers 2

doInBackgroundMethod · 0.95
runMethod · 0.95

Calls 4

isURLMethod · 0.95
doReustMethod · 0.95
subBytesMethod · 0.95
getTaResponseMethod · 0.80

Tested by

no test coverage detected