Skip to content
This repository has been archived by the owner on Apr 19, 2020. It is now read-only.

Commit

Permalink
fixed error when launch airodump-ng scan the wireless networks #75
Browse files Browse the repository at this point in the history
  • Loading branch information
mh4x0f committed Aug 24, 2016
1 parent 3ed4bba commit c6fea1e
Show file tree
Hide file tree
Showing 4 changed files with 22 additions and 6 deletions.
1 change: 1 addition & 0 deletions CHANGELOG
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ Version 0.8.1
- added new sessions for Rogue AP loggers
- added new plugin BDFProxy-ng
- added new theme Orange and set as default
- fixed error when launch airodump-ng scan the wireless networks #75

Version 0.7.8
-------------
Expand Down
1 change: 1 addition & 0 deletions Core/config/commits/Lcommits.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ master:
{ changelog : 'added new plugin BDFProxy-ng' },
{ changelog : 'fixed error logger files hostapd, requests' },
{ changelog : 'added new theme Orange and set as default' },
{ changelog : 'fixed error when launch airodump-ng scan the wireless networks #75' },
]

WiFiPumpkin078:
Expand Down
11 changes: 5 additions & 6 deletions Core/utility/extract.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
from os import popen

from BeautifulSoup import BeautifulSoup
from Core.utility.threads import ProcessThread
from Core.utility.threads import ProcessThreadScanner

"""
Description:
Expand All @@ -25,10 +24,10 @@
"""

def airdump_start(interface):
process = ProcessThread(['xterm',
'-geometry', '85x15-1+250', '-T',
'"Scan AP Airodump-ng"', '-e', 'airodump-ng', interface,
'--write', 'Settings/Dump/networkdump'])
process = ProcessThreadScanner(['xterm',
'-geometry', '85x15-1+250', '-T',
'scan AP Airodump-ng', '-e', 'airodump-ng', interface,
'--write', 'Settings/Dump/networkdump'])
process.name = "Airodump-ng scan"
process.start()
process.join()
Expand Down
15 changes: 15 additions & 0 deletions Core/utility/threads.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
import logging
import signal
import threading
from re import search
from sys import stdout
from time import asctime
from os import path,stat,getpgid,setsid,killpg,devnull
Expand All @@ -12,13 +13,27 @@
from Core.Utils import setup_logger,Refactor
from subprocess import (Popen,PIPE,STDOUT)
from PyQt4.QtCore import QThread,pyqtSignal,SIGNAL,pyqtSlot,QProcess,QObject,SLOT
from PyQt4.QtGui import QMessageBox
from Plugins.sergio_proxy.plugins import *
from multiprocessing import Process,Manager
try:
from nmap import PortScanner
except ImportError:
pass

class ProcessThreadScanner(threading.Thread):
''' thread for run airodump-ng backgroung and get data'''
def __init__(self, cmd):
threading.Thread.__init__(self)
self.cmd = cmd
def run(self):
self.process = Popen(self.cmd,stdout=PIPE,stderr=STDOUT)
for line in iter(self.process.stdout.readline, b''):
pass
def stop(self):
if self.process is not None:
self.process.terminate()

class ThreadPopen(QThread):
def __init__(self,cmd):
QThread.__init__(self)
Expand Down

0 comments on commit c6fea1e

Please sign in to comment.