MCPcopy Create free account
hub / github.com/1150037361/SpringScan / scanBurpApi

Method scanBurpApi

src/main/java/ui/MainTab.java:679–700  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

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}

Callers 1

actionPerformedMethod · 0.95

Calls 2

doGetMethod · 0.95
isGoodMethod · 0.95

Tested by

no test coverage detected