diff --git a/pom.xml b/pom.xml
index 89a82fd8..7feb3fbe 100644
--- a/pom.xml
+++ b/pom.xml
@@ -33,6 +33,7 @@
**/Deprecated/**
**/test/**
+ **/toElastic/**
@@ -93,10 +94,11 @@
burp-extender-api
[1.7.22,)
+
com.github.bit4woo
- burp-api-common
- master-SNAPSHOT
+ java_utilbox
+ main-SNAPSHOT
@@ -136,7 +138,7 @@
org.xerial
sqlite-jdbc
- 3.36.0.1
+ 3.41.2.2
@@ -176,35 +178,35 @@
2.0b6
-
+
-
+
-
+
-
+
org.apache.lucene
lucene-core
diff --git a/src/ASN/ASNEntry.java b/src/ASN/ASNEntry.java
index 2358f559..2368111e 100644
--- a/src/ASN/ASNEntry.java
+++ b/src/ASN/ASNEntry.java
@@ -4,7 +4,7 @@
import inet.ipaddr.IPAddress;
import inet.ipaddr.IPAddressSeqRange;
import inet.ipaddr.IPAddressString;
-import utils.IPAddressUtils;
+import com.bit4woo.utilbox.utils.IPAddressUtils;
import org.apache.commons.lang3.StringUtils;
import java.util.List;
@@ -139,7 +139,7 @@ public boolean contains(String IP){
try {
String start = prefix.split("-")[0];
String end = prefix.split("-")[1];
- return IPAddressUtils.checkIPIsInGivenRange(IP,start,end);//
+ return IPAddressUtils.IsInRange(IP,start,end);//
} catch (AddressStringException e) {
e.printStackTrace();
return false;
diff --git a/src/ASN/ASNQuery.java b/src/ASN/ASNQuery.java
index 75ddb199..526871c1 100644
--- a/src/ASN/ASNQuery.java
+++ b/src/ASN/ASNQuery.java
@@ -17,7 +17,7 @@
import com.github.kevinsawicki.http.HttpRequest;
import burp.BurpExtender;
-import utils.IPAddressUtils;
+import com.bit4woo.utilbox.utils.IPAddressUtils;
public class ASNQuery {
public static final String localdir =
@@ -200,7 +200,7 @@ private static void batchQueryFromApi(List ipSet){
* @return ASNEntry{asn='3215', asname_long='AS3215', asname_short='', prefix='2.0.0.0-2.15.255.255', geo='FR'}
*/
public ASNEntry query(String singleIP){
- if (IPAddressUtils.isValidIP(singleIP)){
+ if (IPAddressUtils.isValidIPv4NoPort(singleIP)){
//1.从缓存查询
ASNEntry result = queryFromRecent(singleIP);
//2.从本地数据库文件查询
diff --git a/src/Deprecated/DirBruterProducer.java b/src/Deprecated/DirBruterProducer.java
index a687ddc2..b6baab1a 100644
--- a/src/Deprecated/DirBruterProducer.java
+++ b/src/Deprecated/DirBruterProducer.java
@@ -71,7 +71,7 @@ public void run() {
IHttpRequestResponse messageinfo = callbacks.makeHttpRequest(service, request);
int leftTaskNum = pathDict.size();
stdout.println(String.format("%s tasks left, Runner Checking: %s",leftTaskNum,url.toString()));
- Getter getter = new Getter(helpers);
+ HelperPlus getter = BurpExtender.getHelperPlus();
if (messageinfo !=null) {
byte[] response = messageinfo.getResponse();
int status = getter.getStatusCode(messageinfo);
diff --git a/src/Deprecated/GatewayBypassChecker.java b/src/Deprecated/GatewayBypassChecker.java
index 7d3998ce..cece8575 100644
--- a/src/Deprecated/GatewayBypassChecker.java
+++ b/src/Deprecated/GatewayBypassChecker.java
@@ -28,7 +28,7 @@ public class GatewayBypassChecker extends Thread {//Producer do
public PrintWriter stdout = new PrintWriter(callbacks.getStdout(), true);
public PrintWriter stderr = new PrintWriter(callbacks.getStderr(), true);
public IExtensionHelpers helpers = callbacks.getHelpers();
- public HelperPlus getter = new HelperPlus(helpers);
+ public HelperPlus getter = BurpExtender.getHelperPlus();
LineTableModel runnerTableModel;
diff --git a/src/Deprecated/RootDomainForBrute.java b/src/Deprecated/RootDomainForBrute.java
index f73150bb..8fe4f2d2 100644
--- a/src/Deprecated/RootDomainForBrute.java
+++ b/src/Deprecated/RootDomainForBrute.java
@@ -71,7 +71,7 @@ public HashMap> query(String domain){
HashMap> result = new HashMap();
for (String server:nameServers){
try {
- result = DomainNameUtils.dnsquery(domain,server);
+ result = DomainUtils.dnsquery(domain,server);
return result;
}catch (Exception e){
;//do nothing
diff --git a/src/Deprecated/ThreadBruteDomain.java b/src/Deprecated/ThreadBruteDomain.java
index a0444554..db344939 100644
--- a/src/Deprecated/ThreadBruteDomain.java
+++ b/src/Deprecated/ThreadBruteDomain.java
@@ -63,7 +63,7 @@ public void Do(){
stdout.println("checking wildcard DNS record");
for (String rootDomain: rootDomains){
String badDomain = "domain-hunter-pro-test."+rootDomain;
- Set ipset = DomainNameUtils.dnsquery(badDomain).get("IP");
+ Set ipset = DomainUtils.dnsquery(badDomain).get("IP");
badRecords.put(rootDomain,ipset);
}
diff --git a/src/InternetSearch/APISearchAction.java b/src/InternetSearch/APISearchAction.java
index 6e816785..07f08942 100644
--- a/src/InternetSearch/APISearchAction.java
+++ b/src/InternetSearch/APISearchAction.java
@@ -4,23 +4,31 @@
import java.io.PrintWriter;
import java.util.ArrayList;
import java.util.Collections;
+import java.util.HashSet;
import java.util.List;
import java.util.Map;
+import java.util.Set;
import javax.swing.AbstractAction;
import javax.swing.Action;
+import javax.swing.JOptionPane;
import javax.swing.SwingWorker;
import javax.swing.table.AbstractTableModel;
-import InternetSearch.Client.*;
import org.apache.commons.lang3.StringUtils;
+import com.bit4woo.utilbox.utils.IPAddressUtils;
+
+import InternetSearch.Client.FoFaClient;
+import InternetSearch.Client.HunterClient;
+import InternetSearch.Client.HunterIoClient;
+import InternetSearch.Client.QuakeClient;
+import InternetSearch.Client.ShodanClient;
+import InternetSearch.Client.ZoomEyeClient;
import burp.BurpExtender;
-import burp.IPAddressUtils;
import domain.DomainManager;
import domain.target.TargetTableModel;
import title.LineTableModel;
-import utils.GrepUtils;
public class APISearchAction extends AbstractAction {
@@ -84,8 +92,9 @@ public final void actionPerformed(ActionEvent e) {
SwingWorker