Skip to content

Commit

Permalink
Land #1955 - mozilla_mchannel.rb undefined agent variable
Browse files Browse the repository at this point in the history
  • Loading branch information
wchen-r7 committed Jun 14, 2013
2 parents 223807d + 996171b commit d2df323
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion modules/exploits/windows/browser/mozilla_mchannel.rb
Original file line number Diff line number Diff line change
Expand Up @@ -110,10 +110,11 @@ def on_request_uri(cli, request)
js_ppppr = rand_text_alpha(rand(10) + 5)
js_filler = rand_text_alpha(rand(10) + 5)

agent = request.headers['User-Agent']

# Set target manually or automatically
my_target = target
if my_target.name == 'Automatic'
agent = request.headers['User-Agent']
if agent =~ /NT 5\.1/ and agent =~ /Firefox\/3\.6\.16/
my_target = targets[1]
elsif agent =~ /NT 6\.1/ and agent =~ /Firefox\/3\.6\.16/
Expand Down

0 comments on commit d2df323

Please sign in to comment.