summaryrefslogtreecommitdiff
path: root/network
diff options
context:
space:
mode:
authorMarco Bonetti <sid77@slackware.it>2010-05-12 23:32:09 +0200
committerDavid Somero <xgizzmo@slackbuilds.org>2010-05-12 23:32:09 +0200
commit45728f38d448465622702a671a70fcecbac5b321 (patch)
tree3326d74396a01a273cd692b85b59d6a4599d150e /network
parentaf3d39d47ade672310f0914a98343274d0842336 (diff)
downloadslackbuilds-45728f38d448465622702a671a70fcecbac5b321.tar.gz
network/framework: Added to 12.2 repository
Diffstat (limited to 'network')
-rw-r--r--network/framework/README20
-rw-r--r--network/framework/framework.SlackBuild70
-rw-r--r--network/framework/framework.info8
-rw-r--r--network/framework/slack-desc19
4 files changed, 117 insertions, 0 deletions
diff --git a/network/framework/README b/network/framework/README
new file mode 100644
index 0000000000..b8e95701c2
--- /dev/null
+++ b/network/framework/README
@@ -0,0 +1,20 @@
+The Metasploit Framework is a development platform for creating
+security tools and exploits. The framework is used by network
+security professionals to perform penetration tests, system
+administrators to verify patch installations, product vendors to
+perform regression testing, and security researchers world-wide.
+The framework is written in the Ruby programming language and
+includes components written in C and assembler.
+
+This is just a repackaged version of the tarball you get from the
+Metasploit download page. To succesfully run the framework web
+interface, install the rubygems package (avalaible on SlackBuilds.org)
+and then get the Ruby On Rails gem via the commannd:
+
+# gem install -v=1.2.2 rails
+
+If you want to use the Autopwn feature of metasploit, install the
+PostgreSQL database server (also avalaible on SlackBuilds.org) and
+create a "metasploit3" database.
+Finally, if you want to run the selfupdate feature, be sure you
+have subversion installed.
diff --git a/network/framework/framework.SlackBuild b/network/framework/framework.SlackBuild
new file mode 100644
index 0000000000..11520b0cf8
--- /dev/null
+++ b/network/framework/framework.SlackBuild
@@ -0,0 +1,70 @@
+#!/bin/sh
+
+# Slackware build script for Metasploit Framework
+#
+# Copyright 2009-2010 Marco Bonetti <sid77@slackware.it>
+# All rights reserved.
+#
+# Redistribution and use of this script, with or without modification, is
+# permitted provided that the following conditions are met:
+#
+# 1. Redistributions of this script must retain the above copyright
+# notice, this list of conditions and the following disclaimer.
+#
+# THIS SOFTWARE IS PROVIDED BY THE AUTHOR ''AS IS'' AND ANY EXPRESS OR IMPLIED
+# WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
+# MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO
+# EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
+# SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
+# PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS;
+# OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
+# WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR
+# OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF
+# ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+
+PRGNAM=framework
+VERSION=${VERSION:-3.2}
+ARCH=${ARCH:-noarch}
+BUILD=${BUILD:-1}
+TAG=${TAG:-_SBo}
+
+CWD=$(pwd)
+TMP=${TMP:-/tmp/SBo}
+PKG=$TMP/package-$PRGNAM
+OUTPUT=${OUTPUT:-/tmp}
+
+set -e
+
+rm -rf $PKG
+mkdir -p $TMP $PKG $OUTPUT
+
+# Install the framework in /opt
+mkdir -p $PKG/opt
+tar xvf $CWD/$PRGNAM-$VERSION.tar.gz -C $PKG/opt
+cd $PKG/opt/$PRGNAM-$VERSION
+chown -R root:root .
+find . \
+ \( -perm 777 -o -perm 775 -o -perm 711 -o -perm 555 -o -perm 511 \) \
+ -exec chmod 755 {} \; -o \
+ \( -perm 666 -o -perm 664 -o -perm 600 -o -perm 444 -o -perm 440 -o -perm 400 \) \
+ -exec chmod 644 {} \;
+
+# According to the framework user guide is ok to just link the binaries
+mkdir -p $PKG/usr/bin
+( cd $PKG/usr/bin
+ for file in $(ls ../../opt/$PRGNAM-$VERSION/msf*); do
+ ln -sf $file $(basename $file)
+ done
+)
+
+# Every useful doc is included inside the framework folder, just copy over the
+# README which contains the important copyright disclaimer
+mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION
+cp -a $PKG/opt/$PRGNAM-$VERSION/README $PKG/usr/doc/$PRGNAM-$VERSION
+cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild
+
+mkdir -p $PKG/install
+cat $CWD/slack-desc > $PKG/install/slack-desc
+
+cd $PKG
+/sbin/makepkg -l y -c n $OUTPUT/$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.tgz
diff --git a/network/framework/framework.info b/network/framework/framework.info
new file mode 100644
index 0000000000..e6fa44f7e0
--- /dev/null
+++ b/network/framework/framework.info
@@ -0,0 +1,8 @@
+PRGNAM="framework"
+VERSION="3.2"
+HOMEPAGE="http://metasploit.com/framework/"
+DOWNLOAD="http://spool.metasploit.com/releases/framework-3.2.tar.gz"
+MD5SUM="d543bda031b36a247912aa9c6a0f74d9"
+MAINTAINER="Marco Bonetti"
+EMAIL="sid77@slackware.it"
+APPROVED="dsomero"
diff --git a/network/framework/slack-desc b/network/framework/slack-desc
new file mode 100644
index 0000000000..da99fab2d1
--- /dev/null
+++ b/network/framework/slack-desc
@@ -0,0 +1,19 @@
+# HOW TO EDIT THIS FILE:
+# The "handy ruler" below makes it easier to edit a package description. Line
+# up the first '|' above the ':' following the base package name, and the '|'
+# on the right side marks the last column you can put a character in. You must
+# make exactly 11 lines for the formatting to be correct. It's also
+# customary to leave one space after the ':'.
+
+ |-----handy-ruler------------------------------------------------------|
+framework: The Metasploit Framework (http://metasploit/framework/)
+framework:
+framework: The Metasploit Framework is a development platform for creating
+framework: security tools and exploits. The framework is used by network
+framework: security professionals to perform penetration tests, system
+framework: administrators to verify patch installations, product vendors to
+framework: perform regression testing, and security researchers world-wide.
+framework: The framework is written in the Ruby programming language and
+framework: includes components written in C and assembler.
+framework:
+framework: