Skip to content

Commit

Permalink
hostapd-mana: fix sensepost/hostapd-mana#47
Browse files Browse the repository at this point in the history
  • Loading branch information
blshkv committed Jun 4, 2020
1 parent 63d5181 commit 1505b7e
Show file tree
Hide file tree
Showing 2 changed files with 44 additions and 2 deletions.
41 changes: 41 additions & 0 deletions net-wireless/hostapd-mana/files/48.patch
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
From 88c5ae7758b2c3c4c0a34af08f32d64be821a151 Mon Sep 17 00:00:00 2001
From: Anton Bolshakov <[email protected]>
Date: Thu, 4 Jun 2020 09:11:07 +0800
Subject: [PATCH] crackapd.py python3 support

a trivial patch
---
crackapd/crackapd.py | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/crackapd/crackapd.py b/crackapd/crackapd.py
index 804011a..9e553ec 100755
--- a/crackapd/crackapd.py
+++ b/crackapd/crackapd.py
@@ -20,7 +20,7 @@
# Queue for work items
# Lock for locking
# Thread for threading
-import Queue
+import queue
import os.path
import os
from threading import Lock
@@ -33,7 +33,7 @@
def PrintResult(verbose, message):
if (verbose > 0):
LOCK.acquire()
- print message
+ print (message)
LOCK.release()

def WriteResult(s_file, s_string):
@@ -115,7 +115,7 @@ def run(self):
WORDLST="/usr/share/wordlists/rockyou.txt"

# Global Variables. These are calculated... :P
- WRKQUEUE = Queue.Queue()
+ WRKQUEUE = queue.Queue()

# Print a nice header...
PrintResult(VERBOSE, "MANA - CrackApd - crackapd.py")
5 changes: 3 additions & 2 deletions net-wireless/hostapd-mana/hostapd-mana-9999.ebuild
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
# Copyright 1999-2019 Gentoo Authors
# Copyright 1999-2020 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2

EAPI=7

PYTHON_COMPAT=( python2_7 )
PYTHON_COMPAT=( python3_{6,7,8} )

inherit python-r1 toolchain-funcs savedconfig

Expand Down Expand Up @@ -46,6 +46,7 @@ src_prepare() {

eapply "${FILESDIR}"/crackapd_pentoo.patch
eapply "${FILESDIR}"/update_hostapd.conf.patch
eapply "${FILESDIR}"/48.patch

default

Expand Down

0 comments on commit 1505b7e

Please sign in to comment.