Skip to content

Commit 0644200

Browse files
committed
Update diagnostics and print better header
1 parent 6df55c9 commit 0644200

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

modules/auxiliary/scanner/http/wordpress_content_injection.rb

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,7 @@ def do_list
8282
end
8383

8484
tbl = Rex::Text::Table.new(
85-
'Header' => full_uri,
85+
'Header' => "Posts at #{full_uri} (REST API: #{get_rest_api})",
8686
'Columns' => %w{ID Title URL Status Password}
8787
)
8888

@@ -208,10 +208,10 @@ def parse_rest_api(res)
208208

209209
if link =~ %r{^<(.*)>; rel="https://api\.w\.org/"$}
210210
rest_api = route_rest_api($1)
211-
vprint_status("REST API (Link header): #{rest_api}")
211+
vprint_status('REST API found in Link header')
212212
elsif (xpath = html.at('//link[@rel = "https://api.w.org/"]/@href'))
213213
rest_api = route_rest_api(xpath)
214-
vprint_status("REST API (HTML document): #{rest_api}")
214+
vprint_status('REST API found in HTML document')
215215
end
216216

217217
rest_api

0 commit comments

Comments
 (0)