Skip to content

Commit 11ca1a7

Browse files
committed
Fixing security holes
1 parent 2023dce commit 11ca1a7

File tree

80 files changed

+501
-422
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

80 files changed

+501
-422
lines changed

.gitignore

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,10 @@
1+
# target
2+
target/
13
# idea
24
.idea/
35
# Compiled class file
46
*.class
7+
.DS_Store
58

69
# Log file
710
*.log

README.md

Lines changed: 38 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
# fofa-java
2+
23
[![GitHub (pre-)release](https://img.shields.io/github/release/0nise/fofa-java/all.svg)](https://github.com/0nise/fofa-java/releases)
34
[![stars](https://img.shields.io/github/stars/0nise/fofa-java.svg)](https://github.com/0nise/fofa-java/stargazers)
45
[![license](https://img.shields.io/github/license/0nise/fofa-java.svg)](https://github.com/0nise/fofa-java/blob/master/LICENSE)
@@ -10,58 +11,80 @@
1011
## FOFA SDK
1112
A `Java` version of the `SDK`, based on the [`FOFA Pro API`](https://fofa.so/api), makes it easy for Java developers to quickly integrate [`FOFA Pro`](https://fofa.so) into their projects.
1213
## add dependency
14+
1315
### Apache Maven
16+
1417
```
1518
<dependency>
1619
<groupId>com.r4v3zn.fofa</groupId>
1720
<artifactId>fofa-core</artifactId>
18-
<version>1.0.0</version>
21+
<version>1.0.2.RELEASE</version>
1922
</dependency>
2023
```
24+
2125
### Gradle Groovy DSL
26+
2227
```java
23-
implementation 'com.r4v3zn.fofa:fofa-core:1.0.0'
28+
implementation 'com.r4v3zn.fofa:fofa-core:1.0.2.RELEASE'
2429
```
30+
2531
### Gradle Kotlin DSL
32+
2633
```java
27-
compile("com.r4v3zn.fofa:fofa-core:1.0.0")
34+
implementation("com.r4v3zn.fofa:fofa-core:1.0.2.RELEASE")
2835
```
36+
2937
### Scala SBT
38+
3039
```java
31-
libraryDependencies += "com.r4v3zn.fofa" % "fofa-core" % "1.0.0"
40+
libraryDependencies += "com.r4v3zn.fofa" % "fofa-core" % "1.0.2.RELEASE"
3241
```
42+
3343
### Apache Ivy
44+
3445
```java
35-
<dependency org="com.r4v3zn.fofa" name="fofa-core" rev="1.0.0" />
46+
<dependency org="com.r4v3zn.fofa" name="fofa-core" rev="1.0.2.RELEASE" />
3647
```
48+
3749
### Groovy Grape
50+
3851
```java
3952
@Grapes(
40-
@Grab(group='com.r4v3zn.fofa', module='fofa-core', version='1.0.0')
53+
@Grab(group='com.r4v3zn.fofa', module='fofa-core', version='1.0.2.RELEASE')
4154
)
4255
```
56+
4357
### Leiningen
58+
4459
```java
45-
[com.r4v3zn.fofa/fofa-core "1.0.0"]
60+
[com.r4v3zn.fofa/fofa-core "1.0.2.RELEASE"]
4661
```
62+
4763
### Apache Buildr
64+
4865
```java
49-
'com.r4v3zn.fofa:fofa-core:jar:1.0.0'
66+
'com.r4v3zn.fofa:fofa-core:jar:1.0.2.RELEASE'
5067
```
68+
5169
### Maven Central Badge
70+
5271
```java
5372
[![Maven Central](https://img.shields.io/maven-central/v/com.r4v3zn.fofa/fofa-core.svg?label=Maven%20Central)](https://search.maven.org/search?q=g:%22com.r4v3zn.fofa%22%20AND%20a:%22fofa-core%22)
5473
```
74+
5575
### PURL
76+
5677
```java
57-
pkg:maven/com.r4v3zn.fofa/fofa-core@1.0.0
78+
pkg:maven/com.r4v3zn.fofa/fofa-core@1.0.2.RELEASE
5879
```
80+
5981
### Bazel
82+
6083
```java
6184
maven_jar(
6285
name = "fofa-core",
63-
artifact = "com.r4v3zn.fofa:fofa-core:1.0.0",
64-
sha1 = "93b888a1d1c42c696f60f246585609d66f72eb8b",
86+
artifact = "com.r4v3zn.fofa:fofa-core:1.0.2.RELEASE",
87+
sha1 = "669cac1d690068d60a8e9968d86340b8769810cb",
6588
)
6689
```
6790

@@ -109,6 +132,10 @@ FofaData{mode='extended', page=1, size=8578, totalPage=86, query='app="Solr"', r
109132

110133
## Update Log
111134

135+
2020-04-27
136+
137+
- Fixing security holes
138+
112139
2020-01-04
113140

114141
- Fixing security holes

README_zh.md

Lines changed: 43 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,70 +1,98 @@
11
# fofa-java
2+
23
[![GitHub (pre-)release](https://img.shields.io/github/release/fofapro/fofa-java/all.svg)](https://github.com/0nise/fofa-java/releases)
34
[![stars](https://img.shields.io/github/stars/fofapro/fofa-java.svg)](https://github.com/0nise/fofa-java/stargazers)
45
[![license](https://img.shields.io/github/license/fofapro/fofa-java.svg)](https://github.com/0nise/fofa-java/blob/master/LICENSE)
56

67
[English document](https://github.com/0nise/fofa-java/blob/master/README.md)
78

89
## FOFA Pro API
10+
911
[`FOFA Pro API`](https://fofa.so/api) 是资产搜索引擎 [`FOFA Pro`](https://fofa.so) 为开发者提供的 `RESTful API` 接口, 允许开发者在自己的项目中集成 [`FOFA Pro`](https://fofa.so) 的功能。
12+
1013
## FOFA SDK
14+
1115
基于 [`FOFA Pro API`](https://fofa.so/api) 编写的 `java``SDK`, 方便 java 开发者快速将 [`FOFA Pro`](https://fofa.so) 集成到自己的项目中。
16+
1217
## 添加依赖
18+
1319
### Apache Maven
20+
1421
```
1522
<dependency>
1623
<groupId>com.r4v3zn.fofa</groupId>
1724
<artifactId>fofa-core</artifactId>
18-
<version>1.0.0</version>
25+
<version>1.0.2.RELEASE</version>
1926
</dependency>
2027
```
28+
2129
### Gradle Groovy DSL
30+
2231
```java
23-
implementation 'com.r4v3zn.fofa:fofa-core:1.0.0'
32+
implementation 'com.r4v3zn.fofa:fofa-core:1.0.2.RELEASE'
2433
```
34+
2535
### Gradle Kotlin DSL
36+
2637
```java
27-
compile("com.r4v3zn.fofa:fofa-core:1.0.0")
38+
implementation("com.r4v3zn.fofa:fofa-core:1.0.2.RELEASE")
2839
```
40+
2941
### Scala SBT
42+
3043
```java
31-
libraryDependencies += "com.r4v3zn.fofa" % "fofa-core" % "1.0.0"
44+
libraryDependencies += "com.r4v3zn.fofa" % "fofa-core" % "1.0.2.RELEASE"
3245
```
46+
3347
### Apache Ivy
48+
3449
```java
35-
<dependency org="com.r4v3zn.fofa" name="fofa-core" rev="1.0.0" />
50+
<dependency org="com.r4v3zn.fofa" name="fofa-core" rev="1.0.2.RELEASE" />
3651
```
52+
3753
### Groovy Grape
54+
3855
```java
3956
@Grapes(
40-
@Grab(group='com.r4v3zn.fofa', module='fofa-core', version='1.0.0')
57+
@Grab(group='com.r4v3zn.fofa', module='fofa-core', version='1.0.2.RELEASE')
4158
)
4259
```
60+
4361
### Leiningen
62+
4463
```java
45-
[com.r4v3zn.fofa/fofa-core "1.0.0"]
64+
[com.r4v3zn.fofa/fofa-core "1.0.2.RELEASE"]
4665
```
66+
4767
### Apache Buildr
68+
4869
```java
49-
'com.r4v3zn.fofa:fofa-core:jar:1.0.0'
70+
'com.r4v3zn.fofa:fofa-core:jar:1.0.2.RELEASE'
5071
```
72+
5173
### Maven Central Badge
74+
5275
```java
5376
[![Maven Central](https://img.shields.io/maven-central/v/com.r4v3zn.fofa/fofa-core.svg?label=Maven%20Central)](https://search.maven.org/search?q=g:%22com.r4v3zn.fofa%22%20AND%20a:%22fofa-core%22)
5477
```
78+
5579
### PURL
80+
5681
```java
57-
pkg:maven/com.r4v3zn.fofa/fofa-core@1.0.0
82+
pkg:maven/com.r4v3zn.fofa/fofa-core@1.0.2.RELEASE
5883
```
84+
5985
### Bazel
86+
6087
```java
6188
maven_jar(
6289
name = "fofa-core",
63-
artifact = "com.r4v3zn.fofa:fofa-core:1.0.0",
64-
sha1 = "93b888a1d1c42c696f60f246585609d66f72eb8b",
90+
artifact = "com.r4v3zn.fofa:fofa-core:1.0.2.RELEASE",
91+
sha1 = "669cac1d690068d60a8e9968d86340b8769810cb",
6592
)
6693
```
6794

95+
6896
## 使用
6997

7098
|字段名称|描述|
@@ -109,6 +137,10 @@ FofaData{mode='extended', page=1, size=8578, totalPage=86, query='app="Solr"', r
109137

110138
## 更新日志
111139

140+
2020-04-27
141+
142+
- 修复安全漏洞
143+
112144
2020-01-04
113145

114146
- 修复安全漏洞

fofa-core.iml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,14 +5,13 @@
55
<output-test url="file://$MODULE_DIR$/target/test-classes" />
66
<content url="file://$MODULE_DIR$">
77
<sourceFolder url="file://$MODULE_DIR$/src/main/java" isTestSource="false" />
8-
<sourceFolder url="file://$MODULE_DIR$/src/main/resources" type="java-resource" />
98
<sourceFolder url="file://$MODULE_DIR$/src/test/java" isTestSource="true" />
109
<excludeFolder url="file://$MODULE_DIR$/target" />
1110
</content>
1211
<orderEntry type="inheritedJdk" />
1312
<orderEntry type="sourceFolder" forTests="false" />
1413
<orderEntry type="library" name="Maven: com.fasterxml.jackson.core:jackson-core:2.9.9" level="project" />
15-
<orderEntry type="library" name="Maven: com.fasterxml.jackson.core:jackson-databind:2.9.10.1" level="project" />
14+
<orderEntry type="library" name="Maven: com.fasterxml.jackson.core:jackson-databind:2.9.10.4" level="project" />
1615
<orderEntry type="library" name="Maven: com.fasterxml.jackson.core:jackson-annotations:2.9.10" level="project" />
1716
</component>
1817
</module>

pom.xml

Lines changed: 16 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,19 @@
11
<?xml version="1.0" encoding="UTF-8"?>
2+
<!--
3+
~ Copyright (c) 2019. r4v3zn.
4+
~ Licensed under the Apache License, Version 2.0 (the "License");
5+
~ you may not use this file except in compliance with the License.
6+
~ You may obtain a copy of the License at
7+
~
8+
~ http://www.apache.org/licenses/LICENSE-2.0
9+
~
10+
~ Unless required by applicable law or agreed to in writing, software
11+
~ distributed under the License is distributed on an "AS IS" BASIS,
12+
~ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13+
~ See the License for the specific language governing permissions and
14+
~ limitations under the License.
15+
-->
16+
217
<project xmlns="http://maven.apache.org/POM/4.0.0"
318
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
419
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
@@ -20,7 +35,7 @@
2035
</plugin>
2136
</plugins>
2237
</build>
23-
<version>1.0.1.RELEASE</version>
38+
<version>1.0.2.RELEASE</version>
2439
<licenses>
2540
<license>
2641
<name>The Apache Software License, Version 2.0</name>

src/main/java/com/r4v3zn/fofa/core/DO/FofaData.java

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,18 @@
1+
/*
2+
* Copyright (c) 2019. r4v3zn.
3+
* Licensed under the Apache License, Version 2.0 (the "License");
4+
* you may not use this file except in compliance with the License.
5+
* You may obtain a copy of the License at
6+
*
7+
* http://www.apache.org/licenses/LICENSE-2.0
8+
*
9+
* Unless required by applicable law or agreed to in writing, software
10+
* distributed under the License is distributed on an "AS IS" BASIS,
11+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12+
* See the License for the specific language governing permissions and
13+
* limitations under the License.
14+
*/
15+
116
package com.r4v3zn.fofa.core.DO;
217

318
import java.util.List;

src/main/java/com/r4v3zn/fofa/core/DO/User.java

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,18 @@
1+
/*
2+
* Copyright (c) 2019. r4v3zn.
3+
* Licensed under the Apache License, Version 2.0 (the "License");
4+
* you may not use this file except in compliance with the License.
5+
* You may obtain a copy of the License at
6+
*
7+
* http://www.apache.org/licenses/LICENSE-2.0
8+
*
9+
* Unless required by applicable law or agreed to in writing, software
10+
* distributed under the License is distributed on an "AS IS" BASIS,
11+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12+
* See the License for the specific language governing permissions and
13+
* limitations under the License.
14+
*/
15+
116
package com.r4v3zn.fofa.core.DO;
217

318
import com.r4v3zn.fofa.core.enmus.UserVipLevelEnum;

src/main/java/com/r4v3zn/fofa/core/DO/UserLogin.java

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,18 @@
1+
/*
2+
* Copyright (c) 2019. r4v3zn.
3+
* Licensed under the Apache License, Version 2.0 (the "License");
4+
* you may not use this file except in compliance with the License.
5+
* You may obtain a copy of the License at
6+
*
7+
* http://www.apache.org/licenses/LICENSE-2.0
8+
*
9+
* Unless required by applicable law or agreed to in writing, software
10+
* distributed under the License is distributed on an "AS IS" BASIS,
11+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12+
* See the License for the specific language governing permissions and
13+
* limitations under the License.
14+
*/
15+
116
package com.r4v3zn.fofa.core.DO;
217

318
/**

src/main/java/com/r4v3zn/fofa/core/client/FofaClient.java

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,18 @@
1+
/*
2+
* Copyright (c) 2019. r4v3zn.
3+
* Licensed under the Apache License, Version 2.0 (the "License");
4+
* you may not use this file except in compliance with the License.
5+
* You may obtain a copy of the License at
6+
*
7+
* http://www.apache.org/licenses/LICENSE-2.0
8+
*
9+
* Unless required by applicable law or agreed to in writing, software
10+
* distributed under the License is distributed on an "AS IS" BASIS,
11+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12+
* See the License for the specific language governing permissions and
13+
* limitations under the License.
14+
*/
15+
116
package com.r4v3zn.fofa.core.client;
217

318
import com.fasterxml.jackson.databind.JsonNode;

src/main/java/com/r4v3zn/fofa/core/constants/FofaClientConsts.java

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,18 @@
1+
/*
2+
* Copyright (c) 2019. r4v3zn.
3+
* Licensed under the Apache License, Version 2.0 (the "License");
4+
* you may not use this file except in compliance with the License.
5+
* You may obtain a copy of the License at
6+
*
7+
* http://www.apache.org/licenses/LICENSE-2.0
8+
*
9+
* Unless required by applicable law or agreed to in writing, software
10+
* distributed under the License is distributed on an "AS IS" BASIS,
11+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12+
* See the License for the specific language governing permissions and
13+
* limitations under the License.
14+
*/
15+
116
package com.r4v3zn.fofa.core.constants;
217

318
/**

0 commit comments

Comments
 (0)