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

Commit 3abb9d1

Browse files
committed
Add hostname to wpscan snapshots
1 parent 77bb473 commit 3abb9d1

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

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)