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

Method run

src/main/java/ui/GUI.java:810–841  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

808 }
809
810 @Override
811 public void run() {
812
813 int type = cbmRuleType.getSelectedIndex();
814 Rule myRule = new Rule(type,tfRegular.getText());
815
816 InterfaceRsq.setText("");
817 //btnIdentify.setEnabled(false);
818 //清洗接口URL
819 HttpService service = new HttpService(url);
820 tfInterfaceURL.setText(service.toString());
821
822 HttpClient http = new HttpClient(url,raw,byteImg);
823 taInterfaceRawReq.setText(http.getRaw());
824 byte[] rsp = http.doReust();
825 String rspRaw = new String(rsp);
826 InterfaceRsq.setText(rspRaw);
827 btnIdentify.setEnabled(true);
828
829 MatchResult result = RuleMannager.match(rspRaw,myRule);
830 CaptchaEntity cap = new CaptchaEntity();
831 cap.setImage(img);
832 cap.setReqRaw(http.getRaw().getBytes());
833 cap.setRsqRaw(rsp);
834 cap.setResult(result.getResult());
835
836 synchronized (captcha){
837 int row = captcha.size();
838 captcha.add(cap);
839 model.fireTableRowsInserted(row,row);
840 }
841 }
842 }
843
844 public class MenuActionManger implements ActionListener {

Callers

nothing calls this directly

Calls 9

toStringMethod · 0.95
getRawMethod · 0.95
doReustMethod · 0.95
matchMethod · 0.95
setImageMethod · 0.95
setReqRawMethod · 0.95
setRsqRawMethod · 0.95
setResultMethod · 0.95
getResultMethod · 0.95

Tested by

no test coverage detected