Skip to content

Commit faec584

Browse files
committed
Some fixes
1 parent f0048b9 commit faec584

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

modules/auxiliary/scanner/http/title.rb

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,8 @@ def initialize
2727
[
2828
OptBool.new('STORE_NOTES', [ true, 'Store the captured information in notes. Use "notes -t http.title" to view', true ]),
2929
OptBool.new('SHOW_ERRORS', [ true, 'Show error messages relating to grabbing titles on the console', true ]),
30-
OptBool.new('SHOW_TITLES', [ true, 'Show the titles on the console as they are grabbed', true ])
30+
OptBool.new('SHOW_TITLES', [ true, 'Show the titles on the console as they are grabbed', true ]),
31+
OptString.new('TARGETURI', [true, 'The base path', '/'])
3132
], self.class)
3233

3334
deregister_options('VHOST')
@@ -45,8 +46,7 @@ def run_host(target_host)
4546
begin
4647
# Send a normal GET request
4748
res = send_request_cgi(
48-
uri: '/',
49-
method: 'GET'
49+
'uri' => normalize_uri(target_uri.path)
5050
)
5151

5252
# If no response, quit now

0 commit comments

Comments
 (0)