rapid7/metasploit-framework — pull request #243 by kernelsmith (2012-03-17 01:21:24+00:00)
Title: added macho support to msfvenom and fixed overly aggressive regex

fixes http://dev.metasploit.com/redmine/issues/6535

adds macho support to msfvenom
While doing so, also found a subtle'ish regex problem at line 400 where:
when /ruby|rb|perl|pl|bash|sh|c|js_le|raw/i
matches macho, due to the |c|
changed that to |^c$| with this patch