public class VulnerabilitiesRepository
extends java.lang.Object
| Modifier and Type | Field and Description |
|---|---|
protected java.util.List<JsLibrary> |
jsLibrares |
| Constructor and Description |
|---|
VulnerabilitiesRepository() |
| Modifier and Type | Method and Description |
|---|---|
void |
addLibrary(JsLibrary lib) |
java.util.List<JsLibraryResult> |
findByFileContent(java.lang.String scriptContent)
This search mode will look for literal string specific to the vulnerable libraries.
|
java.util.List<JsLibraryResult> |
findByFilename(java.lang.String filename)
This search mode will identify the library by there filename.
|
java.util.List<JsLibraryResult> |
findByFunction(java.lang.String scriptContent)
This search mode will load the script in a sandbox and look for the presence of specific function.
|
java.util.List<JsLibraryResult> |
findByHash(java.lang.String hash) |
java.util.List<JsLibraryResult> |
findByUri(java.lang.String uri)
This search mode will identify the vulnerable library base on the full uri.
|
protected java.util.List<JsLibrary> jsLibrares
public void addLibrary(JsLibrary lib)
public java.util.List<JsLibraryResult> findByUri(java.lang.String uri)
uri - URI taken from a HTTP requestpublic java.util.List<JsLibraryResult> findByFilename(java.lang.String filename)
filename - Filename taken from an URIpublic java.util.List<JsLibraryResult> findByFileContent(java.lang.String scriptContent)
scriptContent - Complete content of the scriptpublic java.util.List<JsLibraryResult> findByHash(java.lang.String hash)
hash - Hash of the file to searchpublic java.util.List<JsLibraryResult> findByFunction(java.lang.String scriptContent)
scriptContent - Complete content of the scriptCopyright © 2021. All rights reserved.