Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 14 additions & 1 deletion pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@

<properties>
<java.version>1.8</java.version>
<versions.java-security-toolkit>1.0.7</versions.java-security-toolkit>
</properties>
Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This library holds security tools for protecting Java API calls.

License: MIT ✅ | Open source ✅ | No transitive dependencies ✅ | More facts


<dependencies>
Expand Down Expand Up @@ -65,6 +66,10 @@
<version>0.10.5</version>
<scope>runtime</scope>
</dependency>
<dependency>
<groupId>io.github.pixee</groupId>
<artifactId>java-security-toolkit</artifactId>
</dependency>
</dependencies>

<build>
Expand All @@ -75,5 +80,13 @@
</plugin>
</plugins>
</build>

<dependencyManagement>
<dependencies>
<dependency>
<groupId>io.github.pixee</groupId>
<artifactId>java-security-toolkit</artifactId>
<version>${versions.java-security-toolkit}</version>
</dependency>
</dependencies>
</dependencyManagement>
</project>
4 changes: 3 additions & 1 deletion src/main/java/com/scalesec/vulnado/LinkLister.java
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
package com.scalesec.vulnado;

import io.github.pixee.security.HostValidator;
import io.github.pixee.security.Urls;
import org.jsoup.Jsoup;
import org.jsoup.nodes.Document;
import org.jsoup.nodes.Element;
Expand All @@ -23,7 +25,7 @@ public static List<String> getLinks(String url) throws IOException {

public static List<String> getLinksV2(String url) throws BadRequest {
try {
URL aUrl= new URL(url);
URL aUrl= Urls.create(url, Urls.HTTP_PROTOCOLS, HostValidator.DENY_COMMON_INFRASTRUCTURE_TARGETS);
String host = aUrl.getHost();
System.out.println(host);
if (host.startsWith("172.") || host.startsWith("192.168") || host.startsWith("10.")){
Expand Down