1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-12-24 04:33:24 +00:00

Update security/metasploit to 4.10.2

Add new ports needed by this version:
security/rubygem-metasploit-concern
security/rubygem-metasploit-credential
security/rubygem-metasploit-model
security/rubygem-meterpreter_bins
security/rubygem-recog
This commit is contained in:
Antoine Brodin 2014-12-05 11:02:49 +00:00
parent 369ca89d17
commit 062a2f35e3
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=374007
21 changed files with 215 additions and 26 deletions

View File

@ -884,7 +884,11 @@
SUBDIR += rubygem-gssapi
SUBDIR += rubygem-hmac
SUBDIR += rubygem-jugyo-twitter_oauth
SUBDIR += rubygem-metasploit-concern
SUBDIR += rubygem-metasploit-credential
SUBDIR += rubygem-metasploit-model
SUBDIR += rubygem-metasploit_data_models
SUBDIR += rubygem-meterpreter_bins
SUBDIR += rubygem-net-scp
SUBDIR += rubygem-net-scp11
SUBDIR += rubygem-net-sftp
@ -898,6 +902,7 @@
SUBDIR += rubygem-pyu-ruby-sasl
SUBDIR += rubygem-razorback-scriptNugget
SUBDIR += rubygem-rc4
SUBDIR += rubygem-recog
SUBDIR += rubygem-roauth
SUBDIR += rubygem-ruby-hmac
SUBDIR += rubygem-six

View File

@ -2,11 +2,9 @@
# $FreeBSD$
PORTNAME= metasploit
PORTVERSION= 4.9.3
PORTREVISION= 1
PORTVERSION= 4.10.2
CATEGORIES= security
MASTER_SITES= http://downloads.metasploit.com/data/releases/archive/
DISTNAME= framework-${DISTVERSION}
MASTER_SITES= GH
MAINTAINER= tanawts@gmail.com
COMMENT= Exploit-Framework for Penetration-Testing
@ -14,22 +12,35 @@ COMMENT= Exploit-Framework for Penetration-Testing
RUN_DEPENDS= nasm:${PORTSDIR}/devel/nasm \
nmap:${PORTSDIR}/security/nmap \
rubygem-activesupport>=3.0.0:${PORTSDIR}/devel/rubygem-activesupport \
rubygem-bcrypt-ruby>=0:${PORTSDIR}/security/rubygem-bcrypt-ruby \
rubygem-actionpack>=0:${PORTSDIR}/www/rubygem-actionpack \
rubygem-bcrypt>=0:${PORTSDIR}/security/rubygem-bcrypt \
rubygem-bundler>=0:${PORTSDIR}/sysutils/rubygem-bundler \
rubygem-jsobfu>=0.2.0:${PORTSDIR}/www/rubygem-jsobfu \
rubygem-json>=0:${PORTSDIR}/devel/rubygem-json \
rubygem-metasploit-concern>=0.3.0:${PORTSDIR}/security/rubygem-metasploit-concern \
rubygem-metasploit-model>=0.28.0:${PORTSDIR}/security/rubygem-metasploit-model \
rubygem-meterpreter_bins>=0.0.11:${PORTSDIR}/security/rubygem-meterpreter_bins \
rubygem-msgpack>=0:${PORTSDIR}/devel/rubygem-msgpack \
rubygem-nokogiri>=0:${PORTSDIR}/textproc/rubygem-nokogiri \
rubygem-network_interface>=0.0.1:${PORTSDIR}/net/rubygem-network_interface \
rubygem-packetfu>=1.1.8:${PORTSDIR}/net/rubygem-packetfu \
rubygem-packetfu>=1.1.9:${PORTSDIR}/net/rubygem-packetfu \
rubygem-pcaprub>=0:${PORTSDIR}/net/rubygem-pcaprub \
rubygem-rkelly-remix>=0:${PORTSDIR}/www/rubygem-rkelly-remix \
rubygem-railties>=3.0.0:${PORTSDIR}/www/rubygem-railties \
rubygem-recog>=1.0:${PORTSDIR}/security/rubygem-recog \
rubygem-rb-readline>=0:${PORTSDIR}/devel/rubygem-rb-readline \
rubygem-robots>=0:${PORTSDIR}/www/rubygem-robots \
rubygem-sqlite3>=0:${PORTSDIR}/databases/rubygem-sqlite3
rubygem-rubyzip>=1.1:${PORTSDIR}/archivers/rubygem-rubyzip \
rubygem-sqlite3>=0:${PORTSDIR}/databases/rubygem-sqlite3 \
rubygem-tzinfo03>=0:${PORTSDIR}/devel/rubygem-tzinfo03
WRKSRC= ${WRKDIR}/msf3
SCRIPTS= msfbinscan msfcli msfconsole msfd msfelfscan msfencode \
msfmachscan msfpayload msfpescan msfrop msfrpc msfrpcd msfvenom
NO_BUILD= yes
USE_GITHUB= yes
GH_ACCOUNT= rapid7
GH_PROJECT= metasploit-framework
GH_COMMIT= 286827c
USES= ncurses:port tar:bzip2
USE_RUBY= yes
USE_RUBY_FEATURES= iconv
@ -38,27 +49,43 @@ OPTIONS_DEFINE= DB
OPTIONS_DEFAULT=DB
DB_DESC= Database support
DB_RUN_DEPENDS= rubygem-activerecord>=0:${PORTSDIR}/databases/rubygem-activerecord \
rubygem-metasploit_data_models>=0.17.0:${PORTSDIR}/security/rubygem-metasploit_data_models \
DB_RUN_DEPENDS= rubygem-activerecord>=3.0.0:${PORTSDIR}/databases/rubygem-activerecord \
rubygem-metasploit-credential>=0.13.3:${PORTSDIR}/security/rubygem-metasploit-credential \
rubygem-metasploit_data_models>=0.21.1:${PORTSDIR}/security/rubygem-metasploit_data_models \
rubygem-pg>=0.11:${PORTSDIR}/databases/rubygem-pg
.include <bsd.port.options.mk>
post-patch:
${REINPLACE_CMD} 's|bundler/setup|rubygems|' ${WRKSRC}/lib/msfenv.rb
${REINPLACE_CMD} 's,git ls-files,find . ! -type d ! -ipath "config/*" | sed "s|^./||", ; \
/packetfu/s/1.1.9/>= 1.1.9/' ${WRKSRC}/metasploit-framework.gemspec
do-build:
${RM} ${WRKSRC}/Gemfile.lock
${MKDIR} ${WRKSRC}/log
${TOUCH} ${WRKSRC}/Gemfile.lock ${WRKSRC}/log/production.log
${CHMOD} 666 ${WRKSRC}/Gemfile.lock ${WRKSRC}/log/production.log
${REINPLACE_CMD} '/^group :development/,/^end/d ; /^group :test/,/^end/d' \
${WRKSRC}/Gemfile
.if ! ${PORT_OPTIONS:MDB}
${REINPLACE_CMD} '/^group :db do/,/^end/d' ${WRKSRC}/Gemfile
.endif
do-install:
@${MKDIR} ${STAGEDIR}${DATADIR}
${CP} -Rp ${WRKSRC}/ ${STAGEDIR}${DATADIR}
.for f in ${SCRIPTS}
${LN} -s ${DATADIR}/${f} ${STAGEDIR}${PREFIX}/bin/${f}
${PRINTF} '#!/bin/sh\ncd ${DATADIR} && ./${f} "$$@"\n' > ${STAGEDIR}${PREFIX}/bin/${f}
${CHMOD} ${BINMODE} ${STAGEDIR}${PREFIX}/bin/${f}
.endfor
post-install:
.for f in ${SCRIPTS}
${ECHO} "bin/${f}" >> ${TMPPLIST}
.endfor
@${FIND} ${STAGEDIR}${DATADIR} -type f | ${SED} 's,${STAGEDIR}${PREFIX}/,,' >> ${TMPPLIST}
@${FIND} ${STAGEDIR}${DATADIR} -type l | ${SED} 's,${STAGEDIR}${PREFIX}/,,' >> ${TMPPLIST}
@${FIND} ${STAGEDIR}${DATADIR} -type d | ${SORT} -r | \
${SED} 's,${STAGEDIR}${PREFIX}/,, ; s,^,@dirrm ,' >> ${TMPPLIST}
@${FIND} ${STAGEDIR}${DATADIR} ! -type d | \
${SED} 's,${STAGEDIR}${PREFIX}/,,' >> ${TMPPLIST}
@${FIND} -ds ${STAGEDIR}${DATADIR} -type d -empty | \
${SED} 's,${STAGEDIR}${PREFIX}/,, ; s,^,@dir ,' >> ${TMPPLIST}
.include <bsd.port.mk>

View File

@ -1,2 +1,2 @@
SHA256 (framework-4.9.3.tar.bz2) = 76aa4651b8235a018ccb46b31974fa8785e3d16bd753ac34d66fa60468d304b3
SIZE (framework-4.9.3.tar.bz2) = 36334540
SHA256 (metasploit-4.10.2.tar.bz2) = d328cc6fb32ad19668a20c2d56bf6cffbcd4abe180d3a98c16143c7127bc37ff
SIZE (metasploit-4.10.2.tar.bz2) = 36965608

View File

@ -0,0 +1,23 @@
# $FreeBSD$
PORTNAME= metasploit-concern
PORTVERSION= 0.3.0
CATEGORIES= security rubygems
MASTER_SITES= RG
MAINTAINER= antoine@FreeBSD.org
COMMENT= Automatically include Modules from app/concerns
LICENSE= BSD3CLAUSE
LICENSE_FILE= ${WRKSRC}/LICENSE
RUN_DEPENDS= rubygem-activesupport>=3.0.0:${PORTSDIR}/devel/rubygem-activesupport \
rubygem-railties>=3.0.0:${PORTSDIR}/www/rubygem-railties
USE_RUBY= yes
USE_RUBYGEMS= yes
RUBYGEM_AUTOPLIST= yes
PORTSCOUT= ignore:1
.include <bsd.port.mk>

View File

@ -0,0 +1,2 @@
SHA256 (rubygem/metasploit-concern-0.3.0.gem) = fdc7313026bf6b0f208ab48f40fa81c25f0c2c529287dee4e2726c9aab6a0b5d
SIZE (rubygem/metasploit-concern-0.3.0.gem) = 12800

View File

@ -0,0 +1,6 @@
Metasploit::Concern allows you to define concerns in app/concerns that will
automatically be included in matching classes. It can be used to automate
adding new associations to ActiveRecord::Base models from gems and
Rails::Engines.
WWW: https://github.com/rapid7/metasploit-concern

View File

@ -0,0 +1,28 @@
# $FreeBSD$
PORTNAME= metasploit-credential
PORTVERSION= 0.13.3
CATEGORIES= security rubygems
MASTER_SITES= RG
MAINTAINER= antoine@FreeBSD.org
COMMENT= Credential models for metasploit-framework and Metasploit Pro
LICENSE= BSD3CLAUSE
LICENSE_FILE= ${WRKSRC}/LICENSE
RUN_DEPENDS= rubygem-metasploit-concern>=0.3.0:${PORTSDIR}/security/rubygem-metasploit-concern \
rubygem-metasploit_data_models>=0.21.0:${PORTSDIR}/security/rubygem-metasploit_data_models \
rubygem-metasploit-model>=0.28.0:${PORTSDIR}/security/rubygem-metasploit-model \
rubygem-pg>=0:${PORTSDIR}/databases/rubygem-pg \
rubygem-railties>=3.0.0:${PORTSDIR}/www/rubygem-railties \
rubygem-rubyntlm>=0:${PORTSDIR}/net/rubygem-rubyntlm \
rubygem-rubyzip>=1.1:${PORTSDIR}/archivers/rubygem-rubyzip
USE_RUBY= yes
USE_RUBYGEMS= yes
RUBYGEM_AUTOPLIST= yes
PORTSCOUT= ignore:1
.include <bsd.port.mk>

View File

@ -0,0 +1,2 @@
SHA256 (rubygem/metasploit-credential-0.13.3.gem) = 98a7d2db081f2c0bd0455483a9033fe750b68564e28adb11292893758b089eab
SIZE (rubygem/metasploit-credential-0.13.3.gem) = 4771840

View File

@ -0,0 +1,3 @@
The Metasploit::Credential namespace and its ActiveRecord::Base subclasses
WWW: https://github.com/rapid7/metasploit-credential

View File

@ -0,0 +1,23 @@
# $FreeBSD$
PORTNAME= metasploit-model
PORTVERSION= 0.28.0
CATEGORIES= security rubygems
MASTER_SITES= RG
MAINTAINER= antoine@FreeBSD.org
COMMENT= Metasploit Model Mixins and Validators
LICENSE= BSD3CLAUSE
LICENSE_FILE= ${WRKSRC}/LICENSE
RUN_DEPENDS= rubygem-activesupport>=0:${PORTSDIR}/devel/rubygem-activesupport \
rubygem-railties>=3.0.0:${PORTSDIR}/www/rubygem-railties
USE_RUBY= yes
USE_RUBYGEMS= yes
RUBYGEM_AUTOPLIST= yes
PORTSCOUT= ignore:1
.include <bsd.port.mk>

View File

@ -0,0 +1,2 @@
SHA256 (rubygem/metasploit-model-0.28.0.gem) = c6d8862a5923476e805ff52c4f9b1584a365f8a5a688f2c63802056e5aef2e9b
SIZE (rubygem/metasploit-model-0.28.0.gem) = 154624

View File

@ -0,0 +1,4 @@
Common code, such as validators and mixins, that are shared between ActiveModels
in metasploit-framework and ActiveRecords in metasploit_data_models.
WWW: https://github.com/rapid7/metasploit-model

View File

@ -1,7 +1,7 @@
# $FreeBSD$
PORTNAME= metasploit_data_models
PORTVERSION= 0.17.0
PORTVERSION= 0.21.2
PORTEPOCH= 2
CATEGORIES= security rubygems
MASTER_SITES= RG
@ -10,14 +10,20 @@ MAINTAINER= antoine@FreeBSD.org
COMMENT= Database layer for Metasploit
LICENSE= BSD3CLAUSE
LICENSE_FILE= ${WRKSRC}/LICENSE
RUN_DEPENDS= rubygem-activerecord>=3.2.13:${PORTSDIR}/databases/rubygem-activerecord \
rubygem-activesupport>=0:${PORTSDIR}/devel/rubygem-activesupport \
rubygem-pg>=0:${PORTSDIR}/databases/rubygem-pg
rubygem-arel-helpers>=0:${PORTSDIR}/databases/rubygem-arel-helpers \
rubygem-metasploit-concern>=0.3.0:${PORTSDIR}/security/rubygem-metasploit-concern \
rubygem-metasploit-model>=0.28.0:${PORTSDIR}/security/rubygem-metasploit-model \
rubygem-pg>=0:${PORTSDIR}/databases/rubygem-pg \
rubygem-railties>=3.0.0:${PORTSDIR}/www/rubygem-railties \
rubygem-recog>=1.0:${PORTSDIR}/security/rubygem-recog
USE_RUBY= yes
USE_RUBYGEMS= yes
RUBYGEM_AUTOPLIST=yes
RUBYGEM_AUTOPLIST= yes
PLIST_FILES= bin/mdm_console
PORTSCOUT= ignore:1

View File

@ -1,2 +1,2 @@
SHA256 (rubygem/metasploit_data_models-0.17.0.gem) = 6357b5902091276574b212d6b91902e559d9b3a28366a20eed5d43f42d63ab0a
SIZE (rubygem/metasploit_data_models-0.17.0.gem) = 98304
SHA256 (rubygem/metasploit_data_models-0.21.2.gem) = 50b54a457711bfa14129e2edfda3462ac74e003a9711b929dd817284aa5cb9a0
SIZE (rubygem/metasploit_data_models-0.21.2.gem) = 142336

View File

@ -8,4 +8,4 @@ developing tools that gather data intended for later use with Metasploit
- Make it easy to keep commercial stuff private while increasing the
functionality of the open-source tools we provide to the community
WWW: https://github.com/rapid7/metasploit_data_models/
WWW: https://github.com/rapid7/metasploit_data_models

View File

@ -0,0 +1,20 @@
# $FreeBSD$
PORTNAME= meterpreter_bins
PORTVERSION= 0.0.11
CATEGORIES= security rubygems
MASTER_SITES= RG
MAINTAINER= antoine@FreeBSD.org
COMMENT= Compiled binaries for Metasploit's Meterpreter
LICENSE= BSD3CLAUSE
LICENSE_FILE= ${WRKSRC}/LICENSE
USE_RUBY= yes
USE_RUBYGEMS= yes
RUBYGEM_AUTOPLIST= yes
PORTSCOUT= ignore:1
.include <bsd.port.mk>

View File

@ -0,0 +1,2 @@
SHA256 (rubygem/meterpreter_bins-0.0.11.gem) = 7801b497102b084beb4d7d2fd16c7b9ea2c057579e7f53a038a952dd835a7c8b
SIZE (rubygem/meterpreter_bins-0.0.11.gem) = 2940928

View File

@ -0,0 +1,3 @@
Compiled binaries for Metasploit's Meterpreter
WWW: https://github.com/rapid7/meterpreter

View File

@ -0,0 +1,25 @@
# $FreeBSD$
PORTNAME= recog
PORTVERSION= 1.0.5
CATEGORIES= security rubygems
MASTER_SITES= RG
MAINTAINER= antoine@FreeBSD.org
COMMENT= Framework for fingerprinting products
LICENSE= BSD2CLAUSE
LICENSE_FILE= ${WRKSRC}/LICENSE
RUN_DEPENDS= rubygem-nokogiri>=0:${PORTSDIR}/textproc/rubygem-nokogiri
USE_RUBY= yes
USE_RUBYGEMS= yes
RUBYGEM_AUTOPLIST= yes
PLIST_FILES= bin/recog_export.rb \
bin/recog_match.rb \
bin/recog_verify.rb
PORTSCOUT= ignore:1
.include <bsd.port.mk>

View File

@ -0,0 +1,2 @@
SHA256 (rubygem/recog-1.0.5.gem) = 0282c3fd2a0ef7061fbecae77ad75ec19a86e121ae1e82fc39003f47423ad9e4
SIZE (rubygem/recog-1.0.5.gem) = 169984

View File

@ -0,0 +1,6 @@
Recog is a framework for identifying products, services, operating systems, and
hardware by matching fingerprints against data returned from various network
probes. Recog makes it simply to extract useful information from web server
banners, snmp system description fields, and a whole lot more.
WWW: https://github.com/rapid7/recog