MCPcopy Create free account
hub / github.com/Acmesec/Sylas / getRootDomainSet

Method getRootDomainSet

src/utils/DbUtil.java:510–525  ·  view source on GitHub ↗
(String projectName)

Source from the content-addressed store, hash-verified

508 return projectList;
509 }
510 public HashSet<String> getRootDomainSet(String projectName){
511 String sql = "select rootDomainName from RootDomain where ProjectName=?";
512 HashSet<String> rootDomainList = new HashSet<>();
513 ResultSet set;
514 try {
515 PreparedStatement preSQl = conn.prepareStatement(sql);
516 preSQl.setString(1, projectName);
517 set = preSQl.executeQuery();
518 while(set.next()){
519 rootDomainList.add(set.getString("rootDomainName"));
520 }
521 } catch (SQLException e) {
522 BurpExtender.getStderr().println("无法获取到根域名:"+e);
523 }
524 return rootDomainList;
525 }
526
527 public HashMap<String, HashMap<String, String>> getSubDomainMap(String projectName){
528 HashMap<String, HashMap<String, String>> subDomainMap = new HashMap<>();

Callers 7

getSubDomainMapMethod · 0.95
getSubDomainAliveMethod · 0.95
loadDataMethod · 0.80
projectDoneActionMethod · 0.80

Calls 1

getStderrMethod · 0.95

Tested by

no test coverage detected