File tree Expand file tree Collapse file tree 1 file changed +3
-4
lines changed
spec/lib/msf/core/exploit/remote Expand file tree Collapse file tree 1 file changed +3
-4
lines changed Original file line number Diff line number Diff line change 36
36
let ( :expected_profile ) do
37
37
{
38
38
:source => 'script' ,
39
- :os_name => 'Microsoft Windows' ,
40
- :os_flavor => 'XP' ,
39
+ :os_name => 'Windows XP' ,
41
40
:ua_name => 'MSIE' ,
42
41
:ua_ver => '8.0' ,
43
42
:arch => 'x86' ,
210
209
211
210
describe "#extract_requirements" do
212
211
it "finds all the recognizable keys" do
213
- requirements = { :os_flavor => "XP" , :ua_name => "MSIE" , :ua_ver => "8.0" }
212
+ requirements = { :os_name => "Windows XP" , :ua_name => "MSIE" , :ua_ver => "8.0" }
214
213
matches = server . extract_requirements ( requirements )
215
214
expect ( matches ) . to eq ( requirements )
216
215
end
217
216
218
217
it "makes sure the keys are always symbols" do
219
- requirements = { 'os_flavor ' => "XP" , 'ua_name' => "MSIE" }
218
+ requirements = { 'os_name ' => "Windows XP" , 'ua_name' => "MSIE" }
220
219
matches = server . extract_requirements ( requirements )
221
220
matches . each do |k , v |
222
221
expect ( k . class ) . to eq ( Symbol )
You can’t perform that action at this time.
0 commit comments