mirror of
https://github.com/pentoo/pentoo-overlay
synced 2026-04-19 13:20:57 +02:00
wifi-pumpkin: keep it as a template, upstream is unable to keep up with decent deps: python3/qt5
This commit is contained in:
parent
f15ce95d1e
commit
b2a39b222a
8 changed files with 10 additions and 283 deletions
|
|
@ -1,4 +1 @@
|
|||
DIST wifi-pumpkin-0.7.8.tar.gz 3210268 BLAKE2B 4b2f50e76e65ea4047d1d6cc5e613eeb583bb0d6349fb73391b2a5ed9672b670007fb5544bc235caea0ed904c6195bad9912100dd844cd078564c43643d66da3 SHA512 35e8e6040ee87cb4545d587649c75517e0771ba63c40ed5f291c044711c2d29e10bd06e0af4031efc723a671a5a7736eb13d3c0fbf430fc8d4c4782be26a7a8b
|
||||
DIST wifi-pumpkin-0.8.4.tar.gz 3924775 BLAKE2B a5e3707e4a77d471a9d253f4d66abb5da6ae4b2b7e6144afe7b2347a1adc6bea7f4aef8b91a5f36273da67de5a17c78fe6f2d37cadc69dd20e1d7e24112dc04d SHA512 9f8c0889cecf4d106d559436940c1e07db26a9f9f06cc78e7eae111838484a1a3aaf49a055b1b3fc8dbd17ac6ae24cbde666b69b4eaf94ccd5543ccb894ced94
|
||||
DIST wifi-pumpkin-0.8.5.tar.gz 3855311 BLAKE2B 082afcdf1765a16c1efe55ab4118bba3e8aa9d2b91e160e0ac3bbcba450318b92a9ae15573781df49d6e711442d4ed1401cf53d458ce965e615c5418c928b222 SHA512 1dd48a871050f368e1f744ad8174f2c152a3391e6ce61035e2fbf690d08c32f2dff1d8357cd3b1c62cd3592287300e63acba989bc352ef2ebd169f4b07e67b8a
|
||||
DIST wifi-pumpkin-0.8.7.tar.gz 8145662 BLAKE2B 8d139001127171cc7210771e1a177adeaa911337f585c0767ac3064dd72e242a5bebff4345d0be1d0c7f5e10d23d59a041e3dc726f6fb6254ca6911f17a75324 SHA512 70d8fd08e072fc699314cb6ad87e51ca2109113fce5918c423ccc5e4c03bae602050240ed38647414d197fafd2f7b984c98b9d30c1249a3e858db2fdb567b4ff
|
||||
DIST wifi-pumpkin-0.8.8.tar.gz 9293343 BLAKE2B fdb9aa3b989944cb3b31f6b28a7e487ba7a6815e03e2ded333dc6257ade3ba892397f21c54e1f9013561e9badb74fe30090b3614175d12a89c33f1b2d45899cd SHA512 657ec4e582cc190fa2c9170bd9872193c91a96b5f0735a40252b8fed4b572d8781b61b58f4c2295391aace5217f87db11694cc88c549aac899f887df8696d51f
|
||||
|
|
|
|||
|
|
@ -1,24 +0,0 @@
|
|||
--- core/loaders/checker/check_depen.py.orig 2016-07-17 07:01:33.000000000 +0800
|
||||
+++ core/loaders/checker/check_depen.py 2016-07-19 15:32:48.233392703 +0800
|
||||
@@ -1,6 +1,7 @@
|
||||
#coding: utf-8
|
||||
from core.utility.collection import SettingsINI
|
||||
-from os import path,popen,remove,system
|
||||
+from os import path,popen,remove,system,chdir
|
||||
+import sys
|
||||
from shutil import copy
|
||||
YELLOW = '\033[33m'
|
||||
RED = '\033[91m'
|
||||
@@ -14,10 +14,8 @@
|
||||
hostapd = popen('which hostapd').read().split('\n')
|
||||
if not path.isfile(hostapd[0]): notinstall('hostapd')
|
||||
# checck source.tar.gz tamplate module
|
||||
- if not path.isfile('templates/Update/Windows_Update/Settins_WinUpdate.html'):
|
||||
- copy('settings/source.tar.gz','templates/')
|
||||
- system('cd templates/ && tar -xf source.tar.gz')
|
||||
- remove('templates/source.tar.gz')
|
||||
+ if '/usr/sbin/wifi-pumpkin' in sys.argv[0]:
|
||||
+ chdir('/usr/share/wifi-pumpkin')
|
||||
|
||||
# check if hostapd is found and save path
|
||||
settings = SettingsINI('core/config/app/config.ini')
|
||||
|
|
@ -1,28 +0,0 @@
|
|||
--- core/loaders/checker/depedences.py.orig 2017-05-04 21:13:43.000000000 +0800
|
||||
+++ core/loaders/checker/depedences.py 2017-05-18 08:24:53.654632607 +0800
|
||||
@@ -1,7 +1,10 @@
|
||||
-#coding: utf-8
|
||||
+# -*- coding: UTF-8 -*-
|
||||
+
|
||||
from core.utility.collection import SettingsINI
|
||||
-from os import path,popen,remove,system
|
||||
+from os import path,popen,remove,system,chdir
|
||||
from shutil import copy
|
||||
+import sys
|
||||
+
|
||||
YELLOW = '\033[33m'
|
||||
RED = '\033[91m'
|
||||
ENDC = '\033[0m'
|
||||
@@ -14,10 +17,8 @@
|
||||
hostapd = popen('which hostapd').read().split('\n')
|
||||
if not path.isfile(hostapd[0]): notinstall('hostapd')
|
||||
# checck source.tar.gz tamplate module
|
||||
- if not path.isfile('templates/Update/Windows_Update/Settins_WinUpdate.html'):
|
||||
- copy('settings/source.tar.gz','templates/')
|
||||
- system('cd templates/ && tar -xf source.tar.gz')
|
||||
- remove('templates/source.tar.gz')
|
||||
+ if '/usr/sbin/wifi-pumpkin' in sys.argv[0]:
|
||||
+ chdir('/usr/share/wifi-pumpkin')
|
||||
|
||||
# check if hostapd is found and save path
|
||||
settings = SettingsINI('core/config/app/config.ini')
|
||||
|
|
@ -1,14 +0,0 @@
|
|||
--- Core/loaders/checker/check_depen.py.orig 2016-07-17 07:01:33.000000000 +0800
|
||||
+++ Core/loaders/checker/check_depen.py 2016-07-19 15:32:48.233392703 +0800
|
||||
@@ -24,9 +24,5 @@
|
||||
if m[k] == False:
|
||||
if k == 0:notinstall('isc-dhcp-server')
|
||||
if k == 1:notinstall('hostapd')
|
||||
- if not path.isfile('Templates/Update/Windows_Update/Settins_WinUpdate.html'):
|
||||
- if '/usr/bin/wifi-pumpkin' in sys.argv[0]:
|
||||
- chdir('/usr/share/WiFi-Pumpkin')
|
||||
- copy('Settings/source.tar.gz','Templates/')
|
||||
- system('cd Templates/ && tar -xf source.tar.gz')
|
||||
- remove('Templates/source.tar.gz')
|
||||
+ if '/usr/sbin/wifi-pumpkin' in sys.argv[0]:
|
||||
+ chdir('/usr/share/wifi-pumpkin')
|
||||
|
|
@ -1,61 +0,0 @@
|
|||
# Copyright 1999-2016 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Id$
|
||||
|
||||
EAPI=5
|
||||
|
||||
MY_PN="WiFi-Pumpkin"
|
||||
|
||||
PYTHON_COMPAT=( python2_7 )
|
||||
inherit python-single-r1 multilib
|
||||
|
||||
DESCRIPTION="Framework for Rogue Wi-Fi Access Point Attack"
|
||||
HOMEPAGE="https://github.com/P0cL4bs/WiFi-Pumpkin"
|
||||
SRC_URI="https://github.com/P0cL4bs/WiFi-Pumpkin/archive/v${PV}.tar.gz -> ${P}.tar.gz"
|
||||
|
||||
LICENSE="GPL-3"
|
||||
SLOT="0"
|
||||
KEYWORDS="~amd64"
|
||||
IUSE="plugins"
|
||||
|
||||
DEPEND=""
|
||||
RDEPEND="net-wireless/hostapd
|
||||
net-wireless/rfkill
|
||||
dev-python/PyQt4
|
||||
dev-python/twisted-web
|
||||
net-analyzer/scapy[${PYTHON_USEDEP}]
|
||||
dev-python/beautifulsoup:python-2[${PYTHON_USEDEP}]
|
||||
dev-python/python-nmap
|
||||
dev-python/netaddr
|
||||
dev-python/config
|
||||
virtual/python-dnspython
|
||||
dev-python/isc_dhcp_leases
|
||||
dev-python/netifaces
|
||||
dev-python/pcapy
|
||||
dev-python/configparser
|
||||
dev-python/pygtail
|
||||
plugins? ( net-dns/dnsmasq
|
||||
net-analyzer/driftnet
|
||||
net-analyzer/ettercap
|
||||
)"
|
||||
|
||||
S="${WORKDIR}/${MY_PN}-${PV}"
|
||||
|
||||
src_prepare() {
|
||||
#fix check_depen.py file which is full of typos and mistakes
|
||||
epatch "${FILESDIR}"/wifi-pumpkin_checkdeps.patch
|
||||
sed -i 's|/usr/share/wifi-pumpkin|/usr/'$(get_libdir)'/wifi-pumpkin|g' Core/loaders/checker/check_depen.py
|
||||
|
||||
tar -xf Settings/source.tar.gz -C Templates/
|
||||
rm Settings/source.tar.gz
|
||||
}
|
||||
|
||||
src_install() {
|
||||
insinto /usr/$(get_libdir)/${PN}
|
||||
doins -r *
|
||||
|
||||
fperms +x /usr/$(get_libdir)/${PN}/${PN}.py
|
||||
dosym /usr/$(get_libdir)/${PN}/${PN}.py /usr/sbin/${PN}
|
||||
|
||||
python_optimize "${D}"usr/$(get_libdir)/${PN}
|
||||
}
|
||||
|
|
@ -1,68 +0,0 @@
|
|||
# Copyright 1999-2017 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Id$
|
||||
|
||||
EAPI=5
|
||||
|
||||
MY_PN="WiFi-Pumpkin"
|
||||
|
||||
PYTHON_COMPAT=( python2_7 )
|
||||
inherit python-single-r1 multilib
|
||||
|
||||
DESCRIPTION="Framework for Rogue Wi-Fi Access Point Attack"
|
||||
HOMEPAGE="https://github.com/P0cL4bs/WiFi-Pumpkin"
|
||||
SRC_URI="https://github.com/P0cL4bs/WiFi-Pumpkin/archive/v${PV}.tar.gz -> ${P}.tar.gz"
|
||||
|
||||
LICENSE="GPL-3"
|
||||
SLOT="0"
|
||||
KEYWORDS="~amd64"
|
||||
IUSE="plugins"
|
||||
|
||||
RDEPEND="${PYTHON_DEPS}
|
||||
net-wireless/hostapd
|
||||
net-wireless/rfkill
|
||||
dev-python/PyQt4[${PYTHON_USEDEP}]
|
||||
dev-python/twisted-web[${PYTHON_USEDEP}]
|
||||
net-analyzer/scapy[${PYTHON_USEDEP}]
|
||||
dev-python/beautifulsoup:4[${PYTHON_USEDEP}]
|
||||
dev-python/python-nmap[${PYTHON_USEDEP}]
|
||||
dev-python/netaddr[${PYTHON_USEDEP}]
|
||||
dev-python/config[${PYTHON_USEDEP}]
|
||||
virtual/python-dnspython[${PYTHON_USEDEP}]
|
||||
dev-python/isc_dhcp_leases[${PYTHON_USEDEP}]
|
||||
dev-python/netifaces[${PYTHON_USEDEP}]
|
||||
dev-python/pcapy[${PYTHON_USEDEP}]
|
||||
dev-python/configparser[${PYTHON_USEDEP}]
|
||||
dev-python/netfilterqueue[${PYTHON_USEDEP}]
|
||||
dev-python/configobj[${PYTHON_USEDEP}]
|
||||
>=dev-python/libarchive-c-2.1[${PYTHON_USEDEP}]
|
||||
>=dev-python/python-magic-0.4.8[${PYTHON_USEDEP}]
|
||||
dev-python/pefile[${PYTHON_USEDEP}]
|
||||
dev-python/capstone-python[${PYTHON_USEDEP}]
|
||||
dev-python/hyperframe[${PYTHON_USEDEP}]
|
||||
dev-python/hyper-h2[${PYTHON_USEDEP}]
|
||||
=net-proxy/mitmproxy-0.11*[${PYTHON_USEDEP}]
|
||||
|
||||
plugins? ( net-dns/dnsmasq
|
||||
net-analyzer/driftnet
|
||||
net-analyzer/ettercap
|
||||
)"
|
||||
DEPEND="${RDEPEND}"
|
||||
|
||||
S="${WORKDIR}/${MY_PN}-${PV}"
|
||||
|
||||
src_prepare() {
|
||||
#fix check_depen.py file which is full of typos and mistakes
|
||||
epatch "${FILESDIR}"/${PV}_checkdeps.patch
|
||||
sed -i 's|/usr/share/wifi-pumpkin|/usr/'$(get_libdir)'/wifi-pumpkin|g' core/loaders/checker/check_depen.py
|
||||
}
|
||||
|
||||
src_install() {
|
||||
insinto /usr/$(get_libdir)/${PN}
|
||||
doins -r *
|
||||
|
||||
fperms +x /usr/$(get_libdir)/${PN}/${PN}.py
|
||||
dosym /usr/$(get_libdir)/${PN}/${PN}.py /usr/sbin/${PN}
|
||||
|
||||
python_optimize "${D}"usr/$(get_libdir)/${PN}
|
||||
}
|
||||
|
|
@ -1,77 +0,0 @@
|
|||
# Copyright 1999-2018 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=6
|
||||
|
||||
MY_PN="WiFi-Pumpkin"
|
||||
|
||||
PYTHON_COMPAT=( python2_7 )
|
||||
|
||||
inherit python-single-r1 multilib epatch
|
||||
|
||||
DESCRIPTION="Framework for Rogue Wi-Fi Access Point Attack"
|
||||
HOMEPAGE="https://github.com/P0cL4bs/WiFi-Pumpkin"
|
||||
SRC_URI="https://github.com/P0cL4bs/WiFi-Pumpkin/archive/v${PV}.tar.gz -> ${P}.tar.gz"
|
||||
|
||||
LICENSE="GPL-3"
|
||||
SLOT="0"
|
||||
KEYWORDS="~amd64"
|
||||
IUSE="plugins"
|
||||
|
||||
RDEPEND="${PYTHON_DEPS}
|
||||
net-wireless/hostapd
|
||||
net-wireless/rfkill
|
||||
dev-python/PyQt4[${PYTHON_USEDEP}]
|
||||
dev-python/twisted-web[${PYTHON_USEDEP}]
|
||||
net-analyzer/scapy[${PYTHON_USEDEP}]
|
||||
dev-python/beautifulsoup:4[${PYTHON_USEDEP}]
|
||||
dev-python/python-nmap[${PYTHON_USEDEP}]
|
||||
dev-python/netaddr[${PYTHON_USEDEP}]
|
||||
dev-python/config[${PYTHON_USEDEP}]
|
||||
virtual/python-dnspython[${PYTHON_USEDEP}]
|
||||
dev-python/isc_dhcp_leases[${PYTHON_USEDEP}]
|
||||
dev-python/netifaces[${PYTHON_USEDEP}]
|
||||
dev-python/pcapy[${PYTHON_USEDEP}]
|
||||
dev-python/configparser[${PYTHON_USEDEP}]
|
||||
dev-python/netfilterqueue[${PYTHON_USEDEP}]
|
||||
dev-python/configobj[${PYTHON_USEDEP}]
|
||||
>=dev-python/libarchive-c-2.1[${PYTHON_USEDEP}]
|
||||
>=dev-python/python-magic-0.4.8[${PYTHON_USEDEP}]
|
||||
dev-python/pefile[${PYTHON_USEDEP}]
|
||||
dev-python/capstone-python[${PYTHON_USEDEP}]
|
||||
dev-python/hyperframe[${PYTHON_USEDEP}]
|
||||
dev-python/hyper-h2[${PYTHON_USEDEP}]
|
||||
=net-proxy/mitmproxy-0.11*[${PYTHON_USEDEP}]
|
||||
|
||||
dev-python/scapy-http[${PYTHON_USEDEP}]
|
||||
dev-python/service_identity[${PYTHON_USEDEP}]
|
||||
|
||||
plugins? ( net-dns/dnsmasq
|
||||
net-analyzer/driftnet
|
||||
net-analyzer/ettercap
|
||||
)"
|
||||
|
||||
#There is a potential with deps due to original requirement:
|
||||
#configparser==3.3.0r1
|
||||
|
||||
DEPEND="${RDEPEND}"
|
||||
|
||||
S="${WORKDIR}/${MY_PN}-${PV}"
|
||||
|
||||
src_prepare() {
|
||||
#fix check_depen.py file which is full of typos and mistakes
|
||||
epatch "${FILESDIR}"/${PV}_checkdeps.patch
|
||||
sed -i 's|/usr/share/wifi-pumpkin|/usr/'$(get_libdir)'/wifi-pumpkin|g' \
|
||||
core/loaders/checker/depedences.py || die "sed failed"
|
||||
eapply_user
|
||||
}
|
||||
|
||||
src_install() {
|
||||
insinto /usr/$(get_libdir)/${PN}
|
||||
doins -r *
|
||||
|
||||
fperms +x /usr/$(get_libdir)/${PN}/${PN}.py
|
||||
dosym /usr/$(get_libdir)/${PN}/${PN}.py /usr/sbin/${PN}
|
||||
|
||||
python_optimize "${D}"usr/$(get_libdir)/${PN}
|
||||
}
|
||||
|
|
@ -15,8 +15,10 @@ SRC_URI="https://github.com/P0cL4bs/WiFi-Pumpkin/archive/v${PV}.tar.gz -> ${P}.t
|
|||
|
||||
LICENSE="GPL-3"
|
||||
SLOT="0"
|
||||
#WIP
|
||||
|
||||
#https://github.com/P0cL4bs/WiFi-Pumpkin/issues/484
|
||||
#KEYWORDS="~amd64"
|
||||
|
||||
IUSE="plugins"
|
||||
|
||||
RDEPEND="${PYTHON_DEPS}
|
||||
|
|
@ -42,17 +44,19 @@ RDEPEND="${PYTHON_DEPS}
|
|||
dev-python/hyper-h2[${PYTHON_USEDEP}]
|
||||
dev-python/scapy-http[${PYTHON_USEDEP}]
|
||||
dev-python/service_identity[${PYTHON_USEDEP}]
|
||||
dev-python/pyopenssl[${PYTHON_USEDEP}]
|
||||
dev-python/flask[${PYTHON_USEDEP}]
|
||||
|
||||
plugins? ( net-dns/dnsmasq
|
||||
net-analyzer/driftnet
|
||||
net-analyzer/ettercap
|
||||
)"
|
||||
|
||||
#missing: backports.ssl_match_hostname
|
||||
#missing? backports.ssl_match_hostname
|
||||
|
||||
#FIXME: remove bundled plugins/
|
||||
|
||||
#There is a potential with deps due to original requirement:
|
||||
#There is a potential issue with deps due to original requirement:
|
||||
#configparser==3.3.0r1
|
||||
|
||||
DEPEND="${RDEPEND}"
|
||||
|
|
@ -61,10 +65,8 @@ S="${WORKDIR}/${MY_PN}-${PV}"
|
|||
|
||||
src_prepare() {
|
||||
rm -r plugins/bin
|
||||
#fix check_depen.py file which is full of typos and mistakes
|
||||
# epatch "${FILESDIR}"/${PV}_checkdeps.patch
|
||||
sed -i 's|/usr/share/wifi-pumpkin|/usr/'$(get_libdir)'/wifi-pumpkin|g' \
|
||||
core/loaders/checker/depedences.py || die "sed failed"
|
||||
#do not check dependencies because you can't even spell it properly
|
||||
sed -i '/core.loaders.checker.depedences/d' wifi-pumpkin.py || die "sed failed"
|
||||
eapply_user
|
||||
}
|
||||
|
||||
Loading…
Reference in a new issue