Skip to content

Commit

Permalink
update to 1.1.1
Browse files Browse the repository at this point in the history
update to 1.1.1
  • Loading branch information
broken5 committed Oct 9, 2022
1 parent 860e302 commit e5daaed
Show file tree
Hide file tree
Showing 6 changed files with 181 additions and 137 deletions.
5 changes: 4 additions & 1 deletion build.gradle
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
version '1.1.0'
version '1.1.1'

buildscript {
ext.kotlin_version = '1.4.10'
Expand Down Expand Up @@ -58,4 +58,7 @@ compileKotlin {
}
compileTestKotlin {
kotlinOptions.jvmTarget = "1.8"
}
tasks.withType(JavaCompile) {
options.encoding = "UTF-8"
}
2 changes: 1 addition & 1 deletion src/burp/BurpExtender.java
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ public class BurpExtender implements IBurpExtender, ITab, IHttpListener{
public static Map<String,String> config = Config.getInitDatabaseSetting();
public static DomainConsumer domainConsumer = new DomainConsumer();
public static WebConsumer webConsumer = new WebConsumer();
public static final String VERSION = "1.1.0";
public static final String VERSION = "1.1.1";
public static final String EXTENSION_NAME = "Sylas";

@Override
Expand Down
17 changes: 16 additions & 1 deletion src/domain/DomainConsumer.java
Original file line number Diff line number Diff line change
@@ -1,6 +1,10 @@
package domain;

import burp.BurpExtender;
import ui.Sylas;
import utils.DbUtil;

import java.util.HashMap;

//负责将收集的域名信息写入数据库
public class DomainConsumer extends Thread {
Expand All @@ -12,8 +16,19 @@ public void run() {
try {
QueueToResult();
sleep(5000);
if(BurpExtender.db.mode == DbUtil.MYSQL_DB && BurpExtender.db.isConnect){
HashMap<String, HashMap<String, String>> map = BurpExtender.db.getSubDomainMap(BurpExtender.config.get("currentProject"));
for (String key : map.keySet()) {
if (!BurpExtender.subDomainMap.containsKey(key)) {
HashMap<String, String> domain = map.get(key);
BurpExtender.subDomainMap.put(key, domain);
BurpExtender.subDomainCount += 1;
Sylas.addSubDomainToUI(key, domain.get("ipAddress"), domain.get("createTime"));
}
}
}
} catch (Exception error) {
error.printStackTrace(BurpExtender.getStderr());
BurpExtender.getStderr().println(error);
}
}
}
Expand Down
11 changes: 11 additions & 0 deletions src/ui/NewProject.java
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,17 @@ private void addActionPerformed(ActionEvent e) {
}
break;
case DOMAIN_MODE:
if(item.contains(",")){
String[] arr = item.split(",");
for (int i=0;i<arr.length;i++){
if(!"".equals(arr[i]) && !BurpExtender.currentRootDomainSet.contains(arr[i]) && !list.contains(arr[i])){
list.addElement(arr[i]);
BurpExtender.currentRootDomainSet.add(arr[i]);
BurpExtender.db.addRootDomain(BurpExtender.config.get("currentProject"), arr[i]);
}
}
break;
}
if(!"".equals(item) && !BurpExtender.currentRootDomainSet.contains(item) && !list.contains(item)){
list.addElement(item);
BurpExtender.currentRootDomainSet.add(item);
Expand Down
Loading

0 comments on commit e5daaed

Please sign in to comment.