File tree Expand file tree Collapse file tree
spec/lib/msf/core/exploit/remote Expand file tree Collapse file tree Original file line number Diff line number Diff line change 3636 let ( :expected_profile ) do
3737 {
3838 :source => 'script' ,
39- :os_name => 'Microsoft Windows' ,
40- :os_flavor => 'XP' ,
39+ :os_name => 'Windows XP' ,
4140 :ua_name => 'MSIE' ,
4241 :ua_ver => '8.0' ,
4342 :arch => 'x86' ,
210209
211210 describe "#extract_requirements" do
212211 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" }
214213 matches = server . extract_requirements ( requirements )
215214 expect ( matches ) . to eq ( requirements )
216215 end
217216
218217 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" }
220219 matches = server . extract_requirements ( requirements )
221220 matches . each do |k , v |
222221 expect ( k . class ) . to eq ( Symbol )
You can’t perform that action at this time.
0 commit comments