Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
bit4woo committed Sep 30, 2018
1 parent ec64d90 commit d1424a3
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/burp/BurpExtender.java
Original file line number Diff line number Diff line change
Expand Up @@ -115,7 +115,7 @@ public Map<String, Set<String>> search(String subdomainof, String domainlike){
//stdout.println(shortURL);
//stdout.println(Host);

if (Host.endsWith("."+subdomainof)){
if (Host.endsWith("."+subdomainof)||Host.equalsIgnoreCase(subdomainof)){
subdomainofset.add(Host);
//stdout.println(subdomainofset);
//get SANs info to get related domain, only when the [subdomain] is using https.
Expand All @@ -126,7 +126,7 @@ public Map<String, Set<String>> search(String subdomainof, String domainlike){
}


if (!domainlike.equals("") && Host.contains(domainlike) && !Host.equalsIgnoreCase(subdomainof)){
if (!domainlike.equals("") && Host.contains(domainlike)){
domainlikeset.add(Host);
if(protocol.equalsIgnoreCase("https")) {
httpsURLs.add(shortURL);
Expand Down Expand Up @@ -197,9 +197,9 @@ public Map<String, Set<String>> search(String subdomainof, String domainlike){
//对 SANs的结果再做一次分类。
for (String item:tmpRelatedDomainSet) {
if (item.contains(".")&&!item.endsWith(".")&&!item.startsWith(".")) {
if (item.endsWith("."+subdomainof)){
if (item.endsWith("."+subdomainof) || item.equalsIgnoreCase(subdomainof)){
subdomainofset.add(item);
}else if (!domainlike.equals("") && item.contains(domainlike) && !item.equalsIgnoreCase(subdomainof)){
}else if (!domainlike.equals("") && item.contains(domainlike)){
domainlikeset.add(item);
}else {
relatedDomainSet.add(item);
Expand Down

0 comments on commit d1424a3

Please sign in to comment.