mirror of
https://github.com/pentoo/pentoo-overlay
synced 2026-04-18 21:00:56 +02:00
drop unusable/untested wpa_sycophant and berate_ap
This commit is contained in:
parent
fb88e3e121
commit
8fa29e5de3
12 changed files with 0 additions and 445 deletions
|
|
@ -1 +0,0 @@
|
|||
DIST berate_ap-20190918.tar.gz 23696 BLAKE2B 88b69c77e6ddafc72b3d9e6bef20f5339131b439427f2fba0838d1c36a8573dfe941d6c5a3330b23eb9462c77e72d67fda7033a8bdbea8162c53f168442122e2 SHA512 adb26cbe66723360aed20284cd6c01013ebc1d52e54a4957a16badf8f531603e07ae98582b576679b82dee0b712027211e50ba375f2b22d2fbb53b01fa208b32
|
||||
|
|
@ -1 +0,0 @@
|
|||
./berate_ap-99999999.ebuild
|
||||
|
|
@ -1,49 +0,0 @@
|
|||
# Copyright 1999-2019 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=7
|
||||
|
||||
inherit bash-completion-r1 systemd
|
||||
|
||||
DESCRIPTION="Script for orchestrating mana rogue WiFi Access Points (fork create_ap)"
|
||||
HOMEPAGE="https://github.com/sensepost/berate_ap"
|
||||
|
||||
if [[ $PV == *9999 ]]; then
|
||||
inherit git-r3
|
||||
EGIT_REPO_URI="https://github.com/sensepost/berate_ap"
|
||||
else
|
||||
HASH_COMMIT="8419908b79bae16ecb3567808e05639d4ab8dd6e"
|
||||
SRC_URI="https://github.com/sensepost/berate_ap/archive/${HASH_COMMIT}.tar.gz -> ${P}.tar.gz"
|
||||
KEYWORDS="~amd64 ~x86"
|
||||
S="${WORKDIR}/${PN}-${HASH_COMMIT}"
|
||||
fi
|
||||
|
||||
LICENSE="BSD-2"
|
||||
SLOT="0"
|
||||
IUSE=""
|
||||
|
||||
DEPEND=""
|
||||
RDEPEND="
|
||||
sys-apps/util-linux
|
||||
sys-process/procps
|
||||
net-wireless/hostapd-mana
|
||||
sys-apps/iproute2
|
||||
net-wireless/iw
|
||||
net-misc/bridge-utils
|
||||
net-dns/dnsmasq
|
||||
net-firewall/iptables"
|
||||
|
||||
src_compile() {
|
||||
:
|
||||
}
|
||||
|
||||
src_install() {
|
||||
insinto "/etc"
|
||||
doins berate_ap.conf
|
||||
|
||||
dobin berate_ap
|
||||
systemd_dounit berate_ap.service
|
||||
newbashcomp "${FILESDIR}"/bash_completion berate_ap
|
||||
|
||||
dodoc -r howto README.md
|
||||
}
|
||||
|
|
@ -1,168 +0,0 @@
|
|||
#
|
||||
# Bash Completion routine for berate_ap
|
||||
#
|
||||
|
||||
_use_filedir() {
|
||||
if [[ $(type -t _filedir) == "function" ]]; then
|
||||
_filedir
|
||||
return 0
|
||||
fi
|
||||
return 1
|
||||
}
|
||||
|
||||
_berate_ap() {
|
||||
local awk_cmd='
|
||||
($1 ~ /^-/) {
|
||||
for (i = 1; i <= NF; i++) {
|
||||
if ($i ~ /,$/) {
|
||||
print substr ($i, 0, length ($i)-1)
|
||||
}
|
||||
else {
|
||||
print $i
|
||||
break
|
||||
}
|
||||
}
|
||||
}
|
||||
'
|
||||
|
||||
local cur prev opts
|
||||
COMPREPLY=()
|
||||
cur="$2"
|
||||
prev="$3"
|
||||
opts=$("$1" --help | awk "$awk_cmd")
|
||||
|
||||
case "$prev" in
|
||||
-h|--help)
|
||||
# No Options
|
||||
;;
|
||||
--version)
|
||||
# No Options
|
||||
;;
|
||||
-c)
|
||||
# Refer http://en.wikipedia.org/wiki/List_of_WLAN_channels
|
||||
opts=$(
|
||||
iw list | grep ' MHz \[[[:digit:]]\+\] ' |
|
||||
grep -v 'no IR\|disabled' |
|
||||
sed 's/.*\[\(.*\)\].*/\1/' | sort -n | uniq
|
||||
)
|
||||
;;
|
||||
-w)
|
||||
opts="1 2 1+2"
|
||||
;;
|
||||
-n)
|
||||
# No Options
|
||||
;;
|
||||
-m)
|
||||
opts="nat bridge none"
|
||||
;;
|
||||
--psk)
|
||||
# No Options
|
||||
;;
|
||||
--hidden)
|
||||
# No Options
|
||||
;;
|
||||
--mac-filter)
|
||||
# No Options
|
||||
;;
|
||||
--mac-filter-accept)
|
||||
# No Options
|
||||
;;
|
||||
--ieee80211n)
|
||||
# No Options
|
||||
;;
|
||||
--ht_capab)
|
||||
# Refer http://w1.fi/cgit/hostap/plain/hostapd/hostapd.conf
|
||||
opts='
|
||||
[LDPC] [HT40-] [HT40+] [SMPS-STATIC] [SMPS-DYNAMIC]
|
||||
[GF] [SHORT-GI-20] [SHORT-GI-40] [TX-STBC]
|
||||
[RX-STBC1] [RX-STBC12] [RX-STBC123] [DELAYED-BA]
|
||||
[MAX-AMSDU-7935] [DSSS_CCK-40] [40-INTOLERANT]
|
||||
[LSIG-TXOP-PROT]
|
||||
'
|
||||
;;
|
||||
--country)
|
||||
local reg_file=/usr/lib/crda/regulatory.bin
|
||||
if command -v regdbdump > /dev/null && [[ -f "$reg_file" ]]; then
|
||||
local country_awk_cmd='
|
||||
($1 ~ /^country/) {
|
||||
print substr ($2, 0, length ($2)-1)
|
||||
}
|
||||
'
|
||||
opts=$(regdbdump "$reg_file" 2>/dev/null | awk "$country_awk_cmd")
|
||||
else
|
||||
opts='
|
||||
AD AE AF AI AL AM AN AR AS AT AU AW AZ BA BB BD BE
|
||||
BF BG BH BL BM BN BO BR BS BT BY BZ CA CF CH CI CL
|
||||
CN CO CR CX CY CZ DE DK DM DO DZ EC EE EG ES ET FI
|
||||
FM FR GB GD GE GF GH GL GP GR GT GU GY HK HN HR HT
|
||||
HU ID IE IL IN IR IS IT JM JO JP KE KH KN KP KR KW
|
||||
KY KZ LB LC LI LK LS LT LU LV MA MC MD ME MF MH MK
|
||||
MN MO MP MQ MR MT MU MW MX MY NG NI NL NO NP NZ OM
|
||||
PA PE PF PG PH PK PL PM PR PT PW PY QA RE RO RS RU
|
||||
RW SA SE SG SI SK SN SR SV SY TC TD TG TH TN TR TT
|
||||
TW TZ UA UG US UY UZ VC VE VI VN VU WF WS YE YT ZA
|
||||
ZW 00
|
||||
'
|
||||
fi
|
||||
;;
|
||||
--freq-band)
|
||||
opts="2.4 5"
|
||||
;;
|
||||
--driver)
|
||||
# Refer http://w1.fi/cgit/hostap/tree/src/drivers
|
||||
# Not going to implement
|
||||
;;
|
||||
--no-virt)
|
||||
# No Options
|
||||
;;
|
||||
--no-haveged)
|
||||
# No Options
|
||||
;;
|
||||
--fix-unmanaged)
|
||||
# No Options
|
||||
;;
|
||||
--mac)
|
||||
# Not going to implement
|
||||
;;
|
||||
--daemon)
|
||||
# No Options
|
||||
;;
|
||||
--stop)
|
||||
local stop_awk_cmd='$1 ~ /^[0-9]+$/'
|
||||
opts=$("$1" --list-running | awk "$stop_awk_cmd")
|
||||
;;
|
||||
--list-running)
|
||||
# No Options
|
||||
;;
|
||||
--list-clients)
|
||||
local clients_awk_cmd='$1 ~ /^[0-9]+$/'
|
||||
opts=$("$1" --list-running | awk "$clients_awk_cmd")
|
||||
;;
|
||||
--no-dns)
|
||||
# No Options
|
||||
;;
|
||||
--dhcp-dns)
|
||||
# Not going to implement
|
||||
;;
|
||||
--mkconfig)
|
||||
_use_filedir && return 0
|
||||
;;
|
||||
--config)
|
||||
_use_filedir && return 0
|
||||
;;
|
||||
-g)
|
||||
# Not going to implement
|
||||
;;
|
||||
-d)
|
||||
# No Options
|
||||
;;
|
||||
*)
|
||||
;;
|
||||
esac
|
||||
|
||||
COMPREPLY=( $(compgen -W "$opts" -- $cur) )
|
||||
return 0
|
||||
}
|
||||
complete -F _berate_ap berate_ap
|
||||
|
||||
# vim: set ft=sh:
|
||||
|
|
@ -1,8 +0,0 @@
|
|||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
|
||||
<pkgmetadata>
|
||||
<maintainer type="person">
|
||||
<email>email@linxon.ru</email>
|
||||
<name>Yury Martynov</name>
|
||||
</maintainer>
|
||||
</pkgmetadata>
|
||||
|
|
@ -1 +0,0 @@
|
|||
DIST wpa_sycophant-1.0.tar.gz 2979037 BLAKE2B 5393b94a6a5106ab9d9d84e51b8da3fdae800ff0cf26fb8ced092f539bafa6a6288d9ff92da2de607cbce59ad25a9210d7118a180757853dcc5ca515a10963af SHA512 0e9988da14d1a9ccc5d104ee88ba0cf220b32f28b24b6780023fba03843d34cc5fc697c04d556961828ed74defeacdd2276dd02033a625f7821da369bc2294ec
|
||||
|
|
@ -1,28 +0,0 @@
|
|||
interface=wlan0
|
||||
driver=wired
|
||||
# If you would like to run on loopback:
|
||||
#driver=none
|
||||
|
||||
eap_server=1
|
||||
eap_user_file=hostapd.eap_user
|
||||
ca_cert=rogue-ca.pem
|
||||
server_cert=radius.pem
|
||||
private_key=radius.key
|
||||
private_key_passwd=
|
||||
|
||||
radius_server_clients=hostapd.radius_clients
|
||||
# Contents of hostapd.radius_clients:
|
||||
# 0.0.0.0/0 P@ssw0rd
|
||||
|
||||
radius_server_auth_port=1812
|
||||
|
||||
# -1 = log all messages
|
||||
logger_syslog=-1
|
||||
logger_stdout=-1
|
||||
|
||||
# 2 = informational messages
|
||||
logger_syslog_level=1
|
||||
logger_stdout_level=1
|
||||
|
||||
enable_sycophant=1
|
||||
sycophant_dir=/tmp/
|
||||
|
|
@ -1,21 +0,0 @@
|
|||
diff -ur a/wpa_sycophant.sh b/wpa_sycophant.sh
|
||||
--- a/wpa_sycophant.sh 2019-03-13 11:32:11.000000000 +0300
|
||||
+++ b/wpa_sycophant.sh 2019-09-22 12:38:34.720271840 +0300
|
||||
@@ -7,14 +7,14 @@
|
||||
|
||||
# configfile="./wpa_sycophant_example.conf"
|
||||
# interface="wlp0s20f0u6"
|
||||
-supplicant="./wpa_supplicant/wpa_supplicant"
|
||||
+supplicant="/usr/share/wpa_sycophant/wpa_supplicant"
|
||||
|
||||
# supplicant_location=''
|
||||
-configfile=''
|
||||
+configfile='/etc/wpa_sycophant/wpa_sycophant.conf'
|
||||
interface=''
|
||||
|
||||
print_usage(){
|
||||
- printf "Usage: sudo ./wpa_sycophant_new.sh -c wpa_sycophant_example.conf -i wlan0\n"
|
||||
+ printf "Usage: wpa_sycophant -c wpa_sycophant_example.conf -i wlan0\n"
|
||||
}
|
||||
|
||||
while getopts 'c:i:h' flag; do
|
||||
|
|
@ -1,8 +0,0 @@
|
|||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
|
||||
<pkgmetadata>
|
||||
<maintainer type="person">
|
||||
<email>email@linxon.ru</email>
|
||||
<name>Yury Martynov</name>
|
||||
</maintainer>
|
||||
</pkgmetadata>
|
||||
|
|
@ -1 +0,0 @@
|
|||
./wpa_sycophant-9999.ebuild
|
||||
|
|
@ -1,154 +0,0 @@
|
|||
# Copyright 1999-2019 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=7
|
||||
|
||||
inherit toolchain-funcs savedconfig
|
||||
|
||||
DESCRIPTION="Evil client portion of EAP relay attack"
|
||||
HOMEPAGE="https://w1f1.net https://github.com/sensepost/wpa_sycophant"
|
||||
|
||||
if [[ $PV == *9999 ]]; then
|
||||
inherit git-r3
|
||||
EGIT_REPO_URI="https://github.com/sensepost/wpa_sycophant.git"
|
||||
else
|
||||
SRC_URI="https://github.com/sensepost/wpa_sycophant/archive/v${PV}.tar.gz -> ${P}.tar.gz"
|
||||
KEYWORDS="~amd64 ~x86"
|
||||
fi
|
||||
|
||||
LICENSE="|| ( GPL-2 BSD )"
|
||||
SLOT="0"
|
||||
IUSE="bindist ssl"
|
||||
|
||||
RDEPEND="
|
||||
dev-libs/libnl:3
|
||||
net-misc/dhcp[client]
|
||||
net-wireless/crda
|
||||
net-wireless/hostapd-mana
|
||||
ssl? ( dev-libs/openssl:0=[bindist=] )
|
||||
!ssl? ( dev-libs/libtommath )"
|
||||
|
||||
DEPEND="${RDEPEND}"
|
||||
BDEPEND="virtual/pkgconfig"
|
||||
|
||||
S="${WORKDIR}/${P}/wpa_supplicant"
|
||||
|
||||
Kconfig_style_config() {
|
||||
#param 1 is CONFIG_* item
|
||||
#param 2 is what to set it = to, defaulting in y
|
||||
CONFIG_PARAM="${CONFIG_HEADER:-CONFIG_}$1"
|
||||
setting="${2:-y}"
|
||||
|
||||
if [ ! $setting = n ]; then
|
||||
#first remove any leading "# " if $2 is not n
|
||||
sed -i "/^# *$CONFIG_PARAM=/s/^# *//" .config || echo "Kconfig_style_config error uncommenting $CONFIG_PARAM"
|
||||
#set item = $setting (defaulting to y)
|
||||
sed -i "/^$CONFIG_PARAM/s/=.*/=$setting/" .config || echo "Kconfig_style_config error setting $CONFIG_PARAM=$setting"
|
||||
if [ -z "$( grep ^$CONFIG_PARAM= .config )" ] ; then
|
||||
echo "$CONFIG_PARAM=$setting" >> .config || die
|
||||
fi
|
||||
else
|
||||
#ensure item commented out
|
||||
sed -i "/^$CONFIG_PARAM/s/$CONFIG_PARAM/# $CONFIG_PARAM/" .config || echo "Kconfig_style_config error commenting $CONFIG_PARAM"
|
||||
fi
|
||||
}
|
||||
|
||||
src_prepare() {
|
||||
# net/bpf.h needed for net-libs/libpcap on Gentoo/FreeBSD
|
||||
sed -e "s:\(#include <pcap\.h>\):#include <net/bpf.h>\n\1:" \
|
||||
-i ../src/l2_packet/l2_packet_freebsd.c || die
|
||||
|
||||
# People seem to take the example configuration file too literally (bug #102361)
|
||||
sed -e "s:^\(opensc_engine_path\):#\1:" \
|
||||
-e "s:^\(pkcs11_engine_path\):#\1:" \
|
||||
-e "s:^\(pkcs11_module_path\):#\1:" \
|
||||
-i wpa_supplicant.conf || die
|
||||
|
||||
# Change configuration to match Gentoo locations (bug #143750)
|
||||
sed -e "s:/usr/lib/opensc:/usr/$(get_libdir):" \
|
||||
-e "s:/usr/lib/pkcs11:/usr/$(get_libdir):" \
|
||||
-i wpa_supplicant.conf || die
|
||||
|
||||
sed -e 's#-Werror ##' \
|
||||
-i Makefile || die
|
||||
|
||||
# Allow users to apply patches to src/drivers for example,
|
||||
# i.e. anything outside ${S}
|
||||
pushd ../ >/dev/null || die
|
||||
|
||||
eapply "${FILESDIR}"/wpa_sycophant_pentoo.patch
|
||||
default
|
||||
|
||||
popd >/dev/null || die
|
||||
}
|
||||
|
||||
src_configure() {
|
||||
# Toolchain setup
|
||||
tc-export CC
|
||||
|
||||
restore_config .config
|
||||
|
||||
# Basic setup
|
||||
Kconfig_style_config CTRL_IFACE
|
||||
Kconfig_style_config MATCH_IFACE
|
||||
Kconfig_style_config BACKEND file
|
||||
Kconfig_style_config IBSS_RSN
|
||||
Kconfig_style_config IEEE80211W
|
||||
Kconfig_style_config IEEE80211R
|
||||
|
||||
# Enabling background scanning.
|
||||
Kconfig_style_config BGSCAN_SIMPLE
|
||||
Kconfig_style_config BGSCAN_LEARN
|
||||
|
||||
# Enable support for writing debug info to a log file and syslog.
|
||||
Kconfig_style_config DEBUG_FILE
|
||||
Kconfig_style_config DEBUG_SYSLOG
|
||||
|
||||
# SSL authentication methods
|
||||
if use ssl; then
|
||||
Kconfig_style_config SUITEB192
|
||||
Kconfig_style_config TLS openssl
|
||||
if ! use bindist; then
|
||||
Kconfig_style_config EAP_PWD
|
||||
Kconfig_style_config MESH
|
||||
#WPA3
|
||||
Kconfig_style_config OWE
|
||||
Kconfig_style_config SAE
|
||||
fi
|
||||
else
|
||||
Kconfig_style_config TLS internal
|
||||
fi
|
||||
}
|
||||
|
||||
src_compile() {
|
||||
emake V=1 wpa_supplicant
|
||||
}
|
||||
|
||||
src_install() {
|
||||
exeinto "/usr/share/${PN}"
|
||||
doexe wpa_supplicant
|
||||
|
||||
pushd ../ >/dev/null || die
|
||||
|
||||
insinto "/etc/${PN}"
|
||||
doins wpa_sycophant_example.conf
|
||||
|
||||
insinto "/etc/hostapd-mana"
|
||||
doins "${FILESDIR}"/hostapd-mana.conf
|
||||
|
||||
newsbin wpa_sycophant.sh wpa_sycophant
|
||||
|
||||
dodoc wpa_sycophant_example.conf README*
|
||||
|
||||
popd >/dev/null || die
|
||||
|
||||
save_config .config
|
||||
}
|
||||
|
||||
pkg_postinst() {
|
||||
ewarn "\nIf this is a clean installation of ${PN}, you"
|
||||
ewarn "have to create a configuration file named"
|
||||
ewarn "${EROOT%/}/etc/${PN}/wpa_sycophant.conf"
|
||||
ewarn "An example configuration file is available for reference in"
|
||||
ewarn "${EROOT%/}/usr/share/doc/${PF}/\n"
|
||||
}
|
||||
|
|
@ -124,11 +124,6 @@ dev-python/cheetah
|
|||
#no wpe patches yet
|
||||
>net-dialup/freeradius-3.2.3
|
||||
|
||||
# not tested yet... (2019-09-21)
|
||||
# more info: https://github.com/pentoo/pentoo-overlay/issues/495
|
||||
net-wireless/berate_ap
|
||||
net-wireless/wpa_sycophant
|
||||
|
||||
# use a better tool, https://github.com/pentoo/pentoo-overlay/issues/564
|
||||
net-misc/rdesktop-brute
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue