Aircrack-ng forum

Please login or register.

Login with username, password and session length
Advanced search  

News:

Aircrack-ng 1.7 release

Sorry Guest, you are banned from posting and sending personal messages on this forum.
This ban is not set to expire.
Pages: [1]   Go Down

Author Topic: [ Linux-GUI ] An aircrack-ng gui interface using python-gtk3  (Read 23079 times)

tqk_ac

  • Newbie
  • *
  • Offline Offline
  • Posts: 6
    • taheralkamel.xyz
[ Linux-GUI ] An aircrack-ng gui interface using python-gtk3
« on: February 07, 2019, 11:31:54 am »

Performing a bruteforce attack on WPA/WPA2 networks using aircrack-ng and iw.

https://github.com/t-gitt/aircrack-ng-gui

Main Window
Main Window where user can choose to go Scan, airmon-ng, aircrack-ng windows after selecting the interface (wlp4s0)

 


Airmon-ng Window
A window to check, start or stop airmon-ng, along with starting and stopping systemd NetworkManager.service

 


Scanning Window
A wifi access point scanning window. After choosing their interface, the user can scan for wifi ap using iw. Then, after choosing the target ap, they can go to airodump-ng after starting airmon-ng

 


Airmon-ng "with ssid chosen" Window
Very similar to Airmon-ng window, except this one pass the ssid variables "SSID, BSSID, CHANNEL" to Airodump-ng window

 



Airodump-ng Window | 1
To run airodump-ng (via desired terminal emulator) on the targeted SSID and output the file (with the handshake) to a desired file name. | (could be done better using STDERR and subprocess)

 


Airodump-ng Window | 2
After running airodump-ng, the user can use aireplay to send deauthentication packets for desired n times and a desired station to capture the handshake

 


Aircrack-ng Window
After saving the handshake into a cap file, aircrack can be accessed from the main window. The user chooses a .cap file that contain the handshake and a wordlist to perform the bruteforce attack on their desired terminal emulator.


 




« Last Edit: April 17, 2019, 05:44:19 am by tqk_ac »
Logged

Nickelz34

  • Newbie
  • *
  • Offline Offline
  • Posts: 9
Re: [ Linux-GUI ] An aircrack-ng gui interface using python-gtk3
« Reply #1 on: February 11, 2019, 04:37:46 pm »

hey this looks really nice !

Thanks alot ! Im going to load it up now . Still a n00b with aircrack tools but this will definitely help out alot . 
Logged

Nickelz34

  • Newbie
  • *
  • Offline Offline
  • Posts: 9
Re: [ Linux-GUI ] An aircrack-ng gui interface using python-gtk3
« Reply #2 on: February 11, 2019, 06:39:35 pm »

ok a few things

you have some sytax errors in your python file

looks like a random letter "f" was put randomly in code i removed all instances of the error

but now i have a error im not familiar with

"sh: 1: /bin/iw: not found"

i am assuming it has something to do with selecting the wireless interfaces, as i am not able to select a wireless interface in the app at all

maybe someone can chime in on this

prob a n00b issue lol
Logged

misterx

  • Aircrack-ng Author
  • Administrator
  • Hero Member
  • *****
  • Offline Offline
  • Posts: 1955
  • Aircrack-ng Author
    • Aircrack-ng
Re: [ Linux-GUI ] An aircrack-ng gui interface using python-gtk3
« Reply #3 on: February 11, 2019, 09:00:08 pm »

You shouldn't rely on hardcoded path, it's different on a few distro. A few other examples, it can be found in /sbin or /usr/sbin.
Logged

tqk_ac

  • Newbie
  • *
  • Offline Offline
  • Posts: 6
    • taheralkamel.xyz
Re: [ Linux-GUI ] An aircrack-ng gui interface using python-gtk3
« Reply #4 on: February 11, 2019, 11:17:22 pm »

ok a few things

you have some sytax errors in your python file

looks like a random letter "f" was put randomly in code i removed all instances of the error

but now i have a error im not familiar with

"sh: 1: /bin/iw: not found"

i am assuming it has something to do with selecting the wireless interfaces, as i am not able to select a wireless interface in the app at all

maybe someone can chime in on this

prob a n00b issue lol

Thanks for commenting.
The problem I guess is that you are trying to run it in Python2.X?
f can be used in python 3 to use variables inside strings. for example:
x = 3
print(f"x is: {x}")

//output
x is: 3

Try running it in Python 3 and see if it will work

EDIT: if you're still facing the "sh: 1: /bin/iw: not found" issue, try cloning the repo again since I updated it to not include hardcoded paths.
« Last Edit: February 12, 2019, 04:17:45 am by tqk_ac »
Logged

tqk_ac

  • Newbie
  • *
  • Offline Offline
  • Posts: 6
    • taheralkamel.xyz
Re: [ Linux-GUI ] An aircrack-ng gui interface using python-gtk3
« Reply #5 on: February 11, 2019, 11:19:25 pm »

You shouldn't rely on hardcoded path, it's different on a few distro. A few other examples, it can be found in /sbin or /usr/sbin.

Ok, I see. Thanks for the info. Will work on it asap.

EDIT: I updated the repo in github to not include hardcoded paths.
« Last Edit: February 11, 2019, 11:45:36 pm by tqk_ac »
Logged

Nickelz34

  • Newbie
  • *
  • Offline Offline
  • Posts: 9
Re: [ Linux-GUI ] An aircrack-ng gui interface using python-gtk3
« Reply #6 on: February 13, 2019, 09:39:27 pm »

Ok I will try to reclone, will get some time before the weekend I hope. I will get back to you .

Oh and you should include needed prerequisites and some short install instructions. This GUI looks awesome in pix but I was kinda guessing by looking at the code as to what I would need to install for this to work as I was missing some things.

If it helps I'm on the latest Kali build all up to date as well :)
Logged

tqk_ac

  • Newbie
  • *
  • Offline Offline
  • Posts: 6
    • taheralkamel.xyz
Re: [ Linux-GUI ] An aircrack-ng gui interface using python-gtk3
« Reply #7 on: February 14, 2019, 05:08:52 am »

Ok I will try to reclone, will get some time before the weekend I hope. I will get back to you .

Oh and you should include needed prerequisites and some short install instructions. This GUI looks awesome in pix but I was kinda guessing by looking at the code as to what I would need to install for this to work as I was missing some things.

If it helps I'm on the latest Kali build all up to date as well :)

Again, thanks for the feedback. I have updated the repo with a better dependencies management and usage instructions. I'm planning to also tarball it into a package that can be installed. Currently busy so the progress is quite slow. So try it whenever you have time. More feedback is much appreciated.
Logged

Nickelz34

  • Newbie
  • *
  • Offline Offline
  • Posts: 9
Re: [ Linux-GUI ] An aircrack-ng gui interface using python-gtk3
« Reply #8 on: February 17, 2019, 07:44:52 pm »

Ok finally got to retry with the GUI on the recloned update

no more error when first loading and now the GUI shows perfectly and allows me to see a selection of wifi interfaces (wlan0-internal laptop card) & (wlan1-external awus036ach alpha card)

But as i have gone through the other options in the GUI it seems you also have hardcoded paths for the other available selections. This is my terminal output if i select  any of the options available to me in the gui.


Code: [Select]
root@Chromecast:/opt/aircrackgui/aircrack-ng-gui# python3 aircrack-ng-gui.py
aircrack-ng-gui.py:17: PyGTKDeprecationWarning: Using positional arguments with the GObject constructor has been deprecated. Please specify keyword(s) for "label" or use a class specific constructor. See: https://wiki.gnome.org/PyGObject/InitializerDeprecations
  self.add(Gtk.Label(data))

The interface does indeed load upon start but clicking (airmon-ng) and then trying to click on any of the buttons to (start NetworkManager.service) or (stop NetworkManager.service) yields this in terminal:

Code: [Select]
/bin/sh: 1: gksudo: not found

the same terminal output is given for any of the airmon-ng buttons clicked

I am thinking this is once again linked to having hardcoded paths linked to these buttons options ( but than again i know nothing about python and am a mere n00b to most of this lol)


on a side note


The additional install instructions are a big help and im sure it will further help others who want to try this out as well . Although I do think more specific instructions could be given, such as:

    (choose/create install directory for repo)
    (cd /dir.choosen.or.created)
    clone the repo
    (git clone https://github.com/tqk-gh/aircrack-ng-gui.git)
    (cd aircrack-ng-gui-master)
    install dependencies by pip install -r requirements.txt
    make sure aircrack-ng is installed
    (cd aircrack-ng-gui)
    run aircrack-ng-gui by sudo python3 aircrack-ng-gui.py     | or if root / Kali Users |     python3 aircrack-ng-gui.py



These are just my opinions as to what i have found that may make things harder for beginners  ^^^^^

I also have a knack for constructive criticism and left out steps for anything sometimes makes me :facepalm:

LAWLZ

all in all keep up the good work loving how this is comming along
 





Logged

tqk_ac

  • Newbie
  • *
  • Offline Offline
  • Posts: 6
    • taheralkamel.xyz
Re: [ Linux-GUI ] An aircrack-ng gui interface using python-gtk3
« Reply #9 on: February 17, 2019, 08:15:02 pm »

Quote
But as i have gone through the other options in the GUI it seems you also have hardcoded paths for the other available selections. This is my terminal output if i select  any of the options available to me in the gui.


Code: [Select]
root@Chromecast:/opt/aircrackgui/aircrack-ng-gui# python3 aircrack-ng-gui.py
aircrack-ng-gui.py:17: PyGTKDeprecationWarning: Using positional arguments with the GObject constructor has been deprecated. Please specify keyword(s) for "label" or use a class specific constructor. See: https://wiki.gnome.org/PyGObject/InitializerDeprecations
  self.add(Gtk.Label(data))

This is a label related error, it shouldn't have affected functionality, it's fixed and shouldn't show up in the most recent push to the repo.

Quote
The interface does indeed load upon start but clicking (airmon-ng) and then trying to click on any of the buttons to (start NetworkManager.service) or (stop NetworkManager.service) yields this in terminal:

Code: [Select]
/bin/sh: 1: gksudo: not found

I'm not sure why this is happening, but I couldn't reproduce it. I guess it has to do with the gksudo command that I put for early stage debugging. Replaced it with sudo, try to see if it will work.

Thanks a lot for the input, will update the instructions as well.


EDIT: I have added an installation method, haven't tried it on other machines yet, planning to do by the next weekend, so it could be buggy, feedback on it would help!
« Last Edit: February 17, 2019, 11:14:33 pm by tqk_ac »
Logged

Illuminaris

  • Guest
Re: [ Linux-GUI ] An aircrack-ng gui interface using python-gtk3
« Reply #10 on: September 24, 2019, 05:05:51 pm »

After a lot of installing i still get this error when starting the aircrack-ng-gui.py

Traceback (most recent call last):
  File "/usr/local/bin/aircrack-ng-gui.py", line 4, in <module>
    __import__('pkg_resources').run_script('aircrack-ng-gui==1.0', 'aircrack-ng-gui.py')
  File "/usr/lib/python2.7/dist-packages/pkg_resources/__init__.py", line 666, in run_script
    self.require(requires)[0].run_script(script_name, ns)
  File "/usr/lib/python2.7/dist-packages/pkg_resources/__init__.py", line 1468, in run_script
    script_code = compile(script_text, script_filename, 'exec')
  File "/usr/local/lib/python2.7/dist-packages/aircrack_ng_gui-1.0-py2.7.egg/EGG-INFO/scripts/aircrack-ng-gui.py", line 231
    command_airmon_start= f"sudo airmon-ng start {interface}"
Logged

tqk_ac

  • Newbie
  • *
  • Offline Offline
  • Posts: 6
    • taheralkamel.xyz
Re: [ Linux-GUI ] An aircrack-ng gui interface using python-gtk3
« Reply #11 on: November 02, 2019, 10:56:10 pm »

After a lot of installing i still get this error when starting the aircrack-ng-gui.py

Traceback (most recent call last):
  File "/usr/local/bin/aircrack-ng-gui.py", line 4, in <module>
    __import__('pkg_resources').run_script('aircrack-ng-gui==1.0', 'aircrack-ng-gui.py')
  File "/usr/lib/python2.7/dist-packages/pkg_resources/__init__.py", line 666, in run_script
    self.require(requires)[0].run_script(script_name, ns)
  File "/usr/lib/python2.7/dist-packages/pkg_resources/__init__.py", line 1468, in run_script
    script_code = compile(script_text, script_filename, 'exec')
  File "/usr/local/lib/python2.7/dist-packages/aircrack_ng_gui-1.0-py2.7.egg/EGG-INFO/scripts/aircrack-ng-gui.py", line 231
    command_airmon_start= f"sudo airmon-ng start {interface}"



Hi, sorry for the late reply, I am more active on Github, so it's better to get to me there and I'll make sure to respond as fast as I can.

As for your current issue, can you check your python version? I should add some python version verification to notify the user if it's being run by python 2, but I rarely do have time for that. So make sure you are running it using python 3. If you still get more issues, do let me know.
« Last Edit: November 02, 2019, 10:57:45 pm by tqk_ac »
Logged

wifimeat

  • Newbie
  • *
  • Offline Offline
  • Posts: 1
    • free gay leakedmeat.live
Re: [ Linux-GUI ] An aircrack-ng gui interface using python-gtk3
« Reply #12 on: December 19, 2019, 11:20:37 pm »

I'm going to give it a try on Windows WSL bash environment and see if it works.  I'll hit @tqk_ac up on github if I have any feedback.  Nice interface btw  :D
Logged
Pages: [1]   Go Up