mirror of
https://github.com/pentoo/pentoo-overlay
synced 2026-05-05 19:11:57 +02:00
wifite: port fixes
This commit is contained in:
parent
c43e4bfbd4
commit
43b78d4b22
6 changed files with 68 additions and 94 deletions
|
|
@ -1,10 +1,8 @@
|
|||
AUX wifite-2-noupgrade.patch 377 SHA256 0cc3912634760259a608b15e896464687edd2bca5504be3243cb594be09135ff SHA512 9d07d69bb4bceeae99bf23994473ab26a26a70df16a79cf3f7bf2378754ababf49de90052e30555aeec3c5afa968e605b8fd742f86df36853d3c0d49fdd464c5 WHIRLPOOL 064435f668df2c0de39725b608e2dc94bcb1b94ce4363e97c5fc06aeaf4cc9fe858ada72b69ac603cf3e5a2c84e17df38c06b4a82d9f0ae6423567f031b0c7ca
|
||||
AUX wifite-negative.patch 668 SHA256 95efe41729f19409a1471b5d1ca8899178871d3a82f5508dd236aa573a8a5a33 SHA512 e8cd1b6d7aa2a4a8cb398a68fe93de4b2efb0437ba4b32128031bb5d3143f95808b9af74f22b5d8e5baf2ad909b168e4d57425005a63d53920c2ef4dc3b67674 WHIRLPOOL 7cbde25637083dd1fee699638fd1cca54fd7ca69bcfe7187f5809ef95fc17128497416892c50503dd65dd39d825bd4c258f6e368250e1bf7ff0822b8d8ff5a45
|
||||
AUX wifite-noupgrade.patch 1087 SHA256 7f304ff8dc7f7ab9e6dcf366f457d7ea15c58db2e5e398ea9297ba440a6b0a66 SHA512 343680facbd303a7e5ea154fa734d2e58bfab2ab26e0a618b469051cd34b946675f9b9ab8aa9a869a439394b1016f5da1a4282f5ef7663b8be0d9b3ef8a6ab6e WHIRLPOOL b6270b25cca0a0f1a72ab6fa51a1065b740975db1333653a2c39dba5b7e2d4c50931c20534eddf304fbabc0437594b2cb35f15b6a13128853e5742a975762930
|
||||
DIST wifite-0.84.py 119239 SHA256 02357c416552cb3fce408f3ca249094e3fc1c95f232b3a8082f197274f6081d7
|
||||
DIST wifite-2.0_beta_p10.py 94591 SHA256 eaeb3ea3059478ed0d52e6522a6ca1d5364313390f5072dc66d05c0196e7b38e
|
||||
AUX wifite-tshark.patch 1720 SHA256 72f23d6688617e7aa786330f7c762b83e804a6b0370f3c3b1b4d2fd1d0e66a0a SHA512 abe7c32b7625ba170e50ff767c54f83e329d904b3305e8073335404ed217691a03e4863dd59f0acd7d18bc9773e7d490537c0ecbab8ce982333e2f520578747b WHIRLPOOL 5978cb7b28e2b638c8e0119726e163399c686b7412fa7588185c9828fc68e13144438df300d449294dbc14fb57d73edf2a57d2b9884ca54c9c979fd01931bcff
|
||||
DIST wifite-2.85.py 98589 SHA256 fe0c7b1d40c2614bcf44e0d353d8d6d6faf85c20b29a3773a3bd9e239c25013d SHA512 a36417a04f9cbfb5bcafa245827a62576cc96c46c2acb971d6782e9782cc239b2e4bec595bbfe170ee89d3d9fef8072f3e0c0344452b9c22e8012cb9166adfb3 WHIRLPOOL f3cc27a14f9366b5301e6ecfcfd11b391717075b702beb6eb0f5738f1ab26f17f1dde513c4d1d40660997c73a702b3d1a9669cc1fe1409285947e34ba0ba85da
|
||||
EBUILD wifite-0.84.ebuild 885 SHA256 ce845cc6d73a528cb6868ba8a759616ebdd01027e3c89b71a5cf399f4d779882 SHA512 b71cb7dfceb5d9410b4b110d39c645d51586375b719d02114549cf05e82930eb365779a5605fbb1a147625902df42edd4425416042a0abf75e73b0c4f9c07204 WHIRLPOOL d229a41d787a663c00f2a0f48ac5add9eb00d62cc84cc2080adaaf1ccb1d0e113d8acc76bd3c7826f6fe9203bb28b8d209c2b70674732be40116fc921ee28298
|
||||
EBUILD wifite-2.0_beta_p10.ebuild 964 SHA256 7f4ceebf07eeae58ec5f2b5597b2a6169b1ba294e7878cef454d96f3ea8c04a9 SHA512 fa7227f6dd889b900992ef180b495f5375530e2923f99a263bc8bc2c1a31a609eb834774e5409250ec1d261f66917a3ed74d12b81c7e571c2be6dc6a369b7057 WHIRLPOOL 40e030258f9c2e15347182ec80d4fe9cf683b6813a4558f0f5981287c515dc2107aa7a59b8d599a394d1af489b82b13b28b75136a174ef60caf9b721b52ce418
|
||||
EBUILD wifite-2.85-r1.ebuild 993 SHA256 7b3f192b242965b57ca9d7e1b919b18c775d759ba8d32ce5056a357a98cec92f SHA512 f172cd3de1740a66c205045905785232e193064de3b19c17356b51b87e63587c3c30932bbfeb1972189813a3e6ee6edab2adf8b8c8a4aa07532e2b96f3c252e9 WHIRLPOOL d6d7a71e1258e5a31e3d3821f150e76a192f01cdaf58041d7ff136230f9b31f23bcbd21ab6a02be47a99f4818564bec24966ef9868fcee9ab82cc73753620b9e
|
||||
EBUILD wifite-2.85.ebuild 953 SHA256 84563b0612069ad2afe8d90f0ef8eaa4229a5278d72cd587a99750b2495a35a0 SHA512 29aa2384d587011c8030b69b9652f7d380093d83450c930825ac85d4c2d65b4156eef93fa86fe3f00a6d2ff0e7728603caa389eb4685e78e95cc305342160dd6 WHIRLPOOL b3c8e15bf5c497f9006f8ba5659042509f0541f528151caac09bd508c22ff83767b9cb6ea710593bfaf448e88fa779d6045993d81debab45d5a911ba40c1d44a
|
||||
EBUILD wifite-2.85-r2.ebuild 1077 SHA256 c5c7bcc438602b83a5a7dab736ae0b2e27b39859d8d46ce8eb6d865326cc4e6c SHA512 7c5bf5433d4527454685499f6355817d95df80d9fe48132c3546711d303459445a4d792398138923f29aae989593928dc14f1872fe6e35fa31359ba521c4289d WHIRLPOOL e9f75d92913cae7f2d0a3df9122e32236223145fa7b6d13430ee43c584b0a38cb3409e6bcd2a6a34f104039d51c5bee91849f92b0ec9aefc964ec5971587efb7
|
||||
MISC metadata.xml 459 SHA256 37f7bed856328ff87c08e4aa096bf5118363eac80dc97e58ef1a795c94f3bf49 SHA512 750344b29468faed94b6ef57c9c1f31451d5d2f1f82688ab9b9db40797f56db011dec3296aef3e6fad453a292c97e6043d0e91f9b38440855e3c77c239d42dc1 WHIRLPOOL 0387b978b344b0ea5f3ce6b72fdd1e634f351825a2b466f424d8af3a66f0ec3ed921d6520e5319c718ba3b998749878579f7fdcb405dc3b310e32ef509576b65
|
||||
|
|
|
|||
22
net-wireless/wifite/files/wifite-negative.patch
Normal file
22
net-wireless/wifite/files/wifite-negative.patch
Normal file
|
|
@ -0,0 +1,22 @@
|
|||
--- wifite.orig 2013-08-03 10:19:20.976498339 +0800
|
||||
+++ wifite 2013-08-03 11:13:13.826482605 +0800
|
||||
@@ -1089,7 +1089,8 @@
|
||||
# Time to deauth
|
||||
cmd = ['aireplay-ng',
|
||||
'--deauth', '1',
|
||||
- '-a', t.bssid]
|
||||
+ '-a', t.bssid,
|
||||
+ '--ignore-negative-one']
|
||||
for c in clients:
|
||||
if c.station == t.bssid:
|
||||
cmd.append('-c')
|
||||
@@ -1848,7 +1849,8 @@
|
||||
cmd = ['aireplay-ng',
|
||||
'-0', # Attack method (Deauthentication)
|
||||
'1', # Number of packets to send
|
||||
- '-a', target.bssid]
|
||||
+ '-a', target.bssid,
|
||||
+ '--ignore-negative-one']
|
||||
|
||||
client_index += 1
|
||||
|
||||
38
net-wireless/wifite/files/wifite-tshark.patch
Normal file
38
net-wireless/wifite/files/wifite-tshark.patch
Normal file
|
|
@ -0,0 +1,38 @@
|
|||
--- wifite.orig 2013-08-03 12:06:00.000000000 +0800
|
||||
+++ wifite 2013-08-03 13:55:43.140584142 +0800
|
||||
@@ -1701,12 +1701,12 @@
|
||||
proc = Popen(cmd, stdout=PIPE, stderr=DN)
|
||||
proc.wait()
|
||||
for line in proc.communicate()[0].split('\n'):
|
||||
- if line.endswith('Key (msg 1/4)') or line.endswith('Key (msg 3/4)'):
|
||||
+ if line.endswith('Key (Message 1 of 4)') or line.endswith('Key (Message 3 of 4)'):
|
||||
while line.startswith(' ') or line.startswith('\t'): line = line[1:]
|
||||
line = line.replace('\t', ' ')
|
||||
while line.find(' ') != -1: line = line.replace(' ', ' ')
|
||||
return line.split(' ')[2]
|
||||
- elif line.endswith('Key (msg 2/4)') or line.endswith('Key (msg 4/4)'):
|
||||
+ elif line.endswith('Key (Message 2 of 4)') or line.endswith('Key (Message 4 of 4)'):
|
||||
while line.startswith(' ') or line.startswith('\t'): line = line[1:]
|
||||
line = line.replace('\t', ' ')
|
||||
while line.find(' ') != -1: line = line.replace(' ', ' ')
|
||||
@@ -1995,18 +1995,10 @@
|
||||
|
||||
fields = line.split(' ')
|
||||
|
||||
- # Sometimes tshark doesn't display the full header for "Key (msg 3/4)" on the 3rd handshake.
|
||||
- # This catches this glitch and fixes it.
|
||||
- if len(fields) < 8:
|
||||
- continue
|
||||
- elif len(fields) == 8:
|
||||
- fields.append('(msg')
|
||||
- fields.append('3/4)')
|
||||
-
|
||||
src = fields[2].lower() # Source MAC address
|
||||
dst = fields[4].lower() # Destination MAC address
|
||||
- #msg = fields[9][0] # The message number (1, 2, 3, or 4)
|
||||
- msg = fields[-1][0]
|
||||
+ msg = fields[9][0] # The message number (1, 2, 3, or 4)
|
||||
+ #msg = fields[-1][0]
|
||||
|
||||
# First, third msgs in 4-way handshake are from the target to client
|
||||
if msg_num % 2 == 1 and (src != target.bssid.lower() or dst != client): continue
|
||||
|
|
@ -1,45 +0,0 @@
|
|||
# Copyright 1999-2010 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Header:
|
||||
|
||||
EAPI=3
|
||||
PYTHON_DEPEND="2"
|
||||
PYTHON_USE_WITH="tk"
|
||||
PYTHON_USE_WITH_OPT="tk"
|
||||
|
||||
inherit python eutils versionator
|
||||
|
||||
AVC=( $(get_version_components) )
|
||||
|
||||
DESCRIPTION="Mass WEP/WPA cracker"
|
||||
HOMEPAGE="http://code.google.com/p/wifite/"
|
||||
SRC_URI="http://wifite.googlecode.com/svn-history/r${AVC[1]}/trunk/wifite.py -> ${P}.py"
|
||||
|
||||
LICENSE="GPL-3"
|
||||
SLOT="0"
|
||||
KEYWORDS="amd64 x86"
|
||||
IUSE="dict extra tk"
|
||||
|
||||
DEPEND=""
|
||||
RDEPEND="net-wireless/aircrack-ng
|
||||
dev-python/pexpect
|
||||
dict? ( sys-apps/cracklib-words )
|
||||
extra? ( app-crypt/pyrit
|
||||
net-wireless/cowpatty
|
||||
net-analyzer/macchanger )
|
||||
tk? ( x11-terms/xterm )"
|
||||
|
||||
S=${WORKDIR}/${PN}
|
||||
|
||||
src_unpack() {
|
||||
mkdir "${S}"
|
||||
cp "${DISTDIR}"/${A} "${S}/${PN}"
|
||||
}
|
||||
|
||||
src_prepare() {
|
||||
epatch "${FILESDIR}"/${PN}-noupgrade.patch
|
||||
}
|
||||
|
||||
src_install() {
|
||||
dobin wifite
|
||||
}
|
||||
|
|
@ -1,42 +0,0 @@
|
|||
# Copyright 1999-2010 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Header:
|
||||
|
||||
EAPI=3
|
||||
PYTHON_DEPEND="2"
|
||||
PYTHON_USE_WITH="tk"
|
||||
PYTHON_USE_WITH_OPT="tk"
|
||||
|
||||
inherit python
|
||||
|
||||
DESCRIPTION="Mass WEP/WPA cracker"
|
||||
HOMEPAGE="http://code.google.com/p/wifite/"
|
||||
#SRC_URI="http://wifite.googlecode.com/svn-history/r${AVC[1]}/trunk/wifite.py -> ${P}.py"
|
||||
# Annoying: github is a temporary location for alpha releases
|
||||
SRC_URI="https://github.com/derv82/wifite/raw/4ad0ae3b3d141944d0baf881d739a35c1851e8f5/wifite.py -> ${P}.py"
|
||||
|
||||
LICENSE="GPL-3"
|
||||
SLOT="0"
|
||||
KEYWORDS="~amd64 ~x86"
|
||||
IUSE="dict extra tk"
|
||||
|
||||
DEPEND=""
|
||||
RDEPEND="net-wireless/aircrack-ng
|
||||
dev-python/pexpect
|
||||
dict? ( sys-apps/cracklib-words )
|
||||
extra? ( app-crypt/pyrit
|
||||
net-wireless/cowpatty
|
||||
net-analyzer/macchanger
|
||||
net-wireless/reaver )
|
||||
tk? ( x11-terms/xterm )"
|
||||
|
||||
S=${WORKDIR}/${PN}
|
||||
|
||||
src_unpack() {
|
||||
mkdir "${S}"
|
||||
cp "${DISTDIR}"/${A} "${S}/${PN}"
|
||||
}
|
||||
|
||||
src_install() {
|
||||
dobin wifite
|
||||
}
|
||||
|
|
@ -1,8 +1,8 @@
|
|||
# Copyright 1999-2010 Gentoo Foundation
|
||||
# Copyright 1999-2013 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Header:
|
||||
|
||||
EAPI=3
|
||||
EAPI=5
|
||||
PYTHON_DEPEND="2"
|
||||
#GUI interface is disabled in this version
|
||||
#PYTHON_USE_WITH="tk"
|
||||
|
|
@ -40,6 +40,9 @@ src_unpack() {
|
|||
|
||||
src_prepare() {
|
||||
epatch "${FILESDIR}"/${PN}-2-noupgrade.patch
|
||||
epatch "${FILESDIR}"/${PN}-negative.patch
|
||||
epatch "${FILESDIR}"/${PN}-tshark.patch
|
||||
python_convert_shebangs 2 "${S}"/${PN}
|
||||
}
|
||||
|
||||
src_install() {
|
||||
Loading…
Reference in a new issue