Changed vuln data references to url
This commit is contained in:
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
@@ -159,7 +159,7 @@ def json(file)
|
||||
begin
|
||||
JSON.parse(content)
|
||||
rescue => e
|
||||
puts "[ERROR] In JSON file parsing #{e} #{e.backtrace}"
|
||||
#puts "[ERROR] In JSON file parsing #{e} #{e.backtrace}"
|
||||
end
|
||||
end
|
||||
|
||||
|
||||
@@ -46,10 +46,4 @@ class WpItem
|
||||
return false
|
||||
end
|
||||
end
|
||||
|
||||
# @return [ String ]
|
||||
def identifier
|
||||
@name
|
||||
end
|
||||
|
||||
end
|
||||
|
||||
@@ -11,5 +11,10 @@ class WpPlugin < WpItem
|
||||
@vulns_file
|
||||
end
|
||||
|
||||
# @return [ String ]
|
||||
def identifier
|
||||
@name
|
||||
end
|
||||
|
||||
end
|
||||
end
|
||||
|
||||
@@ -10,6 +10,10 @@ class WpTheme < WpItem
|
||||
end
|
||||
@vulns_file
|
||||
end
|
||||
|
||||
|
||||
# @return [ String ]
|
||||
def identifier
|
||||
@name
|
||||
end
|
||||
end
|
||||
end
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
{
|
||||
"id": "3911",
|
||||
"title": "Vuln Title",
|
||||
"references": "Ref 1,Ref 2",
|
||||
"url": "Ref 1,Ref 2",
|
||||
"secunia": "secunia",
|
||||
"osvdb": "osvdb",
|
||||
"cve": "2011-001",
|
||||
|
||||
@@ -5,7 +5,7 @@
|
||||
{
|
||||
"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",
|
||||
"url":"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"
|
||||
}
|
||||
@@ -18,7 +18,7 @@
|
||||
{
|
||||
"id":2993,
|
||||
"title":"I'm the one",
|
||||
"references":"Ref 1,Ref 2",
|
||||
"url":"Ref 1,Ref 2",
|
||||
"osvdb":"osvdb",
|
||||
"cve":"2011-001",
|
||||
"secunia":"secunia",
|
||||
|
||||
@@ -5,7 +5,7 @@
|
||||
{
|
||||
"id":2989,
|
||||
"title":"I should not appear in the results",
|
||||
"references":"Ref 1,Ref 2",
|
||||
"url":"Ref 1,Ref 2",
|
||||
"osvdb":"osvdb",
|
||||
"cve":"2011-001",
|
||||
"secunia":"secunia",
|
||||
@@ -19,7 +19,7 @@
|
||||
{
|
||||
"id":2989,
|
||||
"title":"Neither do I",
|
||||
"references":"Ref 1,Ref 2",
|
||||
"url":"Ref 1,Ref 2",
|
||||
"osvdb":"osvdb",
|
||||
"cve":"2011-001",
|
||||
"secunia":"secunia",
|
||||
@@ -39,7 +39,7 @@
|
||||
{
|
||||
"id":2993,
|
||||
"title":"Follow me!",
|
||||
"references":"Ref 1,Ref 2",
|
||||
"url":"Ref 1,Ref 2",
|
||||
"osvdb":"osvdb",
|
||||
"cve":"2011-001",
|
||||
"secunia":"secunia",
|
||||
|
||||
@@ -5,7 +5,7 @@
|
||||
{
|
||||
"id":2989,
|
||||
"title":"I should not appear in the results",
|
||||
"references":"Ref 1,Ref 2",
|
||||
"url":"Ref 1,Ref 2",
|
||||
"osvdb":"osvdb",
|
||||
"cve":"2011-001",
|
||||
"secunia":"secunia",
|
||||
@@ -19,7 +19,7 @@
|
||||
{
|
||||
"id":2989,
|
||||
"title":"Neither do I",
|
||||
"references":"Ref 1,Ref 2",
|
||||
"url":"Ref 1,Ref 2",
|
||||
"osvdb":"osvdb",
|
||||
"cve":"2011-001",
|
||||
"secunia":"secunia",
|
||||
@@ -39,7 +39,7 @@
|
||||
{
|
||||
"id":2993,
|
||||
"title":"I see you",
|
||||
"references":"Ref 1,Ref 2",
|
||||
"url":"Ref 1,Ref 2",
|
||||
"osvdb":"osvdb",
|
||||
"cve":"2011-001",
|
||||
"secunia":"secunia",
|
||||
|
||||
@@ -5,7 +5,7 @@
|
||||
{
|
||||
"id":2989,
|
||||
"title":"I should not appear in the results",
|
||||
"references":"Ref 1,Ref 2",
|
||||
"url":"Ref 1,Ref 2",
|
||||
"osvdb":"osvdb",
|
||||
"cve":"2011-001",
|
||||
"secunia":"secunia",
|
||||
@@ -25,7 +25,7 @@
|
||||
{
|
||||
"id":2993,
|
||||
"title":"Here I Am",
|
||||
"references":"Ref 1,Ref 2",
|
||||
"url":"Ref 1,Ref 2",
|
||||
"osvdb":"osvdb",
|
||||
"cve":"2011-001",
|
||||
"secunia":"secunia",
|
||||
|
||||
Reference in New Issue
Block a user