wifiphisher / roguehostapd Goto Github PK
View Code? Open in Web Editor NEWHostapd fork including Wi-Fi attacks and providing Python bindings with ctypes.
License: BSD 3-Clause "New" or "Revised" License
Hostapd fork including Wi-Fi attacks and providing Python bindings with ctypes.
License: BSD 3-Clause "New" or "Revised" License
wifiphisher / wifiphisher
Code Issues 104 Pull requests 9 Pulse Community
Jump to bottom Open
How to install roguehostapd ? #1102
@username836
username836 opened this issue
about 21 hours ago
I followed the steps on the git hub roguehostapd and still won't work
@sophron
sophron
commented about 20 hours ago
We won't be able to help you if you don't provide any information.
@username836
username836 commented about 17 hours ago • edited about 17 hours ago
root@kali:~# git clone https://github.com/wifiphisher/roguehostapd
Cloning into 'roguehostapd'...
remote: Enumerating objects: 952, done.
remote: Total 952 (delta 0), reused 0 (delta 0), pack-reused 952
Receiving objects: 100% (952/952), 2.07 MiB | 4.96 MiB/s, done.
Resolving deltas: 100% (254/254), done.
root@kali:~# ls
Desktop Downloads Pictures roguehostapd Videos
Documents Music Public Templates
root@kali:~# cd roguehostapd
root@kali:/roguehostapd# python setup.py install
/tmp/tmp_netlink_vQphiR/test_netlink.c:2:10: fatal error: netlink/netlink.h: No such file or directory
#include <netlink/netlink.h>
^~~~~~~~~~~~~~~~~~~
compilation terminated.
[!] The development package for netlink is missing. Please download it and restart the compilation.If you are on Debian-based system: 'apt-get install libnl-3-dev libnl-genl-3-dev'.
root@kali:/roguehostapd# apt-get install libnl-3-dev libnl-genl-3-dev
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following NEW packages will be installed:
libnl-3-dev libnl-genl-3-dev
0 upgraded, 2 newly installed, 0 to remove and 940 not upgraded.
Need to get 122 kB of archives.
After this operation, 683 kB of additional disk space will be used.
Get:1 http://kali.download/kali kali-rolling/main amd64 libnl-3-dev amd64 3.4.0-1 [102 kB]
Get:2 http://kali.download/kali kali-rolling/main amd64 libnl-genl-3-dev amd64 3.4.0-1 [20.3 kB]
Fetched 122 kB in 1s (210 kB/s)
Selecting previously unselected package libnl-3-dev:amd64.
(Reading database ... 373911 files and directories currently installed.)
Preparing to unpack .../libnl-3-dev_3.4.0-1_amd64.deb ...
Unpacking libnl-3-dev:amd64 (3.4.0-1) ...
Selecting previously unselected package libnl-genl-3-dev:amd64.
Preparing to unpack .../libnl-genl-3-dev_3.4.0-1_amd64.deb ...
Unpacking libnl-genl-3-dev:amd64 (3.4.0-1) ...
Setting up libnl-3-dev:amd64 (3.4.0-1) ...
Setting up libnl-genl-3-dev:amd64 (3.4.0-1) ...
root@kali:~/roguehostapd# python setup.py install
/tmp/tmp_openssl_d22BGa/test_openssl.c:2:10: fatal error: openssl/ssl.h: No such file or directory
#include <openssl/ssl.h>
^~~~~~~~~~~~~~~
compilation terminated.
[!] The development package for openssl is missing. Please download it and restart the compilation.If you are on Debian-based system: 'apt-get install libssl-dev'.
root@kali:~/roguehostapd# apt-get install libssl-dev
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following additional packages will be installed:
libssl1.1
Suggested packages:
libssl-doc
The following NEW packages will be installed:
libssl-dev
The following packages will be upgraded:
libssl1.1
1 upgraded, 1 newly installed, 0 to remove and 939 not upgraded.
Need to get 3,325 kB of archives.
After this operation, 8,114 kB of additional disk space will be used.
Do you want to continue? [Y/n] y
Get:1 http://kali.download/kali kali-rolling/main amd64 libssl1.1 amd64 1.1.1b-1 [1,531 kB]
Get:2 http://kali.download/kali kali-rolling/main amd64 libssl-dev amd64 1.1.1b-1 [1,794 kB]
Fetched 3,325 kB in 1s (4,311 kB/s)
Reading changelogs... Done
Preconfiguring packages ...
(Reading database ... 374059 files and directories currently installed.)
Preparing to unpack .../libssl1.1_1.1.1b-1_amd64.deb ...
Unpacking libssl1.1:amd64 (1.1.1b-1) over (1.1.1a-1) ...
Selecting previously unselected package libssl-dev:amd64.
Preparing to unpack .../libssl-dev_1.1.1b-1_amd64.deb ...
Unpacking libssl-dev:amd64 (1.1.1b-1) ...
Processing triggers for libc-bin (2.28-2) ...
Setting up libssl1.1:amd64 (1.1.1b-1) ...
Setting up libssl-dev:amd64 (1.1.1b-1) ...
Processing triggers for libc-bin (2.28-2) ...
root@kali:~/roguehostapd# python setup.py install
In file included from roguehostapd/hostapd-2_6/src/l2_packet/l2_packet_linux.c:15:
roguehostapd/hostapd-2_6/src/utils/common.h:426: warning: "__bitwise" redefined
#define __bitwise
In file included from /usr/include/linux/filter.h:10,
from roguehostapd/hostapd-2_6/src/l2_packet/l2_packet_linux.c:13:
/usr/include/linux/types.h:22: note: this is the location of the previous definition
#define __bitwise bitwise
roguehostapd/hostapd-2_6/src/ap/ieee802_11.c: In function ‘handle_assoc’:
roguehostapd/hostapd-2_6/src/ap/ieee802_11.c:2154:63: warning: ?: using integer constants in boolean context [-Wint-in-bool-context]
sta->last_subtype == reassoc ? WLAN_FC_STYPE_REASSOC_REQ :
In file included from roguehostapd/hostapd-2_6/src/drivers/driver_nl80211.c:26:
roguehostapd/hostapd-2_6/src/utils/common.h:426: warning: "__bitwise" redefined
#define __bitwise
In file included from /usr/include/linux/sysinfo.h:5,
from /usr/include/linux/kernel.h:5,
from /usr/include/linux/netlink.h:5,
from /usr/include/libnl3/netlink/netlink.h:25,
from /usr/include/libnl3/netlink/genl/genl.h:15,
from roguehostapd/hostapd-2_6/src/drivers/driver_nl80211.c:17:
/usr/include/linux/types.h:22: note: this is the location of the previous definition
#define __bitwise bitwise
roguehostapd/hostapd-2_6/src/drivers/driver_nl80211.c: In function ‘i802_set_wds_sta’:
roguehostapd/hostapd-2_6/src/drivers/driver_nl80211.c:5946:37: warning: ‘.sta’ directive output may be truncated writing 4 bytes into a region of size between 1 and 17 [-Wformat-truncation=]
os_snprintf(name, sizeof(name), "%s.sta%d", bss->ifname, aid);
^~~~
In file included from /usr/include/stdio.h:873,
from roguehostapd/hostapd-2_6/src/utils/includes.h:21,
from roguehostapd/hostapd-2_6/src/drivers/driver_nl80211.c:13:
/usr/include/x86_64-linux-gnu/bits/stdio2.h:67:10: note: ‘__builtin___snprintf_chk’ output between 6 and 32 bytes into a destination of size 17
return __builtin___snprintf_chk (__s, __n, __USE_FORTIFY_LEVEL - 1,
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
__bos (__s), __fmt, __va_arg_pack ());
In file included from roguehostapd/hostapd-2_6/src/drivers/driver_nl80211_capa.c:14:
roguehostapd/hostapd-2_6/src/utils/common.h:426: warning: "__bitwise" redefined
#define __bitwise
In file included from /usr/include/linux/sysinfo.h:5,
from /usr/include/linux/kernel.h:5,
from /usr/include/linux/netlink.h:5,
from /usr/include/libnl3/netlink/netlink.h:25,
from /usr/include/libnl3/netlink/genl/genl.h:15,
from roguehostapd/hostapd-2_6/src/drivers/driver_nl80211_capa.c:12:
/usr/include/linux/types.h:22: note: this is the location of the previous definition
#define __bitwise bitwise
In file included from roguehostapd/hostapd-2_6/src/drivers/driver_nl80211_event.c:14:
roguehostapd/hostapd-2_6/src/utils/common.h:426: warning: "__bitwise" redefined
#define __bitwise
In file included from /usr/include/linux/sysinfo.h:5,
from /usr/include/linux/kernel.h:5,
from /usr/include/linux/netlink.h:5,
from /usr/include/libnl3/netlink/netlink.h:25,
from /usr/include/libnl3/netlink/genl/genl.h:15,
from roguehostapd/hostapd-2_6/src/drivers/driver_nl80211_event.c:12:
/usr/include/linux/types.h:22: note: this is the location of the previous definition
#define __bitwise bitwise
In file included from roguehostapd/hostapd-2_6/src/drivers/driver_nl80211_monitor.c:17:
roguehostapd/hostapd-2_6/src/utils/common.h:426: warning: "__bitwise" redefined
#define __bitwise
In file included from /usr/include/linux/filter.h:10,
from roguehostapd/hostapd-2_6/src/drivers/driver_nl80211_monitor.c:15:
/usr/include/linux/types.h:22: note: this is the location of the previous definition
#define __bitwise bitwise
roguehostapd/hostapd-2_6/src/drivers/driver_nl80211_monitor.c: In function ‘nl80211_create_monitor_interface’:
roguehostapd/hostapd-2_6/src/drivers/driver_nl80211_monitor.c:365:32: warning: ‘%s’ directive output may be truncated writing up to 16 bytes into a region of size 12 [-Wformat-truncation=]
snprintf(buf, IFNAMSIZ, "mon.%s", drv->first_bss->ifname);
^~
In file included from /usr/include/stdio.h:873,
from roguehostapd/hostapd-2_6/src/utils/includes.h:21,
from roguehostapd/hostapd-2_6/src/drivers/driver_nl80211_monitor.c:13:
/usr/include/x86_64-linux-gnu/bits/stdio2.h:67:10: note: ‘__builtin___snprintf_chk’ output between 5 and 21 bytes into a destination of size 16
return __builtin___snprintf_chk (__s, __n, __USE_FORTIFY_LEVEL - 1,
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
__bos (__s), __fmt, __va_arg_pack ());
In file included from roguehostapd/hostapd-2_6/src/drivers/driver_nl80211_scan.c:15:
roguehostapd/hostapd-2_6/src/utils/common.h:426: warning: "__bitwise" redefined
#define __bitwise
In file included from /usr/include/linux/sysinfo.h:5,
from /usr/include/linux/kernel.h:5,
from /usr/include/linux/netlink.h:5,
from /usr/include/libnl3/netlink/netlink.h:25,
from /usr/include/libnl3/netlink/genl/genl.h:15,
from roguehostapd/hostapd-2_6/src/drivers/driver_nl80211_scan.c:13:
/usr/include/linux/types.h:22: note: this is the location of the previous definition
#define __bitwise bitwise
roguehostapd/hostapd-2_6/src/drivers/driver_hostap.c: In function ‘hostap_set_iface_flags’:
roguehostapd/hostapd-2_6/src/drivers/driver_hostap.c:351:35: warning: ‘ap’ directive output may be truncated writing 2 bytes into a region of size between 0 and 16 [-Wformat-truncation=]
os_snprintf(ifname, IFNAMSIZ, "%sap", drv->iface);
^~
In file included from /usr/include/stdio.h:873,
from roguehostapd/hostapd-2_6/src/utils/includes.h:21,
from roguehostapd/hostapd-2_6/src/drivers/driver_hostap.c:9:
/usr/include/x86_64-linux-gnu/bits/stdio2.h:67:10: note: ‘__builtin___snprintf_chk’ output between 3 and 19 bytes into a destination of size 16
return __builtin___snprintf_chk (__s, __n, __USE_FORTIFY_LEVEL - 1,
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
__bos (__s), __fmt, __va_arg_pack ());
roguehostapd/hostapd-2_6/src/drivers/driver_hostap.c: In function ‘hostap_init’:
roguehostapd/hostapd-2_6/src/drivers/driver_hostap.c:234:57: warning: ‘ap’ directive output may be truncated writing 2 bytes into a region of size between 0 and 16 [-Wformat-truncation=]
snprintf(ifr.ifr_name, sizeof(ifr.ifr_name), "%sap", drv->iface);
^~
In file included from /usr/include/stdio.h:873,
from roguehostapd/hostapd-2_6/src/utils/includes.h:21,
from roguehostapd/hostapd-2_6/src/drivers/driver_hostap.c:9:
/usr/include/x86_64-linux-gnu/bits/stdio2.h:67:10: note: ‘__builtin___snprintf_chk’ output between 3 and 19 bytes into a destination of size 16
return __builtin___snprintf_chk (__s, __n, __USE_FORTIFY_LEVEL - 1,
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
__bos (__s), __fmt, __va_arg_pack ());
root@kali:~/roguehostapd# python run.py -i wlan0 --ssid haha
python: can't open file 'run.py': [Errno 2] No such file or directory
@username836
username836
commented about 17 hours ago
The issue is python: can't open file 'run.py when I type:python run.py -i
@username836
username836
commented about 17 hours ago
And when I type root@kali:where is roguehostapd:
It finds nothing
Or locate finds nothing
Which is why wifiphisher will not detect it I think ?
@username836
username836
commented about 17 hours ago
And my interface is wlan0 by the way
Comment on issue
Leave a comment
Close issue Comment
Notifications for this thread
You’re receiving notifications because you authored the thread.
Unsubscribe
Desktop version Sign out
Tried to install roguehostpad
from Github
on a fresh Kali
which prompted for additional dependencies. After installing those python setup.py install
finally succeeds. However roguehostapd is still not installed system wide. @anakin1028 any idea why it is not working?
Here is the output of installation in case it helps.
Please download it and restart the compilation.If you are on Debian-based system: 'apt-get install libnl-3-dev libnl-genl-3-dev'.
When I am getting this error. How to fix the issue... give me the command and download path also..
i am using kali linux 2019 version...
sorry wrong repo
manjaro-deepin
steps:
-cloned the repo
-cd roguehostapd/
-python setup.py install
-got the error below:
Traceback (most recent call last):
File "setup.py", line 15, in
from roguehostapd.config.hostapdconfig import WHITE, RED
File "/opt/roguehostapd/roguehostapd/config/hostapdconfig.py", line 9, in
from ConfigParser import SafeConfigParser
ModuleNotFoundError: No module named 'ConfigParser'
hey, can someone tell me what this issue is?
`HTTP requests: Exception in thread Thread-1 (_listen):
Traceback (most recent call last):
File "/usr/lib/python3/dist-packages/scapy/packet.py", line 372, in getattr
fld, v = self.getfield_and_val(attr)
TypeError: cannot unpack non-iterable NoneType object
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/usr/lib/python3.10/threading.py", line 1009, in _bootstrap_inner
self.run()
File "/usr/lib/python3.10/threading.py", line 946, in run
self._target(*self._args, **self._kwargs)
File "/usr/local/lib/python3.10/dist-packages/wifiphisher-1.4-py3.10.egg/wifiphisher/common/extensions.py", line 368, in _listen
dot11.sniff(
File "/usr/lib/python3/dist-packages/scapy/sendrecv.py", line 1036, in sniff
sniffer._run(*args, **kwargs)
File "/usr/lib/python3/dist-packages/scapy/sendrecv.py", line 989, in _run
session.on_packet_received(p)
File "/usr/lib/python3/dist-packages/scapy/sessions.py", line 82, in on_packet_received
result = self.prn(pkt)
File "/usr/local/lib/python3.10/dist-packages/wifiphisher-1.4-py3.10.egg/wifiphisher/common/extensions.py", line 338, in _process_packet
ext_pkts = extension.get_packet(pkt)
File "/usr/local/lib/python3.10/dist-packages/wifiphisher-1.4-py3.10.egg/wifiphisher/extensions/deauth.py", line 166, in get_packet
channel = ord(packet[dot11.Dot11Elt][2].info)
File "/usr/lib/python3/dist-packages/scapy/packet.py", line 374, in __getattr__
return self.payload.__getattr__(attr)
File "/usr/lib/python3/dist-packages/scapy/packet.py", line 372, in __getattr__
fld, v = self.getfield_and_val(attr)
File "/usr/lib/python3/dist-packages/scapy/packet.py", line 1600, in getfield_and_val
raise AttributeError(attr)
AttributeError: info `
I would like to be able to run multiple instances of roguehostapd with different configs / SSIDs on the same channel.
[] Starting Wifiphisher 1.4GIT ( https://wifiphisher.org ) at 2019-04-05 21:50
[+] Timezone detected. Setting channel range to 1-13
[+] Selecting wlan0 interface for the deauthentication attack
[+] Selecting wfphshr-wlan0 interface for creating the rogue Access Point
[+] Changing wfphshr-wlan0 MAC addr (BSSID) to 00:00:00:62:7a:fa
[!] The MAC address could not be set. (Tried 00:00:00:cd:e3:a9)
[] Cleared leases, started DHCP, set up iptables
[+] Selecting Firmware Upgrade Page template
[] Using hostapd instead of roguehostapd. Many significant features will be turned off.
[] Starting the fake access point...
[!] hostapd failed to lunch!
[+] Show your support!
[+] Follow us: https://twitter.com/wifiphisher
[+] Like us: https://www.facebook.com/Wifiphisher
[+] Captured credentials:
[!] The MAC address could not be set. (Tried 00:00:00:d6:72:0e)
[!] Closing
I'm using an ALFA awus1900...
@sophron @anakin1028 Do you guys think we can use Extensions
from distutils.core
to simplify the build?
from distutils.core import setup, Extension
module1 = Extension('demo',
sources = ['demo.c'])
setup (name = 'PackageName',
version = '1.0',
description = 'This is a demo package',
ext_modules = [module1])
After a clean install on Kali (4.17.0-kali3-amd64), installed roguehostapd, installed standard hostapd, it gives me this error:
root@kali:~# wifiphisher
Traceback (most recent call last):
File "/usr/local/bin/wifiphisher", line 11, in
load_entry_point('wifiphisher==1.4', 'console_scripts', 'wifiphisher')()
File "/usr/local/lib/python2.7/dist-packages/pkg_resources/init.py", line 479, in load_entry_point
return get_distribution(dist).load_entry_point(group, name)
File "/usr/local/lib/python2.7/dist-packages/pkg_resources/init.py", line 2703, in load_entry_point
return ep.load()
File "/usr/local/lib/python2.7/dist-packages/pkg_resources/init.py", line 2321, in load
return self.resolve()
File "/usr/local/lib/python2.7/dist-packages/pkg_resources/init.py", line 2327, in resolve
module = import(self.module_name, fromlist=['name'], level=0)
File "/usr/local/lib/python2.7/dist-packages/wifiphisher-1.4-py2.7.egg/wifiphisher/pywifiphisher.py", line 20, in
import wifiphisher.common.extensions as extensions
File "/usr/local/lib/python2.7/dist-packages/wifiphisher-1.4-py2.7.egg/wifiphisher/common/extensions.py", line 11, in
import scapy.layers.dot11 as dot11
File "/usr/local/lib/python2.7/dist-packages/scapy/layers/dot11.py", line 12, in
from scapy.packet import *
File "/usr/local/lib/python2.7/dist-packages/scapy/packet.py", line 39
class Packet(BasePacket, metaclass = Packet_metaclass):
^
SyntaxError: invalid syntax
Looks like something is wrong in the wlan1 check, whereas wlan1 has the modes. I can't force it to use wlan1 as AP, it wants wlan0
root@kali:~# wifiphisher -i wlan1 -eI wlan1 -aI wlan1
[*] Starting Wifiphisher 1.4GIT ( https://wifiphisher.org ) at 2020-03-01 11:43
[+] Timezone detected. Setting channel range to 1-13
ERROR:root:The following error has occurred:
Traceback (most recent call last):
File "/usr/local/lib/python2.7/dist-packages/wifiphisher-1.4-py2.7.egg/wifiphisher/pywifiphisher.py", line 426, in start
args.apinterface, "AP"):
File "/usr/local/lib/python2.7/dist-packages/wifiphisher-1.4-py2.7.egg/wifiphisher/common/interfaces.py", line 438, in is_interface_valid
raise InvalidInterfaceError(interface_name)
InvalidInterfaceError: The provided interface "wlan1" is invalid![!] The provided interface "wlan1" is invalid!
[+] Show your support!
[+] Follow us: https://twitter.com/wifiphisher
[+] Like us: https://www.facebook.com/Wifiphisher
[+] Captured credentials:
[!] Closing
root@kali:~# wifiphisher -i wlan1
[*] Starting Wifiphisher 1.4GIT ( https://wifiphisher.org ) at 2020-03-01 11:49
[+] Timezone detected. Setting channel range to 1-13
[+] Selecting wfphshr-wlan0 interface for the deauthentication attack
[+] Selecting wlan0 interface for creating the rogue Access Point[+] Changing wlan0 MAC addr (BSSID) to 00:00:00:39:c2:74
[!] The MAC address could not be set. (Tried 00:00:00:db:2d:9e)
[+] Sending SIGKILL to wpa_supplicant
[+] Sending SIGKILL to avahi-daemon
[*] Cleared leases, started DHCP, set up iptables
[+] Show your support!
[+] Follow us: https://twitter.com/wifiphisher
[+] Like us: https://www.facebook.com/Wifiphisher
[+] Captured credentials:
[!] Closing
starting august 13 2021 github does not allow user/pass entry on remote gits
Can someone plz post a step by step of how to add the module by downloading it here and transfering by usb or similiar
I tried and couldnt get it
This is a very interesting project and I liked how the API was used in WiFiPhisher.
I also use hostapd in my project, but in my case I just write the hostapd.conf file and call hostapd-wpe with Popen.
I'm not sure you know this but hostapd-wpe (wireless pwning edition) is a patch for hostapd that facilitates Evil-Twin attacks on enterprise networks (WPA-EAP and such). The patched version is being actively maintained by the authors of aircrack-ng.
Since this project was mainly to developed for WiFiPhisher I think this would be a great addition to the project.
Also I would like to use this library in my project but it needs to support WPA-EAP.
wifiphisher / wifiphisher
Code Issues 104 Pull requests 9 Pulse Community
Jump to bottom Open
How to install roguehostapd ? #1102
@username836
username836 opened this issue
about 21 hours ago
I followed the steps on the git hub roguehostapd and still won't work
@sophron
sophron
commented about 20 hours ago
We won't be able to help you if you don't provide any information.
@username836
username836 commented about 17 hours ago • edited about 17 hours ago
root@kali:~# git clone https://github.com/wifiphisher/roguehostapd
Cloning into 'roguehostapd'...
remote: Enumerating objects: 952, done.
remote: Total 952 (delta 0), reused 0 (delta 0), pack-reused 952
Receiving objects: 100% (952/952), 2.07 MiB | 4.96 MiB/s, done.
Resolving deltas: 100% (254/254), done.
root@kali:~# ls
Desktop Downloads Pictures roguehostapd Videos
Documents Music Public Templates
root@kali:~# cd roguehostapd
root@kali:/roguehostapd# python setup.py install
/tmp/tmp_netlink_vQphiR/test_netlink.c:2:10: fatal error: netlink/netlink.h: No such file or directory
#include <netlink/netlink.h>
^~~~~~~~~~~~~~~~~~~
compilation terminated.
[!] The development package for netlink is missing. Please download it and restart the compilation.If you are on Debian-based system: 'apt-get install libnl-3-dev libnl-genl-3-dev'.
root@kali:/roguehostapd# apt-get install libnl-3-dev libnl-genl-3-dev
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following NEW packages will be installed:
libnl-3-dev libnl-genl-3-dev
0 upgraded, 2 newly installed, 0 to remove and 940 not upgraded.
Need to get 122 kB of archives.
After this operation, 683 kB of additional disk space will be used.
Get:1 http://kali.download/kali kali-rolling/main amd64 libnl-3-dev amd64 3.4.0-1 [102 kB]
Get:2 http://kali.download/kali kali-rolling/main amd64 libnl-genl-3-dev amd64 3.4.0-1 [20.3 kB]
Fetched 122 kB in 1s (210 kB/s)
Selecting previously unselected package libnl-3-dev:amd64.
(Reading database ... 373911 files and directories currently installed.)
Preparing to unpack .../libnl-3-dev_3.4.0-1_amd64.deb ...
Unpacking libnl-3-dev:amd64 (3.4.0-1) ...
Selecting previously unselected package libnl-genl-3-dev:amd64.
Preparing to unpack .../libnl-genl-3-dev_3.4.0-1_amd64.deb ...
Unpacking libnl-genl-3-dev:amd64 (3.4.0-1) ...
Setting up libnl-3-dev:amd64 (3.4.0-1) ...
Setting up libnl-genl-3-dev:amd64 (3.4.0-1) ...
root@kali:~/roguehostapd# python setup.py install
/tmp/tmp_openssl_d22BGa/test_openssl.c:2:10: fatal error: openssl/ssl.h: No such file or directory
#include <openssl/ssl.h>
^~~~~~~~~~~~~~~
compilation terminated.
[!] The development package for openssl is missing. Please download it and restart the compilation.If you are on Debian-based system: 'apt-get install libssl-dev'.
root@kali:~/roguehostapd# apt-get install libssl-dev
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following additional packages will be installed:
libssl1.1
Suggested packages:
libssl-doc
The following NEW packages will be installed:
libssl-dev
The following packages will be upgraded:
libssl1.1
1 upgraded, 1 newly installed, 0 to remove and 939 not upgraded.
Need to get 3,325 kB of archives.
After this operation, 8,114 kB of additional disk space will be used.
Do you want to continue? [Y/n] y
Get:1 http://kali.download/kali kali-rolling/main amd64 libssl1.1 amd64 1.1.1b-1 [1,531 kB]
Get:2 http://kali.download/kali kali-rolling/main amd64 libssl-dev amd64 1.1.1b-1 [1,794 kB]
Fetched 3,325 kB in 1s (4,311 kB/s)
Reading changelogs... Done
Preconfiguring packages ...
(Reading database ... 374059 files and directories currently installed.)
Preparing to unpack .../libssl1.1_1.1.1b-1_amd64.deb ...
Unpacking libssl1.1:amd64 (1.1.1b-1) over (1.1.1a-1) ...
Selecting previously unselected package libssl-dev:amd64.
Preparing to unpack .../libssl-dev_1.1.1b-1_amd64.deb ...
Unpacking libssl-dev:amd64 (1.1.1b-1) ...
Processing triggers for libc-bin (2.28-2) ...
Setting up libssl1.1:amd64 (1.1.1b-1) ...
Setting up libssl-dev:amd64 (1.1.1b-1) ...
Processing triggers for libc-bin (2.28-2) ...
root@kali:~/roguehostapd# python setup.py install
In file included from roguehostapd/hostapd-2_6/src/l2_packet/l2_packet_linux.c:15:
roguehostapd/hostapd-2_6/src/utils/common.h:426: warning: "__bitwise" redefined
#define __bitwise
In file included from /usr/include/linux/filter.h:10,
from roguehostapd/hostapd-2_6/src/l2_packet/l2_packet_linux.c:13:
/usr/include/linux/types.h:22: note: this is the location of the previous definition
#define __bitwise bitwise
roguehostapd/hostapd-2_6/src/ap/ieee802_11.c: In function ‘handle_assoc’:
roguehostapd/hostapd-2_6/src/ap/ieee802_11.c:2154:63: warning: ?: using integer constants in boolean context [-Wint-in-bool-context]
sta->last_subtype == reassoc ? WLAN_FC_STYPE_REASSOC_REQ :
In file included from roguehostapd/hostapd-2_6/src/drivers/driver_nl80211.c:26:
roguehostapd/hostapd-2_6/src/utils/common.h:426: warning: "__bitwise" redefined
#define __bitwise
In file included from /usr/include/linux/sysinfo.h:5,
from /usr/include/linux/kernel.h:5,
from /usr/include/linux/netlink.h:5,
from /usr/include/libnl3/netlink/netlink.h:25,
from /usr/include/libnl3/netlink/genl/genl.h:15,
from roguehostapd/hostapd-2_6/src/drivers/driver_nl80211.c:17:
/usr/include/linux/types.h:22: note: this is the location of the previous definition
#define __bitwise bitwise
roguehostapd/hostapd-2_6/src/drivers/driver_nl80211.c: In function ‘i802_set_wds_sta’:
roguehostapd/hostapd-2_6/src/drivers/driver_nl80211.c:5946:37: warning: ‘.sta’ directive output may be truncated writing 4 bytes into a region of size between 1 and 17 [-Wformat-truncation=]
os_snprintf(name, sizeof(name), "%s.sta%d", bss->ifname, aid);
^~~~
In file included from /usr/include/stdio.h:873,
from roguehostapd/hostapd-2_6/src/utils/includes.h:21,
from roguehostapd/hostapd-2_6/src/drivers/driver_nl80211.c:13:
/usr/include/x86_64-linux-gnu/bits/stdio2.h:67:10: note: ‘__builtin___snprintf_chk’ output between 6 and 32 bytes into a destination of size 17
return __builtin___snprintf_chk (__s, __n, __USE_FORTIFY_LEVEL - 1,
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
__bos (__s), __fmt, __va_arg_pack ());
In file included from roguehostapd/hostapd-2_6/src/drivers/driver_nl80211_capa.c:14:
roguehostapd/hostapd-2_6/src/utils/common.h:426: warning: "__bitwise" redefined
#define __bitwise
In file included from /usr/include/linux/sysinfo.h:5,
from /usr/include/linux/kernel.h:5,
from /usr/include/linux/netlink.h:5,
from /usr/include/libnl3/netlink/netlink.h:25,
from /usr/include/libnl3/netlink/genl/genl.h:15,
from roguehostapd/hostapd-2_6/src/drivers/driver_nl80211_capa.c:12:
/usr/include/linux/types.h:22: note: this is the location of the previous definition
#define __bitwise bitwise
In file included from roguehostapd/hostapd-2_6/src/drivers/driver_nl80211_event.c:14:
roguehostapd/hostapd-2_6/src/utils/common.h:426: warning: "__bitwise" redefined
#define __bitwise
In file included from /usr/include/linux/sysinfo.h:5,
from /usr/include/linux/kernel.h:5,
from /usr/include/linux/netlink.h:5,
from /usr/include/libnl3/netlink/netlink.h:25,
from /usr/include/libnl3/netlink/genl/genl.h:15,
from roguehostapd/hostapd-2_6/src/drivers/driver_nl80211_event.c:12:
/usr/include/linux/types.h:22: note: this is the location of the previous definition
#define __bitwise bitwise
In file included from roguehostapd/hostapd-2_6/src/drivers/driver_nl80211_monitor.c:17:
roguehostapd/hostapd-2_6/src/utils/common.h:426: warning: "__bitwise" redefined
#define __bitwise
In file included from /usr/include/linux/filter.h:10,
from roguehostapd/hostapd-2_6/src/drivers/driver_nl80211_monitor.c:15:
/usr/include/linux/types.h:22: note: this is the location of the previous definition
#define __bitwise bitwise
roguehostapd/hostapd-2_6/src/drivers/driver_nl80211_monitor.c: In function ‘nl80211_create_monitor_interface’:
roguehostapd/hostapd-2_6/src/drivers/driver_nl80211_monitor.c:365:32: warning: ‘%s’ directive output may be truncated writing up to 16 bytes into a region of size 12 [-Wformat-truncation=]
snprintf(buf, IFNAMSIZ, "mon.%s", drv->first_bss->ifname);
^~
In file included from /usr/include/stdio.h:873,
from roguehostapd/hostapd-2_6/src/utils/includes.h:21,
from roguehostapd/hostapd-2_6/src/drivers/driver_nl80211_monitor.c:13:
/usr/include/x86_64-linux-gnu/bits/stdio2.h:67:10: note: ‘__builtin___snprintf_chk’ output between 5 and 21 bytes into a destination of size 16
return __builtin___snprintf_chk (__s, __n, __USE_FORTIFY_LEVEL - 1,
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
__bos (__s), __fmt, __va_arg_pack ());
In file included from roguehostapd/hostapd-2_6/src/drivers/driver_nl80211_scan.c:15:
roguehostapd/hostapd-2_6/src/utils/common.h:426: warning: "__bitwise" redefined
#define __bitwise
In file included from /usr/include/linux/sysinfo.h:5,
from /usr/include/linux/kernel.h:5,
from /usr/include/linux/netlink.h:5,
from /usr/include/libnl3/netlink/netlink.h:25,
from /usr/include/libnl3/netlink/genl/genl.h:15,
from roguehostapd/hostapd-2_6/src/drivers/driver_nl80211_scan.c:13:
/usr/include/linux/types.h:22: note: this is the location of the previous definition
#define __bitwise bitwise
roguehostapd/hostapd-2_6/src/drivers/driver_hostap.c: In function ‘hostap_set_iface_flags’:
roguehostapd/hostapd-2_6/src/drivers/driver_hostap.c:351:35: warning: ‘ap’ directive output may be truncated writing 2 bytes into a region of size between 0 and 16 [-Wformat-truncation=]
os_snprintf(ifname, IFNAMSIZ, "%sap", drv->iface);
^~
In file included from /usr/include/stdio.h:873,
from roguehostapd/hostapd-2_6/src/utils/includes.h:21,
from roguehostapd/hostapd-2_6/src/drivers/driver_hostap.c:9:
/usr/include/x86_64-linux-gnu/bits/stdio2.h:67:10: note: ‘__builtin___snprintf_chk’ output between 3 and 19 bytes into a destination of size 16
return __builtin___snprintf_chk (__s, __n, __USE_FORTIFY_LEVEL - 1,
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
__bos (__s), __fmt, __va_arg_pack ());
roguehostapd/hostapd-2_6/src/drivers/driver_hostap.c: In function ‘hostap_init’:
roguehostapd/hostapd-2_6/src/drivers/driver_hostap.c:234:57: warning: ‘ap’ directive output may be truncated writing 2 bytes into a region of size between 0 and 16 [-Wformat-truncation=]
snprintf(ifr.ifr_name, sizeof(ifr.ifr_name), "%sap", drv->iface);
^~
In file included from /usr/include/stdio.h:873,
from roguehostapd/hostapd-2_6/src/utils/includes.h:21,
from roguehostapd/hostapd-2_6/src/drivers/driver_hostap.c:9:
/usr/include/x86_64-linux-gnu/bits/stdio2.h:67:10: note: ‘__builtin___snprintf_chk’ output between 3 and 19 bytes into a destination of size 16
return __builtin___snprintf_chk (__s, __n, __USE_FORTIFY_LEVEL - 1,
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
__bos (__s), __fmt, __va_arg_pack ());
root@kali:~/roguehostapd# python run.py -i wlan0 --ssid haha
python: can't open file 'run.py': [Errno 2] No such file or directory
@username836
username836
commented about 17 hours ago
The issue is python: can't open file 'run.py when I type:python run.py -i
@username836
username836
commented about 17 hours ago
And when I type root@kali:where is roguehostapd:
It finds nothing
Or locate finds nothing
Which is why wifiphisher will not detect it I think ?
@username836
username836
commented about 17 hours ago
And my interface is wlan0 by the way
Comment on issue
Leave a comment
Close issue Comment
Notifications for this thread
You’re receiving notifications because you authored the thread.
Unsubscribe
Desktop version Sign out
after trying to clone it asks for a user name and password for https://github.com nothing works
I am using kali linux 2.0, i have dell latitude e6410..
I am haing touble to install hostapdfile:///root/Pictures/Screenshot%20from%202018-05-12%2015:54:53.png
This tool is outdatedness
Hi, I'm trying to install roguehostapd on OpenWRT but without success... When I run the command
python setup.py install
I got these errors:
/tmp/tmp_netlink_r6Pneo/test_netlink.c:2:10: fatal error: netlink/netlink.h: No such file or directory
#include <netlink/netlink.h>
^~~~~~~~~~~~~~~~~~~
compilation terminated.
mipsel-openwrt-linux-musl-gcc: internal compiler error: Segmentation fault (program as)
Please submit a full bug report,
with preprocessed source if appropriate.
See <https://dev.openwrt.org/> for instructions.
[!] The development package for netlink is missing. Please download it and restart the compilation.If you are on Debian-based system: 'apt-get install libnl-3-dev libnl-genl-3-dev'.
I have installed libnl-core, libnl-genl, libnl-nf, libnl-route
and libnl-tiny
but I cannot install it.
What's the problem?
While tyring to connect to the AP, it doesn't retreive any IP address.
I am trying to install wifiphisher' on MacOS which has the
roguehostapd' as requirement. When I try to build roguehostapd' using the setup file it throws the error:
[!] libnl-genl-3-dev is not found in the system!The requirements for
roguehostapd, i.e,
libnl-3-dev,
libnl-genl-3-dev&
libssl-dev` are not available for MacOS (refer libnl), then how am I supposed to install wifiphisher on MacOS?
commit eb077f0
elementary OS 0.4.1 Loki (Ubuntu 16.04.3 LTS)
Hi! I encountered this problem when using wifiphisher. When I create an access point using karma attack (-kA
) for reasons I do not understand, the access point has the name of my router to which this interface was previously connected.
Just create an access point with karma:
sudo python run.py -ssid rogue -i wlp1s0 -kA
Output:
Configuration file: /tmp/hostapd.conf
Using interface wlp1s0 with hwaddr b0:c0:90:47:28:83 and ssid "rogue"
wlp1s0: interface state UNINITIALIZED->ENABLED
wlp1s0: AP-ENABLED
wlp1s0: interface state ENABLED->DISABLED
Removing karma station da:a1:19:23:93:21
Removing karma station da:a1:19:4d:bf:05
Removing karma station b4:18:d1:2f:53:e6
wlp1s0: AP-DISABLED
nl80211: deinit ifname=wlp1s0 disabled_11b_rates=0
APs on my phone:
1 - My router, my phone is connected
2 - New cloned AP
wlp1s0 info:
Link encap:Ethernet HWaddr b0:c0:90:47:28:83
inet addr:192.168.0.104 Bcast:192.168.0.255 Mask:255.255.255.0
inet6 addr: fe80::4507:ef70:3672:7797/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1400 Metric:1
RX packets:633046 errors:0 dropped:1 overruns:0 frame:0
TX packets:520182 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:737631348 (737.6 MB) TX bytes:66158646 (66.1 MB)
Using wifiphisher:
sudo wifiphisher -aI wlp1s0 -eI wlx20e317038ec9 -iI enp0s20u2
[*] Starting Wifiphisher 1.4GIT ( https://wifiphisher.org ) at 2018-06-15 10:05
No handlers could be found for logger "wifiphisher.interfaces"
[+] Selecting wlx20e317038ec9 interface for the deauthentication attack
[+] Selecting wlp1s0 interface for creating the rogue Access Point
[+] Changing wlp1s0 MAC addr (BSSID) to 00:00:00:4b:1c:87
[+] Changing wlx20e317038ec9 MAC addr to 00:00:00:7a:e7:46
[*] Cleared leases, started DHCP, set up iptables
[+] Selecting Firmware Upgrade Page template
[*] Starting the fake access point...
1 - My router, my phone is connected
2 - New cloned AP
3 - My target AP (evil twin)
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.