From 55147d9bdea857fc8ccc562b26ffbb1fe86bdf72 Mon Sep 17 00:00:00 2001 From: James Lee Date: Tue, 6 Aug 2013 14:00:35 -0500 Subject: [PATCH] Fix regex to work on OSX's file(1) --- spec/support/shared/contexts/msf/util/exe.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/spec/support/shared/contexts/msf/util/exe.rb b/spec/support/shared/contexts/msf/util/exe.rb index 06f8cfd883..02dcd83d5e 100644 --- a/spec/support/shared/contexts/msf/util/exe.rb +++ b/spec/support/shared/contexts/msf/util/exe.rb @@ -32,7 +32,7 @@ shared_context 'Msf::Util::Exe' do "osx" => [ { :format => "macho", :arch => "x86", :file_fp => /Mach-O.*i386/ }, { :format => "macho", :arch => "x64", :file_fp => /Mach-O 64/ }, - { :format => "macho", :arch => "armle", :file_fp => /Mach-O.*acorn/ }, + { :format => "macho", :arch => "armle", :file_fp => /Mach-O.*(acorn|arm)/ }, { :format => "macho", :arch => "ppc", :file_fp => /Mach-O.*ppc/ }, ], }