|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.h3xstream.retirejs.repo.VulnerabilitiesRepository
public class VulnerabilitiesRepository
Class that hold the definition of all the libraries.
| Field Summary | |
|---|---|
protected List<JsLibrary> |
jsLibrares
|
| Constructor Summary | |
|---|---|
VulnerabilitiesRepository()
|
|
| Method Summary | |
|---|---|
void |
addLibrary(JsLibrary lib)
|
List<JsLibraryResult> |
findByFileContent(String scriptContent)
This search mode will look for literal string specific to the vulnerable libraries. |
List<JsLibraryResult> |
findByFilename(String filename)
This search mode will identify the library by there filename. |
List<JsLibraryResult> |
findByFunction(String scriptContent)
This search mode will load the script in a sandbox and look for the presence of specific function. |
List<JsLibraryResult> |
findByHash(String hash)
|
List<JsLibraryResult> |
findByUri(String uri)
This search mode will identify the vulnerable library base on the full uri. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected List<JsLibrary> jsLibrares
| Constructor Detail |
|---|
public VulnerabilitiesRepository()
| Method Detail |
|---|
public void addLibrary(JsLibrary lib)
public List<JsLibraryResult> findByUri(String uri)
uri - URI taken from a HTTP request
public List<JsLibraryResult> findByFilename(String filename)
filename - Filename taken from an URI
public List<JsLibraryResult> findByFileContent(String scriptContent)
scriptContent - Complete content of the script
public List<JsLibraryResult> findByHash(String hash)
hash - Hash of the file to search
public List<JsLibraryResult> findByFunction(String scriptContent)
scriptContent - Complete content of the script
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||