File tree Expand file tree Collapse file tree 1 file changed +7
-3
lines changed
modules/exploits/windows/browser Expand file tree Collapse file tree 1 file changed +7
-3
lines changed Original file line number Diff line number Diff line change @@ -88,17 +88,21 @@ def junk(n=4)
88
88
def on_request_uri ( cli , request )
89
89
agent = request . headers [ 'User-Agent' ]
90
90
if agent !~ /Firefox\/ 3\. 6\. (16|17)/
91
- print_error ( "This browser is not supported: #{ agent . to_s } " )
91
+ print_error ( "This browser is not supported: #{ agent } " )
92
92
send_not_found ( cli )
93
93
return
94
94
end
95
95
96
96
my_target = target
97
97
if my_target . name == 'Automatic'
98
- if agent =~ /NT 5\. 1/ and agent =~ /Firefox\/ 3\. 6\. 16/
98
+ if agent =~ /NT 5\. 1/ && agent =~ /Firefox\/ 3\. 6\. 16/
99
99
my_target = targets [ 1 ]
100
- elsif agent =~ /NT 6\. 1/ and agent =~ /Firefox\/ 3\. 6\. 16/
100
+ elsif agent =~ /NT 6\. [01]/ && agent =~ /Firefox\/ 3\. 6\. 16/
101
101
my_target = targets [ 2 ]
102
+ else
103
+ print_error ( "This browser is not a viable target: #{ agent } " )
104
+ send_not_found ( cli )
105
+ return
102
106
end
103
107
end
104
108
You can’t perform that action at this time.
0 commit comments