-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Showing
55 changed files
with
5,363 additions
and
0 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
# Created by .ignore support plugin (hsz.mobi) | ||
### Java template | ||
# Compiled class file | ||
*.class | ||
*.jar | ||
*.db | ||
|
||
# BlueJ files | ||
*.ctxt | ||
|
||
### IntelliJ IDEA ### | ||
.idea | ||
*.iws | ||
*.iml | ||
*.ipr | ||
|
||
### NetBeans ### | ||
/nbproject/private/ | ||
/nbbuild/ | ||
/dist/ | ||
/nbdist/ | ||
/.nb-gradle/ | ||
build/ | ||
|
||
### VS Code ### | ||
.vscode/ | ||
/.mvn/ | ||
config.properties | ||
*.log | ||
/target |
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 |
---|---|---|
@@ -0,0 +1,21 @@ | ||
MIT License | ||
|
||
Copyright (c) 2021 Wolf Group Security Team | ||
|
||
Permission is hereby granted, free of charge, to any person obtaining a copy | ||
of this software and associated documentation files (the "Software"), to deal | ||
in the Software without restriction, including without limitation the rights | ||
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell | ||
copies of the Software, and to permit persons to whom the Software is | ||
furnished to do so, subject to the following conditions: | ||
|
||
The above copyright notice and this permission notice shall be included in all | ||
copies or substantial portions of the Software. | ||
|
||
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR | ||
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, | ||
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE | ||
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER | ||
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, | ||
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE | ||
SOFTWARE. |
Binary file not shown.
Binary file not shown.
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 |
---|---|---|
@@ -0,0 +1,105 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<project xmlns="http://maven.apache.org/POM/4.0.0" | ||
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" | ||
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> | ||
<modelVersion>4.0.0</modelVersion> | ||
|
||
<groupId>org.fofaviewer</groupId> | ||
<artifactId>fofa_viewer</artifactId> | ||
<version>1.0-SNAPSHOT</version> | ||
|
||
<properties> | ||
<maven.compiler.source>8</maven.compiler.source> | ||
<maven.compiler.target>8</maven.compiler.target> | ||
</properties> | ||
<dependencies> | ||
<dependency> | ||
<groupId>org.jsoup</groupId> | ||
<artifactId>jsoup</artifactId> | ||
<version>1.15.3</version> | ||
</dependency> | ||
<dependency> | ||
<groupId>commons-codec</groupId> | ||
<artifactId>commons-codec</artifactId> | ||
<version>1.15</version> | ||
</dependency> | ||
<dependency> | ||
<groupId>me.gv7.woodpecker</groupId> | ||
<artifactId>woodpecker-requests</artifactId> | ||
<version>0.2.0</version> | ||
</dependency> | ||
<dependency> | ||
<groupId>com.alibaba</groupId> | ||
<artifactId>fastjson</artifactId> | ||
<version>2.0.15</version> | ||
</dependency> | ||
<dependency> | ||
<groupId>com.google.guava</groupId> | ||
<artifactId>guava</artifactId> | ||
<version>30.1-jre</version> | ||
</dependency> | ||
<dependency> | ||
<groupId>org.controlsfx</groupId> | ||
<artifactId>controlsfx</artifactId> | ||
<version>8.40.18</version> | ||
</dependency> | ||
<dependency> | ||
<groupId>com.alibaba</groupId> | ||
<artifactId>easyexcel</artifactId> | ||
<version>2.2.10</version> | ||
</dependency> | ||
<dependency> | ||
<groupId>org.projectlombok</groupId> | ||
<artifactId>lombok</artifactId> | ||
<version>RELEASE</version> | ||
<scope>compile</scope> | ||
</dependency> | ||
<dependency> | ||
<groupId>org.tinylog</groupId> | ||
<artifactId>tinylog-api</artifactId> | ||
<version>2.4.1</version> | ||
</dependency> | ||
<dependency> | ||
<groupId>org.tinylog</groupId> | ||
<artifactId>tinylog-impl</artifactId> | ||
<version>2.4.1</version> | ||
</dependency> | ||
<dependency> | ||
<groupId>org.xerial</groupId> | ||
<artifactId>sqlite-jdbc</artifactId> | ||
<version>3.36.0.3</version> | ||
</dependency> | ||
<dependency> | ||
<groupId>org.openjfx</groupId> | ||
<artifactId>javafx-controls</artifactId> | ||
<version>11.0.2</version> | ||
</dependency> | ||
<dependency> | ||
<groupId>org.openjfx</groupId> | ||
<artifactId>javafx-fxml</artifactId> | ||
<version>11.0.2</version> | ||
</dependency> | ||
</dependencies> | ||
<build> | ||
<finalName>fofaviewer</finalName> | ||
<plugins> | ||
<plugin> | ||
<groupId>org.apache.maven.plugins</groupId> | ||
<artifactId>maven-assembly-plugin</artifactId> | ||
<configuration> | ||
<archive> | ||
<manifest> | ||
<!--指定入口文件的位置--> | ||
<mainClass>org.fofaviewer.main.MainApp</mainClass> | ||
</manifest> | ||
</archive> | ||
<descriptorRefs> | ||
<descriptorRef> | ||
jar-with-dependencies | ||
</descriptorRef> | ||
</descriptorRefs> | ||
</configuration> | ||
</plugin><plugin><groupId>org.apache.maven.plugins</groupId><artifactId>maven-compiler-plugin</artifactId><configuration><source>8</source><target>8</target></configuration></plugin> | ||
</plugins> | ||
</build> | ||
</project> |
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 |
---|---|---|
@@ -0,0 +1,3 @@ | ||
Manifest-Version: 1.0 | ||
Main-Class: org.fofaviewer.main.Mainstart | ||
|
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 |
---|---|---|
@@ -0,0 +1,4 @@ | ||
package org.fofaviewer.bean; | ||
|
||
public class BaseBean { | ||
} |
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 |
---|---|---|
@@ -0,0 +1,66 @@ | ||
package org.fofaviewer.bean; | ||
|
||
import lombok.EqualsAndHashCode; | ||
import lombok.Getter; | ||
import lombok.Setter; | ||
import java.util.Objects; | ||
|
||
@Getter | ||
@Setter | ||
@EqualsAndHashCode | ||
public class ExcelBean extends BaseBean { | ||
private String host; | ||
private String title; | ||
private String domain; | ||
|
||
private String certCN; | ||
|
||
private String ip; | ||
|
||
private Integer port; | ||
|
||
private String protocol; | ||
|
||
private String server; | ||
|
||
private String fid; | ||
|
||
public ExcelBean(String host, String title, String ip, String domain, Integer port, String protocol, String server, String fid, String certCN) { | ||
this.host = host; | ||
this.title = title; | ||
this.ip = ip; | ||
this.domain = domain; | ||
this.port = port; | ||
this.protocol = protocol; | ||
this.server = server; | ||
this.fid = fid; | ||
this.certCN = certCN; | ||
} | ||
|
||
@Override | ||
public boolean equals(Object obj) { | ||
if (!(obj instanceof ExcelBean)) | ||
return false; | ||
if (this == obj) | ||
return true; | ||
ExcelBean instance = (ExcelBean) obj; | ||
boolean port = this.port.equals(instance.port); | ||
boolean host = this.host.equals(instance.host); | ||
if(port){ | ||
if(this.port == 443 && (this.host.contains(":443") || instance.host.contains(":443"))){ | ||
host = true; | ||
} | ||
if(this.port == 80 && (this.host.contains(":80") || instance.host.contains(":80"))){ | ||
host = true; | ||
} | ||
} | ||
boolean ip = this.ip.equals(instance.ip); | ||
|
||
return host && ip && port; | ||
} | ||
|
||
@Override | ||
public int hashCode() { | ||
return Objects.hash(ip, port); | ||
} | ||
} |
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 |
---|---|---|
@@ -0,0 +1,57 @@ | ||
package org.fofaviewer.bean; | ||
|
||
import javafx.scene.control.Tab; | ||
import org.fofaviewer.request.RequestStatus; | ||
|
||
import java.util.HashMap; | ||
|
||
public class RequestBean { | ||
private String requestUrl; | ||
private String tabTitle; | ||
private String size; | ||
private Tab tab; | ||
private RequestStatus requestStatus = RequestStatus.READY; | ||
private HashMap<String, String> result; | ||
|
||
public RequestBean(String requestUrl, String tabTitle, String size) { | ||
this.requestUrl = requestUrl; | ||
this.tabTitle = tabTitle; | ||
this.size = size; | ||
} | ||
|
||
public Tab getTab() { | ||
return tab; | ||
} | ||
|
||
public void setTab(Tab tab) { | ||
this.tab = tab; | ||
} | ||
|
||
public String getRequestUrl() { | ||
return requestUrl; | ||
} | ||
|
||
public String getTabTitle() { | ||
return tabTitle; | ||
} | ||
|
||
public RequestStatus getRequestStatus() { | ||
return requestStatus; | ||
} | ||
|
||
public void setRequestStatus(RequestStatus requestStatus) { | ||
this.requestStatus = requestStatus; | ||
} | ||
|
||
public void setResult(HashMap<String, String> result) { | ||
this.result = result; | ||
} | ||
|
||
public HashMap<String, String> getResult() { | ||
return result; | ||
} | ||
|
||
public String getSize() { | ||
return size; | ||
} | ||
} |
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 |
---|---|---|
@@ -0,0 +1,34 @@ | ||
package org.fofaviewer.bean; | ||
import java.util.HashSet; | ||
|
||
public class TabDataBean { | ||
/** | ||
* 查询条件对应tab页中已加载的数量 | ||
*/ | ||
public int count; | ||
/** | ||
* 查询条件对应tab页可获取的总数 | ||
*/ | ||
public int total; | ||
/** | ||
* 导出查询条件对应tab页中的url,用于后续扫描 | ||
*/ | ||
public HashSet<String> dataList; | ||
/** | ||
* 是否还有未加载的数据 | ||
*/ | ||
public boolean hasMoreData = true; | ||
/** | ||
* 当前已加载的页数 | ||
*/ | ||
public int page = 1; | ||
|
||
public TabDataBean(int count, HashSet<String> dataList) { | ||
this.count = count; | ||
this.dataList = dataList; | ||
} | ||
public TabDataBean(){ | ||
this.count = 0; | ||
this.dataList = new HashSet<>(); | ||
} | ||
} |
Oops, something went wrong.