Coder Social home page Coder Social logo

entropy1337 / infernal-twin Goto Github PK

View Code? Open in Web Editor NEW
1.2K 133.0 257.0 15.34 MB

wireless hacking - This is automated wireless hacking tool

Python 84.35% Makefile 0.22% Shell 0.04% HTML 0.22% Gnuplot 0.01% C 14.59% Batchfile 0.14% CSS 0.23% C++ 0.04% M4 0.06% Java 0.06% PHP 0.01% JavaScript 0.01% Roff 0.02% Ruby 0.01%

infernal-twin's People

Contributors

entropy1337 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

infernal-twin's Issues

no support for kali 2.0

/usr/lib/python2.7/distutils/dist.py:267: UserWarning: Unknown distribution option: 'console'
warnings.warn(msg)

Program hangs at startup.

root@kali:~/infernal-twin# ./InfernalWireless.py

^C
^C
^C
^C
^C
^Cfrom: can't read /var/mail/datetime
from: can't read /var/mail/Modules
from: can't read /var/mail/Modules
./InfernalWireless.py: line 14: syntax error near unexpected token "scapy.runtime"' ./InfernalWireless.py: line 14:logging.getLogger("scapy.runtime").setLevel(logging.ERROR)'

Warning

Nevermind, i thought i saw something suspicious.

Error starting Fake WPA2 AP

When i try and start a fake WPA2 AP i get this error in systemctl status networking.service???

I can start an open Fake AP no problem. Any ideas?

โ— networking.service - Raise network interfaces
Loaded: loaded (/lib/systemd/system/networking.service; enabled; vendor preset: enabled)
Active: failed (Result: exit-code) since Thu 2017-03-23 00:16:20 EDT; 32min ago
Docs: man:interfaces(5)
Main PID: 7246 (code=exited, status=1/FAILURE)

Mar 23 00:16:20 kali systemd[1]: Starting Raise network interfaces...
Mar 23 00:16:20 kali ifup[7246]: Cannot find device "br0"
Mar 23 00:16:20 kali ifup[7246]: Failed to bring up br0.
Mar 23 00:16:20 kali systemd[1]: networking.service: Main process exited, code=exited, status=1/FAILURE
Mar 23 00:16:20 kali systemd[1]: Failed to start Raise network interfaces.
Mar 23 00:16:20 kali systemd[1]: networking.service: Unit entered failed state.
Mar 23 00:16:20 kali systemd[1]: networking.service: Failed with result 'exit-code'.

Not able to connect to db

Hi ,i have follow the step describe here but is not working for me !

i have delete the dbconnect.conf

then i enter a user and pass and i have this for result

Creds are not correct
Traceback (most recent call last):
File "InfernalWireless.py", line 20, in
cxn = MySQLdb.connect('localhost',str(dbfile[0]).replace('\n',''),str(dbfile[1]).replace('\n',''))
File "/usr/lib/python2.7/dist-packages/MySQLdb/init.py", line 81, in Connect
return Connection(_args, *_kwargs)
File "/usr/lib/python2.7/dist-packages/MySQLdb/connections.py", line 187, in init
super(Connection, self).init(_args, *_kwargs2)
_mysql_exceptions.OperationalError: (1045, "Access denied for user 'root2'@'localhost' (using password: YES)")

i have try this
/etc/init.d/mysql start

i have try this also

Run the following command from your mysql console.

mysql>use mysql;

mysql>CREATE USER 'root2'@'localhost' IDENTIFIED BY 'enter the new password here';

mysql>GRANT ALL PRIVILEGES ON . TO 'root2'@'localhost' WITH GRANT OPTION;

no more success this way

i specify that i use Kali GNU/Linux 2.0 (sana) 32-bit -gnome 3.14.1

what i do wrong? any help is very appreciated.

Infernal-Twin tries to grap my mouse

Hi there,

I'm with the following issue while trying to run the app.
After run with:
./InfernalWireless.py
It change the icon of the mouse as well!

Get this output:

import-im6.q16: unable to grab mouse `': Resource temporarily unavailable @ error/xwindow.c/XSelectWindow/9182.
import-im6.q16: unable to grab mouse `': Resource temporarily unavailable @ error/xwindow.c/XSelectWindow/9182.
import-im6.q16: unable to grab mouse `': Resource temporarily unavailable @ error/xwindow.c/XSelectWindow/9182.
import-im6.q16: unable to grab mouse `': Resource temporarily unavailable @ error/xwindow.c/XSelectWindow/9182.
from: can't read /var/mail/datetime
from: can't read /var/mail/Modules
from: can't read /var/mail/Modules
./InfernalWireless.py: line 14: syntax error near unexpected token `"scapy.runtime"'
./InfernalWireless.py: line 14: `logging.getLogger("scapy.runtime").setLevel(logging.ERROR)'

Kali 2 - radius server not working well

Hi,
I was testing the tool's features under different flavors of linux and under kali 2, i found out that the radius server is not accepting requests from clients when attempting to authenticate hence one is not able to capture the challenge and response.
even when the client is accepted the challenge and response is not being captured in the log.
I will see what could be the reason.
thanks,

Keep Crashing Mac

Could not run app on Virtual Environment. Even on the core system the app keep crashing on Mac 10.12.6

Drop README and README.TXT in favour of README.md

Hi,

up for consideration/thought is to drop README and README.TXT in favour of README.md which is a text file as well, although with markup language. The reason is triplication of information and keeping these files in sync which I believe is going to be the last thing they're going to be in.
There is a price to pay, though. As I've mentioned in #5, escaped characters, \*, can be confusing. I'm not sure(meaning I haven't looked for it) if there is a CLI tool that would strip markup and produced plain TXT without it.

My $0.02USD.

No Module Named MySQLdb

I am running parrot OS:

Static hostname: parrot
Icon name: computer-vm
Chassis: vm
Machine ID: ce9c440c333d4ba4882539d5b73c078c
Boot ID: 340b0bb81af3485a9d04bdfa98aae06c
Virtualization: vmware
Operating System: Parrot GNU/Linux 4.10
Kernel: Linux 5.8.0-1parrot1-amd64
Architecture: x86-64

I have gone through all the guides, I have set up mysql and installed it, I can connect using mysql then usemysql, granted privileges, created new user, delete .conf file and still I get this message.

Does anybody know how to fix this? Also runing the .py files in /Modules gives the same error

New app window doesn't spawn on the top

It will be for the best to explain this issue with example. When you go to Wireless Hacking menu, choose Hack WPA2, then new window is created. However, this window is created under the main application window rather on top of it.

This happens only sometimes, but enough times to notice. Reason is unknown.

Not working

When i use command :

python InfernalTwin.py

it run successfully but nothing happens , no gui or anything opens up on screen
kindly help me ...

Remove link to ganalytics

Hello,

is it possible to remove link to Google Analytics from wiki page? I understand this might be helping you to track popularity of the project(or whatever), but I don't think people like calling back home to mothership.
Please, give this a thought.

Thank you.

EDIT: couple corrections.

It should be possible to dedicate/choose interfaces

Hello,

I believe it'd be great if you could either choose roles for devices, or dedicate device to some specific task, or even "blacklist" device(= don't touch this device). I mean, what if you want to use wlan1 for wireless scan? What if you want to "provide" free Internet over wlan interface instead of eth0?

It might be nice to have feature.

question about interface checks

Hello,

I have a question about the following code which can be seen at multiple places:

[...]
proc = subprocess.Popen(["ifconfig", ""], stdout=subprocess.PIPE, shell=True)
(out2, err) = proc.communicate()
[...]
if monitoring_interface in out2:
  # Do stuff
  ssid = str(self.ask(message = 'Enter the SSID')).strip()
  MAC = str(self.ask(message = 'Enter the MAC')).strip()
  [...]
else:
  wx.MessageBox('make sure you have mon0 interface', 'Warning/Error', wx.ICON_ERROR | wx.ICON_INFORMATION)

What's exactly the purpose of these checks? ifconfig is called and then, say, wlan0 is searched in its output. I believe we can get this information elsewhere, resp. we are already getting it from elsewhere.

Also, I found a bug here, because we won't get mon0 interface, but whatever interface comes first. :)

Thank you,
Z.

Error

root@backbox:/home/its_0x08/Desktop/exploits/infernal-twin# python InfernalWireless.py

  • Starting web server apache2 *
  • Starting MySQL database server mysqld [ OK ]
    Creating DB config file
    dbconnect.conf doesn't exists or creds are incorrect
    *************** creating DB config file ************
    Enter the DB username: admin
    Enter the password: **********
    trying to connect
    Traceback (most recent call last):
    File "InfernalWireless.py", line 30, in
    cxn = MySQLdb.connect(db='InfernalWireless')
    File "/usr/lib/python2.7/dist-packages/MySQLdb/init.py", line 81, in Connect
    return Connection(_args, *_kwargs)
    File "/usr/lib/python2.7/dist-packages/MySQLdb/connections.py", line 187, in init
    super(Connection, self).init(_args, *_kwargs2)
    _mysql_exceptions.OperationalError: (1045, "Access denied for user 'root'@'localhost' (using password: NO)")
    root@backbox:/home/its_0x08/Desktop/exploits/infernal-twin#

wiki pages are missing?

Hello,

links in wiki do link to missing pages which aren't in repository. This might be a work in progress, although this is currently unclear.

Thanks.

can't run "python InfernalWireless.py"

i get this :
Traceback (most recent call last):
File "InfernalWireless.py", line 82, in
db_setup.create_db(cur, db_setup.INFERNAL_DB, username, password)
File "/root/infernal-twin/Modules/db_setup.py", line 52, in create_db
dbcurr.execute(grant_all)
File "/usr/lib/python2.7/dist-packages/MySQLdb/cursors.py", line 226, in execute
self.errorhandler(self, exc, value)
File "/usr/lib/python2.7/dist-packages/MySQLdb/connections.py", line 36, in defaulterrorhandler
raise errorvalue
_mysql_exceptions.ProgrammingError: (1146, "Table 'mysql.user' doesn't exist")

Can't connect to database..

I gave my credentials correctly to the program, as it asked.. They are also correctly written in dbconnect.conf.
But it tries to connect without a Pasword..
I could normally access my mysql-server using mysql -p
output:
[ ok ] Starting apache2 (via systemctl): apache2.service.
[ ok ] Starting mysql (via systemctl): mysql.service.
DB Config files is found
Traceback (most recent call last):
File "./InfernalWireless.py", line 30, in
cxn = MySQLdb.connect(db='InfernalWireless')
File "/usr/lib/python2.7/dist-packages/MySQLdb/init.py", line 81, in Connect
return Connection(_args, *_kwargs)
File "/usr/lib/python2.7/dist-packages/MySQLdb/connections.py", line 187, in init
super(Connection, self).init(_args, *_kwargs2)
_mysql_exceptions.OperationalError: (1045, "Access denied for user 'root'@'localhost' (using password: NO)")

Image 'ninja_tux.png' is missing

Hello,

image ninja_tux.png is missing. It's being referenced in splash_screen.py. Please, put it in img/ directory or replace with appropriate filename or remove line in question.

Cheers!.

Freshly setup Kali - Can't run infernal twin

Hi,
Just downloaded the setup a fresh install of kali and updated it ( 4.18.0-kali2-amd64 ). After cloning the git and trying to run it, it would give me the error below.

root@test:/opt/infernal-twin# ./InfernalWireless.py
from: too many arguments
from: too many arguments
from: too many arguments
./InfernalWireless.py: line 14: syntax error near unexpected token "scapy.runtime"' ./InfernalWireless.py: line 14: logging.getLogger("scapy.runtime").setLevel(logging.ERROR)'

I managed to fix this by manually running python modules/db_setup.py and entering the username as root and blank password.

Great software, having tons of fun. Thx

appp no longer functions

still has major issues with connecting to mysql database. needs serious updating. spent hours trying to get this to work again and it won't work anymore. Suggested solution does NOT work. Mysql doesn't even accept the cmd.

Linux Fali 4.9.0-kali4-amd64 #1 SMP Debian 4.9.30-1kali1 (2017-06-06) x86_64 GNU/Linux

mysql Ver 15.1 Distrib 10.1.23-MariaDB, for debian-linux-gnu (x86_64) using readline 5.2

hangs when installing needed packages

I'm getting error:
Latest Kali

Processing triggers for systemd (231-4) ...
W: --force-yes is deprecated, use one of the options starting with --allow instead.

After some time terminating process cause it isn't going anywhere, installing RreeRadius
installation goes ok.
Then running Tools > Configure Software
Process starts again, and hangs in with error:

error: package directory 'graphviz' does not exist
/usr/lib/python2.7/distutils/dist.py:267: UserWarning: Unknown distribution option: 'console'
  warnings.warn(msg)
running install
running build
running build_py
error: package directory 'graphviz' does not exist
E: Could not get lock /var/lib/dpkg/lock - open (11: Resource temporarily unavailable)
E: Unable to lock the administration directory (/var/lib/dpkg/), is another process using it?
Reading package lists... Done
Building dependency tree       
Reading state information... Done
dnsmasq is already the newest version (2.76-5).
hostapd is already the newest version (2:2.4-1).
ERROR: unknown command "apt-get"
0 upgraded, 0 newly installed, 0 to remove and 1896 not upgraded.
Requirement already satisfied: reportlab in /usr/local/lib/python2.7/dist-packages
Requirement already satisfied: pip>=1.4.1 in /usr/local/lib/python2.7/dist-packages (from reportlab)
Requirement already satisfied: setuptools>=2.2 in /usr/lib/python2.7/dist-packages (from reportlab)
Requirement already satisfied: pillow>=2.4.0 in /usr/lib/python2.7/dist-packages (from reportlab)

Installing graphviz manually
apt-get -y install graphviz*

running software again and again trying to finish package installation

getting:

E: Could not get lock /var/lib/dpkg/lock - open (11: Resource temporarily unavailable)
E: Unable to lock the administration directory (/var/lib/dpkg/), is another process using it?
/usr/lib/python2.7/distutils/dist.py:267: UserWarning: Unknown distribution option: 'console'
  warnings.warn(msg)
running build
running build_py
Reading package lists... Done
error: package directory 'graphviz' does not exist
/usr/lib/python2.7/distutils/dist.py:267: UserWarning: Unknown distribution option: 'console'
  warnings.warn(msg)
running install
running build
running build_py
error: package directory 'graphviz' does not exist
Building dependency tree       
Reading state information... Done
dnsmasq is already the newest version (2.76-5).
hostapd is already the newest version (2:2.4-1).
ERROR: unknown command "apt-get"
0 upgraded, 0 newly installed, 0 to remove and 1888 not upgraded.
Requirement already satisfied: reportlab in /usr/local/lib/python2.7/dist-packages
Requirement already satisfied: pip>=1.4.1 in /usr/local/lib/python2.7/dist-packages (from reportlab)
Requirement already satisfied: setuptools>=2.2 in /usr/lib/python2.7/dist-packages (from reportlab)
Requirement already satisfied: pillow>=2.4.0 in /usr/lib/python2.7/dist-packages (from reportlab)

running again

ERROR: unknown command "apt-get"
The following additional packages will be installed:
ifupdown
Suggested packages:
rdnssd
The following NEW packages will be installed:
bridge-utils
Requirement already satisfied: reportlab in /usr/local/lib/python2.7/dist-packages
The following packages will be upgraded:
ifupdown
Requirement already satisfied: pip>=1.4.1 in /usr/local/lib/python2.7/dist-packages (from reportlab)
1 upgraded, 1 newly installed, 0 to remove and 1887 not upgraded.
Need to get 34.1 kB/111 kB of archives.
After this operation, 111 kB of additional disk space will be used.
Do you want to continue? [Y/n] Abort.
Requirement already satisfied: setuptools>=2.2 in /usr/lib/python2.7/dist-packages (from reportlab)
Requirement already satisfied: pillow>=2.4.0 in /usr/lib/python2.7/dist-packages (from reportlab)

Installing ifupdown bridge-utils rdnssd manually

and still errors :)  

V3 issues

when running the script i get this..
Traceback (most recent call last):
File "./InfernalWireless.py", line 2, in
import MySQLdb
File "build/bdist.linux-x86_64/egg/MySQLdb/init.py", line 19, in

File "build/bdist.linux-x86_64/egg/_mysql.py", line 7, in
File "build/bdist.linux-x86_64/egg/_mysql.py", line 6, in bootstrap
ImportError: libmariadbclient.so.18: cannot open shared object file: No such file or directory

libmariadbclient.so.18 will not install due too dependencies issues which this isnt in kali repos at all.

Edit: i uninstalled the new version of libmaria3 which uninstalls some hacking tools and other stuff and installed libmariadbclient.so.18 and libmariadb3_10.3-13-1 and now it works then you can reinstall what was uninstalled. it seems V3 of your tool isnt compatible with the newest version of libmaria? perhaps im wrong. I also noticed some functions dont work in infernal-twin like once you click on something nothing happens.

Two Wifi cards

Hey,

How are u? Very very nice work in this project!

I am making some hard test here, and expect give you some feedback.

I have a question for now, i have two cards, one is pci of laptop another is a TP-Link / Bus 001 Device 019: ID 0cf3:9271 Atheros Communications, Inc. AR9271 802.11n

I have also a 25dbi 2.4 ghz antenna booster connect at it, but the Infernal dont start a scan in my usb wifi card?

Some tip to help me guys?

Reggards!

command failed: Too many open files in system (-23)

Hello!

I got this message into console on Recon Wireless / Scan Wireless menu.

~/infernal-twin# python InfernalWireless.py
command failed: Too many open files in system (-23)
All good
command failed: Too many open files in system (-23)

After that i see list of available AP like this

WIRELESS SCAN

[SSID: int BSS: 24:01:c7:15:47:50, Ciphers: CCMP, Channel: 1]

[SSID: HPCM1415, BSS: 94:d8:59:b2:5d:da, Ciphers: TKIP, Channel: 1]

[SSID: inter, BSS: cc:d5:39:cd:55:90, Ciphers: CCMP, Channel: 1]

[SSID: \x00\x00\x00\x00\x00\x00\x00\x00, BSS: d0:5b:a8:9a:37:e4, Ciphers: CCMP, Channel: 11]

[SSID: AndroidAP_1405, BSS: 82:35:c1:dd:6d:6a, Ciphers: CCMP, Channel: 6]

maybe this is fine and i should not notice about this.

PRETTY_NAME="Kali GNU/Linux Rolling"
NAME="Kali GNU/Linux"
ID=kali
VERSION="2019.1"
VERSION_ID="2019.1"
ID_LIKE=debian

Fix permissions

chmod -R 755 *.py
chmod -R 644 *.md
chmod -R 644 Modules/*.txt
chmod -R 644 Modules/*.conf*
chmod -R 644 Modules/*.log

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.