File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed
modules/auxiliary/scanner/http Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -82,7 +82,7 @@ def do_list
82
82
end
83
83
84
84
tbl = Rex ::Text ::Table . new (
85
- 'Header' => full_uri ,
85
+ 'Header' => "Posts at #{ full_uri } (REST API: #{ get_rest_api } )" ,
86
86
'Columns' => %w{ ID Title URL Status Password }
87
87
)
88
88
@@ -208,10 +208,10 @@ def parse_rest_api(res)
208
208
209
209
if link =~ %r{^<(.*)>; rel="https://api\. w\. org/"$}
210
210
rest_api = route_rest_api ( $1)
211
- vprint_status ( " REST API ( Link header): #{ rest_api } " )
211
+ vprint_status ( ' REST API found in Link header' )
212
212
elsif ( xpath = html . at ( '//link[@rel = "https://api.w.org/"]/@href' ) )
213
213
rest_api = route_rest_api ( xpath )
214
- vprint_status ( " REST API ( HTML document): #{ rest_api } " )
214
+ vprint_status ( ' REST API found in HTML document' )
215
215
end
216
216
217
217
rest_api
You can’t perform that action at this time.
0 commit comments