()
| 677 | } |
| 678 | |
| 679 | public void scanBurpApi() { |
| 680 | String url = urlInfo.getText(); |
| 681 | if (url.endsWith("/")) { |
| 682 | url = url.substring(0, url.length() - 1); |
| 683 | } |
| 684 | |
| 685 | String finalUrl = url; |
| 686 | new Thread(() -> { |
| 687 | for (int i = 0; i < Path.fullPath.length; i++) { |
| 688 | String result = HttpUtil.doGet(finalUrl + Path.fullPath[i]); |
| 689 | |
| 690 | //进度条设置 |
| 691 | proccessInfo.setValue(i + 1); |
| 692 | labProccess.setText(String.valueOf(i + 1) + "/" + String.valueOf(proccessInfo.getMaximum())); |
| 693 | |
| 694 | //判断是否符合POC |
| 695 | if (isGood(result.toLowerCase())) { |
| 696 | resultData.append(finalUrl + Path.fullPath[i] + "\n"); |
| 697 | } |
| 698 | } |
| 699 | }).start(); |
| 700 | } |
| 701 | |
| 702 | } |
no test coverage detected