# $NetBSD: Makefile,v 1.8 2005/08/06 06:19:29 jlam Exp $ # DISTNAME= framework-2.4 PKGNAME= msf-2.4 PKGREVISION= 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 DIST_SUBDIR= ${PKGNAME} LICENSE= inlineegg-license MSFDIR?= ${PREFIX}/share/msf MSFDOC?= ${PREFIX}/share/doc/msf MESSAGE_SUBST+= MSFDIR=${MSFDIR} USE_TOOLS+= perl:run PERL_FILES= msfcli msfconsole msfencode msflogdump msfpayload \ msfpescan msfweb msfupdate msfelfscan REPLACE_PERL+= ${PERL_FILES} tools/socketNinja.pl sdk/formatGen.pl \ sdk/patternOffset.pl sdk/spitCode.pl src/shellcode/import.pl 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 \ payloads/external/inlineegg.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}/data/meterpreter ${INSTALL_DATA_DIR} ${MSFDIR}/data/msfweb ${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}/src ${INSTALL_DATA_DIR} ${MSFDIR}/tools ${INSTALL_DATA} ${WRKSRC}/docs/* ${MSFDIR}/docs ${INSTALL_PROGRAM} ${WRKSRC}/data/shelldemo ${MSFDIR}/data ${INSTALL_DATA} ${WRKSRC}/data/vncdll.dll ${MSFDIR}/data ${INSTALL_DATA} ${WRKSRC}/data/meterpreter/*.dll \ ${MSFDIR}/data/meterpreter ${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 cd ${WRKSRC}/data/msfweb && ${PAX} -rw . ${MSFDIR}/data/msfweb ${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"