Skip to content

Commit

Permalink
10.26
Browse files Browse the repository at this point in the history
源代码
  • Loading branch information
thebatmanfuture committed Oct 25, 2023
1 parent 54451c3 commit 88a09b1
Show file tree
Hide file tree
Showing 55 changed files with 5,363 additions and 0 deletions.
30 changes: 30 additions & 0 deletions .gitignore
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
21 changes: 21 additions & 0 deletions LICENSE
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 removed fofa_search.zip
Binary file not shown.
Binary file added fofa_viewer.icns
Binary file not shown.
105 changes: 105 additions & 0 deletions pom.xml
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>
3 changes: 3 additions & 0 deletions src/main/java/META-INF/MANIFEST.MF
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
Manifest-Version: 1.0
Main-Class: org.fofaviewer.main.Mainstart

4 changes: 4 additions & 0 deletions src/main/java/org/fofaviewer/bean/BaseBean.java
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
package org.fofaviewer.bean;

public class BaseBean {
}
66 changes: 66 additions & 0 deletions src/main/java/org/fofaviewer/bean/ExcelBean.java
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);
}
}
57 changes: 57 additions & 0 deletions src/main/java/org/fofaviewer/bean/RequestBean.java
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;
}
}
34 changes: 34 additions & 0 deletions src/main/java/org/fofaviewer/bean/TabDataBean.java
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<>();
}
}
Loading

0 comments on commit 88a09b1

Please sign in to comment.