rapid7/metasploit-framework — pull request #292 by syndrowm (2012-04-02 23:05:17+00:00)
Title: Exe support for solaris and bsd

Add functions and headers needed to create elf executables for bsd and solaris.

Reverse tcp payload executables tested on the follwing platforms.

SunOS unknown 5.10 Generic_137138-09 i86pc i386 i86pc
SunOS solaris11 5.11 11.0 i86pc i386 i86pc

Linux localhost 2.6.32.9-cm-stk #1 PREEMPT Tue Apr 12 15:55:10 CDT 2011 armv7l GNU/Linux
Linux ubuntu 3.0.0-12-generic #20-Ubuntu SMP Fri Oct 7 14:56:25 UTC 2011 x86_64 x86_64 x86_64 GNU/Linux
Linux bt 2.6.39.4 #1 SMP Thu Aug 18 13:38:02 NZST 2011 i686 GNU/Linux

FreeBSD fbsdvm 8.2-RELEASE FreeBSD 8.2-RELEASE #0: Fri Feb 18 02:24:46 UTC 2011 root@almeida.cse.buffalo.edu:/usr/obj/usr/src/sys/GENERIC i386
NetBSD 5.1.2 NetBSD 5.1.2 (GENERIC) #0: Thu Feb 2 17:22:10 UTC 2012 builds@b6.netbsd.org:/home/builds/ab/netbsd-5-1-2-RELEASE/i386/201202021012Z-obj/home/builds/ab/netbsd-5-1-2-RELEASE/src/sys/arch/i386/compile/GENERIC i386