Skip to content
This repository was archived by the owner on Oct 14, 2020. It is now read-only.
Merged
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

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
Expand Up @@ -8,4 +8,5 @@ exportDashboard() {
curl ${kibanaURL}/api/kibana/dashboards/export?dashboard=${id} > ./dashboards/${filename}
}

exportDashboard "daily-summary.json" "34c734b0-6e79-11ea-bdc0-35f8aa7c4664"
exportDashboard "daily-summary.json" "34c734b0-6e79-11ea-bdc0-35f8aa7c4664"
exportDashboard "wordpress-overview.json" "12b72880-fc09-11ea-a91c-5358dd402fdc"
2 changes: 2 additions & 0 deletions scanners/wpscan/parser/parser.js
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@ async function parse(scanResults) {
reference: {},
confidence: wp.confidence,
attributes: {
hostname: targetUrl,
ip_address: targetIp,
wpscan_version: wpscanVersion,
wpscan_requests: wpscanRequestsDone,
Expand All @@ -50,6 +51,7 @@ async function parse(scanResults) {
confidence: interestingFinding.confidence,
reference: {},
attributes: {
hostname: targetUrl,
wp_interesting_entries: interestingFinding.interesting_entries,
wp_found_by: interestingFinding.found_by,
wp_confirmed_by: interestingFinding.confirmed_by
Expand Down
8 changes: 7 additions & 1 deletion scanners/wpscan/parser/parser.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@ test("WPScan parser parses a successfull scan result with at least one informati
Array [
Object {
"attributes": Object {
"hostname": "https://www.example.com/",
"ip_address": "192.168.200.100",
"wp_confirmed_by": Object {},
"wp_found_by": "Rss Generator (Passive Detection)",
Expand All @@ -52,6 +53,7 @@ test("WPScan parser parses a successfull scan result with at least one informati
},
Object {
"attributes": Object {
"hostname": "https://www.example.com/",
"wp_confirmed_by": Object {},
"wp_found_by": "Headers (Passive Detection)",
"wp_interesting_entries": Array [
Expand All @@ -69,6 +71,7 @@ test("WPScan parser parses a successfull scan result with at least one informati
},
Object {
"attributes": Object {
"hostname": "https://www.example.com/",
"wp_confirmed_by": Object {},
"wp_found_by": "Robots Txt (Aggressive Detection)",
"wp_interesting_entries": Array [
Expand All @@ -87,6 +90,7 @@ test("WPScan parser parses a successfull scan result with at least one informati
},
Object {
"attributes": Object {
"hostname": "https://www.example.com/",
"wp_confirmed_by": Object {},
"wp_found_by": "Direct Access (Aggressive Detection)",
"wp_interesting_entries": Array [],
Expand All @@ -102,6 +106,7 @@ test("WPScan parser parses a successfull scan result with at least one informati
},
Object {
"attributes": Object {
"hostname": "https://www.example.com/",
"wp_confirmed_by": Object {},
"wp_found_by": "Direct Access (Aggressive Detection)",
"wp_interesting_entries": Array [],
Expand All @@ -117,6 +122,7 @@ test("WPScan parser parses a successfull scan result with at least one informati
},
Object {
"attributes": Object {
"hostname": "https://www.example.com/",
"wp_confirmed_by": Object {},
"wp_found_by": "Direct Access (Aggressive Detection)",
"wp_interesting_entries": Array [],
Expand All @@ -132,4 +138,4 @@ test("WPScan parser parses a successfull scan result with at least one informati
},
]
`);
});
});