forked from bit4woo/domain_hunter_pro
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
2 changed files
with
12 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -18,7 +18,7 @@ | |
|
||
public class DomainProducer extends Thread {//Producer do | ||
private final BlockingQueue<IHttpRequestResponse> inputQueue;//use to store messageInfo | ||
private BlockingQueue<String> httpsQueue = new LinkedBlockingQueue<>();//temp variable to identify checked https | ||
|
||
|
||
private int threadNo; | ||
private volatile boolean stopflag = false; | ||
|
@@ -97,7 +97,7 @@ public void run() { | |
entry.setComment("BaseOnCertInfo"); | ||
DomainPanel.fetchTargetModel().addRowIfValid(entry); | ||
|
||
//重新判断类型,应该是确定的IP类型了。[email protected] | ||
//重新判断类型,应该是确定的IP类型了。 | ||
type = DomainPanel.fetchTargetModel().domainType(Host); | ||
} | ||
} | ||
|
@@ -106,8 +106,9 @@ public void run() { | |
|
||
//第二步:处理HTTPS证书 | ||
if (type !=DomainManager.USELESS && protocol.equalsIgnoreCase("https")){//get related domains | ||
if (!httpsQueue.contains(shortURL)) {//httpService checked or not | ||
httpsQueue.put(shortURL);//必须先添加,否则执行在执行https链接的过程中,已经有很多请求通过检测进行相同的请求了。 | ||
if (BurpExtender.httpsChecked.add(shortURL)) {//httpService checked or not | ||
//如果set中已存在,返回false,如果不存在,返回true。 | ||
//必须先添加,否则执行在执行https链接的过程中,已经有很多请求通过检测进行相同的请求了。 | ||
Set<String> tmpDomains = CertInfo.getSANsbyKeyword(shortURL,DomainPanel.fetchTargetModel().fetchKeywordSet()); | ||
for (String domain:tmpDomains) { | ||
BurpExtender.getStdout().println("Target Related Asset Found :"+domain); | ||
|