Skip to content
This repository was archived by the owner on Oct 14, 2020. It is now read-only.

Commit cc4e074

Browse files
authored
Merge pull request #98 from secureCodeBox/feature-wpscan-dashboard
Feature wpscan dashboard
2 parents 2f54f71 + 3abb9d1 commit cc4e074

File tree

4 files changed

+229
-2
lines changed

4 files changed

+229
-2
lines changed

hooks/persistence-elastic/dashboardImporter/dashboards/wordpress-overview.json

Lines changed: 218 additions & 0 deletions
Large diffs are not rendered by default.

hooks/persistence-elastic/dashboardImporter/export-dashboards.sh

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,4 +8,5 @@ exportDashboard() {
88
curl ${kibanaURL}/api/kibana/dashboards/export?dashboard=${id} > ./dashboards/${filename}
99
}
1010

11-
exportDashboard "daily-summary.json" "34c734b0-6e79-11ea-bdc0-35f8aa7c4664"
11+
exportDashboard "daily-summary.json" "34c734b0-6e79-11ea-bdc0-35f8aa7c4664"
12+
exportDashboard "wordpress-overview.json" "12b72880-fc09-11ea-a91c-5358dd402fdc"

scanners/wpscan/parser/parser.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@ async function parse(scanResults) {
2424
reference: {},
2525
confidence: wp.confidence,
2626
attributes: {
27+
hostname: targetUrl,
2728
ip_address: targetIp,
2829
wpscan_version: wpscanVersion,
2930
wpscan_requests: wpscanRequestsDone,
@@ -50,6 +51,7 @@ async function parse(scanResults) {
5051
confidence: interestingFinding.confidence,
5152
reference: {},
5253
attributes: {
54+
hostname: targetUrl,
5355
wp_interesting_entries: interestingFinding.interesting_entries,
5456
wp_found_by: interestingFinding.found_by,
5557
wp_confirmed_by: interestingFinding.confirmed_by

scanners/wpscan/parser/parser.test.js

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,7 @@ test("WPScan parser parses a successfull scan result with at least one informati
2727
Array [
2828
Object {
2929
"attributes": Object {
30+
"hostname": "https://www.example.com/",
3031
"ip_address": "192.168.200.100",
3132
"wp_confirmed_by": Object {},
3233
"wp_found_by": "Rss Generator (Passive Detection)",
@@ -52,6 +53,7 @@ test("WPScan parser parses a successfull scan result with at least one informati
5253
},
5354
Object {
5455
"attributes": Object {
56+
"hostname": "https://www.example.com/",
5557
"wp_confirmed_by": Object {},
5658
"wp_found_by": "Headers (Passive Detection)",
5759
"wp_interesting_entries": Array [
@@ -69,6 +71,7 @@ test("WPScan parser parses a successfull scan result with at least one informati
6971
},
7072
Object {
7173
"attributes": Object {
74+
"hostname": "https://www.example.com/",
7275
"wp_confirmed_by": Object {},
7376
"wp_found_by": "Robots Txt (Aggressive Detection)",
7477
"wp_interesting_entries": Array [
@@ -87,6 +90,7 @@ test("WPScan parser parses a successfull scan result with at least one informati
8790
},
8891
Object {
8992
"attributes": Object {
93+
"hostname": "https://www.example.com/",
9094
"wp_confirmed_by": Object {},
9195
"wp_found_by": "Direct Access (Aggressive Detection)",
9296
"wp_interesting_entries": Array [],
@@ -102,6 +106,7 @@ test("WPScan parser parses a successfull scan result with at least one informati
102106
},
103107
Object {
104108
"attributes": Object {
109+
"hostname": "https://www.example.com/",
105110
"wp_confirmed_by": Object {},
106111
"wp_found_by": "Direct Access (Aggressive Detection)",
107112
"wp_interesting_entries": Array [],
@@ -117,6 +122,7 @@ test("WPScan parser parses a successfull scan result with at least one informati
117122
},
118123
Object {
119124
"attributes": Object {
125+
"hostname": "https://www.example.com/",
120126
"wp_confirmed_by": Object {},
121127
"wp_found_by": "Direct Access (Aggressive Detection)",
122128
"wp_interesting_entries": Array [],
@@ -132,4 +138,4 @@ test("WPScan parser parses a successfull scan result with at least one informati
132138
},
133139
]
134140
`);
135-
});
141+
});

0 commit comments

Comments
 (0)