diff --git a/spec/lib/msf/util/exe_spec.rb b/spec/lib/msf/util/exe_spec.rb index ace44a1564..5c7a4f7038 100644 --- a/spec/lib/msf/util/exe_spec.rb +++ b/spec/lib/msf/util/exe_spec.rb @@ -12,8 +12,6 @@ describe Msf::Util::EXE do described_class end - before { pending "Pending RM#8463, fix all these these tests up." } - $framework = Msf::Simple::Framework.create( :module_types => [ Msf::MODULE_NOP ], 'DisableDatabase' => true diff --git a/spec/support/shared/contexts/msf/util/exe.rb b/spec/support/shared/contexts/msf/util/exe.rb index b03a2444d7..9b86fe33c6 100644 --- a/spec/support/shared/contexts/msf/util/exe.rb +++ b/spec/support/shared/contexts/msf/util/exe.rb @@ -24,10 +24,10 @@ shared_context 'Msf::Util::Exe' do { :format => "loop-vbs", :arch => "x86_64", :file_fp => /ASCII/ }, { :format => "asp", :arch => "x86", :file_fp => /ASCII/ }, { :format => "asp", :arch => "x86_64", :file_fp => /ASCII/ }, - { :format => "aspx-exe", :arch => "x86", :file_fp => /ASCII/ }, - { :format => "aspx-exe", :arch => "x86_64", :file_fp => /ASCII/ }, - { :format => "aspx", :arch => "x86", :file_fp => /ASCII/ }, - { :format => "aspx", :arch => "x86_64", :file_fp => /ASCII/ }, + { :format => "aspx-exe", :arch => "x86", :file_fp => /(ASCII)|(HTML document text)/ }, + { :format => "aspx-exe", :arch => "x86_64", :file_fp => /(ASCII)|(HTML document text)/ }, + { :format => "aspx", :arch => "x86", :file_fp => /(ASCII)|(HTML document text)/ }, + { :format => "aspx", :arch => "x86_64", :file_fp => /(ASCII)|(HTML document text)/ }, { :format => "vba", :arch => "x86", :file_fp => /ASCII/ }, { :format => "vba", :arch => "x86_64", :file_fp => /ASCII/ }, { :format => "vba-exe", :arch => "x86", :file_fp => /ASCII/ }, @@ -38,12 +38,12 @@ shared_context 'Msf::Util::Exe' do { :format => "psh-net", :arch => "x86_64", :file_fp => /ASCII/ }, { :format => "war", :arch => "x86", :file_fp => /Zip/ }, { :format => "war", :arch => "x86_64", :file_fp => /Zip/ }, - { :format => "msi", :arch => "x86", :file_fp => /Composite Document/ }, - { :format => "msi", :arch => "x64", :file_fp => /Composite Document/ }, - { :format => "msi", :arch => "x86_64", :file_fp => /Composite Document/ }, - { :format => "msi-nouac", :arch => "x86", :file_fp => /Composite Document/ }, - { :format => "msi-nouac", :arch => "x64", :file_fp => /Composite Document/ }, - { :format => "msi-nouac", :arch => "x86_64", :file_fp => /Composite Document/ }, + { :format => "msi", :arch => "x86", :file_fp => /(Composite Document)|(CDF V2 Document)/ }, + { :format => "msi", :arch => "x64", :file_fp => /(Composite Document)|(CDF V2 Document)/ }, + { :format => "msi", :arch => "x86_64", :file_fp => /(Composite Document)|(CDF V2 Document)/ }, + { :format => "msi-nouac", :arch => "x86", :file_fp => /(Composite Document)|(CDF V2 Document)/ }, + { :format => "msi-nouac", :arch => "x64", :file_fp => /(Composite Document)|(CDF V2 Document)/ }, + { :format => "msi-nouac", :arch => "x86_64", :file_fp => /(Composite Document)|(CDF V2 Document)/ }, ], "linux" => [ { :format => "elf", :arch => "x86", :file_fp => /ELF 32.*SYSV/ },