diff options
author | adrianp <adrianp@pkgsrc.org> | 2004-10-19 16:38:22 +0000 |
---|---|---|
committer | adrianp <adrianp@pkgsrc.org> | 2004-10-19 16:38:22 +0000 |
commit | 887d7af91fcabbd7416c9bc8fd45baa291c6b8d1 (patch) | |
tree | e123316411a2561daf9379c5bc33b8fe438838c1 /security/msf/Makefile | |
parent | 120a2bda254bab0c9e40cdfc66c033ea0eeb74cd (diff) | |
download | pkgsrc-887d7af91fcabbd7416c9bc8fd45baa291c6b8d1.tar.gz |
The Metasploit Framework is an advanced open-source platform for developing,
testing, and using exploit code. This release includes 18 exploits and 27
payloads; many of these exploits are either the only ones publicly available
or just much more reliable than anything else out there. The Framework will
run on any modern system that has a working Perl interpreter, the Windows
installer includes a slimmed-down version of the Cygwin environment.
Diffstat (limited to 'security/msf/Makefile')
-rw-r--r-- | security/msf/Makefile | 84 |
1 files changed, 84 insertions, 0 deletions
diff --git a/security/msf/Makefile b/security/msf/Makefile new file mode 100644 index 00000000000..f94a9f6830c --- /dev/null +++ b/security/msf/Makefile @@ -0,0 +1,84 @@ +# $NetBSD: Makefile,v 1.1.1.1 2004/10/19 16:38:22 adrianp Exp $ +# + +DISTNAME= framework-2.2 +PKGNAME= msf-2.2 +CATEGORIES= security +MASTER_SITES= http://www.metasploit.com/tools/ + +MAINTAINER= adrianp@NetBSD.org +HOMEPAGE= http://www.metasploit.com/ +COMMENT= Platform for developing, testing, and using exploit code + +DEPENDS+= p5-Net-SSLeay>=1.23:../../security/p5-Net-SSLeay +DEPENDS+= p5-Term-ReadLine>=1.14:../../devel/p5-Term-ReadLine + +MSFDIR?= ${PREFIX}/share/msf +MSFDOC?= ${PREFIX}/share/doc/msf +MESSAGE_SUBST+= MSFDIR=${MSFDIR} + +PERL5_REQD= 5.6.0 +USE_PERL5= YES +PERL_FILES= msfcli msfconsole msfdldebug msfencode msflogdump msfpayload \ + msfpayload.cgi msfpescan msfweb msfupdate +REPLACE_PERL+= ${PERL_FILES} tools/socketNinja.pl sdk/formatGen.pl \ + sdk/patternOffset.pl sdk/spitCode.pl + +NO_BUILDLINK= YES +NO_BUILD= YES + +PKG_OPTIONS_VAR= PKG_OPTIONS.msf +PKG_SUPPORTED_OPTIONS= python + +.include "../../mk/bsd.options.mk" + +# add python support for external payloads +.if !empty(PKG_OPTIONS:Mpython) +PYTHON_PATCH_SCRIPTS= payloads/external/WindowsSyscall.py \ + payloads/external/bsdx86bind_ie.py \ + payloads/external/bsdx86reverse_ie.py \ + payloads/external/linx86bind_ie.py \ + payloads/external/linx86reverse_ie.py \ + payloads/external/linx86reverse_xor.py \ + payloads/external/win32_stg_winexec.py +.include "../../lang/python/application.mk" +.include "../../lang/python/extension.mk" +.endif + +do-install: + ${INSTALL_DATA_DIR} ${MSFDIR} + ${INSTALL_DATA_DIR} ${MSFDIR}/docs + ${INSTALL_DATA_DIR} ${MSFDIR}/data + ${INSTALL_DATA_DIR} ${MSFDIR}/encoders + ${INSTALL_DATA_DIR} ${MSFDIR}/exploits + ${INSTALL_DATA_DIR} ${MSFDIR}/extras + ${INSTALL_DATA_DIR} ${MSFDIR}/lib + ${INSTALL_DATA_DIR} ${MSFDIR}/nops + ${INSTALL_DATA_DIR} ${MSFDIR}/payloads + ${INSTALL_DATA_DIR} ${MSFDIR}/payloads/external + ${INSTALL_DATA_DIR} ${MSFDIR}/sdk + ${INSTALL_DATA_DIR} ${MSFDIR}/tools + ${INSTALL_DATA_DIR} ${MSFDIR}/src + + ${INSTALL_DATA} ${WRKSRC}/docs/* ${MSFDIR}/docs + ${INSTALL_DATA} ${WRKSRC}/data/* ${MSFDIR}/data + ${INSTALL_DATA} ${WRKSRC}/encoders/*.pm ${MSFDIR}/encoders + ${INSTALL_DATA} ${WRKSRC}/exploits/*.pm ${MSFDIR}/exploits + ${INSTALL_DATA} ${WRKSRC}/extras/*.tar.gz ${MSFDIR}/extras + + cd ${PREFIX}/share/doc && ${LN} -s ${MSFDIR}/docs msf + cd ${WRKSRC}/lib && ${PAX} -rw . ${MSFDIR}/lib + cd ${WRKSRC}/sdk && ${PAX} -rw . ${MSFDIR}/sdk + cd ${WRKSRC}/tools && ${PAX} -rw . ${MSFDIR}/tools + cd ${WRKSRC}/src && ${PAX} -rw . ${MSFDIR}/src + + ${INSTALL_DATA} ${WRKSRC}/nops/*.pm ${MSFDIR}/nops + ${INSTALL_DATA} ${WRKSRC}/payloads/*.pm ${MSFDIR}/payloads + ${INSTALL_DATA} ${WRKSRC}/payloads/external/*.py \ + ${MSFDIR}/payloads/external + + cd ${WRKSRC}; for f in ${PERL_FILES}; do \ + ${INSTALL_SCRIPT} $$f ${MSFDIR}; \ + done + +.include "../../mk/bsd.pkg.mk" |