Work on json database file parsing, still needs some work.
This commit is contained in:
1
spec/samples/common/models/wp_item/vulnerable/empty.json
Normal file
1
spec/samples/common/models/wp_item/vulnerable/empty.json
Normal file
@@ -0,0 +1 @@
|
||||
{}
|
||||
@@ -1,5 +0,0 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
|
||||
<vulnerabilities>
|
||||
|
||||
</vulnerabilities>
|
||||
@@ -0,0 +1,35 @@
|
||||
[
|
||||
{
|
||||
"not-this-one":{
|
||||
"vulnerabilities":[
|
||||
{
|
||||
"id":2989,
|
||||
"title":"Administrator-exploitable blind SQLi in WordPress 1.0 - 3.8.1",
|
||||
"references":"https://security.dxw.com/advisories/sqli-in-wordpress-3-6-1/,http://www.example.com",
|
||||
"created_at":"2014-07-28T12:10:07.000Z",
|
||||
"updated_at":"2014-07-28T12:43:41.000Z"
|
||||
}
|
||||
]
|
||||
}
|
||||
},
|
||||
{
|
||||
"neo":{
|
||||
"vulnerabilities":[
|
||||
{
|
||||
"id":2993,
|
||||
"title":"I'm the one",
|
||||
"references":"Ref 1,Ref 2",
|
||||
"osvdb":"osvdb",
|
||||
"cve":"2011-001",
|
||||
"secunia":"secunia",
|
||||
"metasploit":"exploit/ex1",
|
||||
"exploitdb":"exploitdb",
|
||||
"type":"XSS",
|
||||
"fixed_in":"",
|
||||
"created_at":"2014-07-28T12:10:07.000Z",
|
||||
"updated_at":"2014-07-28T12:10:07.000Z"
|
||||
}
|
||||
]
|
||||
}
|
||||
}
|
||||
]
|
||||
@@ -1,37 +0,0 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
|
||||
<vulnerabilities>
|
||||
|
||||
<item name="not-this-one">
|
||||
<vulnerability>
|
||||
<title>I should not appear in the results</title>
|
||||
<references>
|
||||
<metasploit>exploit/ex1</metasploit>
|
||||
<url>Ref 1</url>
|
||||
<url>Ref 2</url>
|
||||
<cve>2011-001</cve>
|
||||
<secunia>secunia</secunia>
|
||||
<osvdb>osvdb</osvdb>
|
||||
<exploitdb>exploitdb</exploitdb>
|
||||
</references>
|
||||
<type>RFI</type>
|
||||
</vulnerability>
|
||||
</item>
|
||||
|
||||
<item name="neo">
|
||||
<vulnerability>
|
||||
<title>I'm the one</title>
|
||||
<references>
|
||||
<metasploit>exploit/ex1</metasploit>
|
||||
<url>Ref 1</url>
|
||||
<url>Ref 2</url>
|
||||
<cve>2011-001</cve>
|
||||
<secunia>secunia</secunia>
|
||||
<osvdb>osvdb</osvdb>
|
||||
<exploitdb>exploitdb</exploitdb>
|
||||
</references>
|
||||
<type>XSS</type>
|
||||
</vulnerability>
|
||||
</item>
|
||||
|
||||
</vulnerabilities>
|
||||
Reference in New Issue
Block a user