I was able to complete the wifiphisher installation. However, when I typed the command "wifiphisher " I got this error "scapy-layers-dot11"
Any help would be appreciated. Thanks .
@alross371 Did you solve this problem?
I'm having the same issue, but I cant find when it was closed..
Traceback (most recent call last):
File "/usr/local/bin/wifiphisher", line 11, in <module>
load_entry_point('wifiphisher==1.2', 'console_scripts', 'wifiphisher')()
File "/usr/local/lib/python2.7/dist-packages/pkg_resources/__init__.py", line 560, 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 2648, in load_entry_point
return ep.load()
File "/usr/local/lib/python2.7/dist-packages/pkg_resources/__init__.py", line 2302, in load
return self.resolve()
File "/usr/local/lib/python2.7/dist-packages/pkg_resources/__init__.py", line 2308, in resolve
module = __import__(self.module_name, fromlist=['__name__'], level=0)
File "/usr/local/lib/python2.7/dist-packages/wifiphisher-1.2-py2.7.egg/wifiphisher/pywifiphisher.py", line 18, in <module>
import wifiphisher.common.deauth as deauth
File "/usr/local/lib/python2.7/dist-packages/wifiphisher-1.2-py2.7.egg/wifiphisher/common/deauth.py", line 9, in <module>
import scapy.layers.dot11 as dot11
ImportError: No module named scapy.layers.dot11
that is output i am getting when I run
@brianmituka You must install scapy module. You can install scapy using pip like so:
[sudo] pip install scapy
or using apt
[sudo] apt-get install python-scapy
Let me know if you need more help.
I'm closing this issue as it would seem the problem has been resolved. @brianmituka Feel free to comment if you have any more issues.
I'm closing this issue as it would seem the problem has been resolved. @brianmituka Feel free to comment if you have any more issues.
im using ubuntu and scapy is installed but i get this error
WARNING:scapy.runtime:DNS decompression loop detected
if i give scapy command i get this:
scapy
INFO: Can't import matplotlib. Won't be able to plot.
INFO: Can't import PyX. Won't be able to use psdump() or pdfdump().
WARNING: No route found for IPv6 destination :: (no default route?)
INFO: Can't import python-cryptography v1.7+. Disabled WEP decryption/encryption. (Dot11)
INFO: Can't import python-cryptography v1.7+. Disabled IPsec encryption/authentication.
WARNING: IPython not available. Using standard Python shell instead.
AutoCompletion, History are disabled.
this is the dhcpd.conf file:
# dhcpd.conf
#
# Sample configuration file for ISC dhcpd
#
# Attention: If /etc/ltsp/dhcpd.conf exists, that will be used as
# configuration file instead of this file.
#
# option definitions common to all supported networks...
#option domain-name "example.org";
#option domain-name-servers ns1.example.org, ns2.example.org;
default-lease-time 600;
max-lease-time 7200;
# The ddns-updates-style parameter controls whether or not the server will
# attempt to do a DNS update when a lease is confirmed. We default to the
# behavior of the version 2 packages ('none', since DHCP v2 didn't
# have support for DDNS.)
ddns-update-style none;
# If this DHCP server is the official DHCP server for the local
# network, the authoritative directive should be uncommented.
authoritative;
# Use this to send dhcp log messages to a different log file (you also
# have to hack syslog.conf to complete the redirection).
#log-facility local7;
# No service will be given on this subnet, but declaring it helps the
# DHCP server to understand the network topology.
#subnet 10.152.187.0 netmask 255.255.255.0 {
#}
# This is a very basic subnet declaration.
#subnet 10.254.239.0 netmask 255.255.255.224 {
# range 10.254.239.10 10.254.239.20;
# option routers rtr-239-0-1.example.org, rtr-239-0-2.example.org;
#}
# This declaration allows BOOTP clients to get dynamic addresses,
# which we don't really recommend.
#subnet 10.254.239.32 netmask 255.255.255.224 {
# range dynamic-bootp 10.254.239.40 10.254.239.60;
# option broadcast-address 10.254.239.31;
# option routers rtr-239-32-1.example.org;
#}
# A slightly different configuration for an internal subnet.
subnet 192.168.43.0 netmask 255.255.255.0 {
range 192.168.43.100 192.168.43.200;
option domain-name-servers ns1.internal.example.org;
option domain-name "internal.example.org";
option subnet-mask 255.255.255.0;
option routers 192.168.43.255;
option broadcast-address 192.168.43.255;
default-lease-time 600;
max-lease-time 7200;
}
# Hosts which require special configuration options can be listed in
# host statements. If no address is specified, the address will be
# allocated dynamically (if possible), but the host-specific information
# will still come from the host declaration.
#host passacaglia {
# hardware ethernet 0:0:c0:5d:bd:95;
# filename "vmunix.passacaglia";
# server-name "toccata.example.com";
#}
# Fixed IP addresses can also be specified for hosts. These addresses
# should not also be listed as being available for dynamic assignment.
# Hosts for which fixed IP addresses have been specified can boot using
# BOOTP or DHCP. Hosts for which no fixed address is specified can only
# be booted with DHCP, unless there is an address range on the subnet
# to which a BOOTP client is connected which has the dynamic-bootp flag
# set.
#host fantasia {
# hardware ethernet 08:00:07:26:c0:a5;
# fixed-address fantasia.example.com;
#}
# You can declare a class of clients and then do address allocation
# based on that. The example below shows a case where all clients
# in a certain class get addresses on the 10.17.224/24 subnet, and all
# other clients get addresses on the 10.0.29/24 subnet.
#class "foo" {
# match if substring (option vendor-class-identifier, 0, 4) = "SUNW";
#}
#shared-network 224-29 {
# subnet 10.17.224.0 netmask 255.255.255.0 {
# option routers rtr-224.example.org;
# }
# subnet 10.0.29.0 netmask 255.255.255.0 {
# option routers rtr-29.example.org;
# }
# pool {
# allow members of "foo";
# range 10.17.224.10 10.17.224.250;
# }
# pool {
# deny members of "foo";
# range 10.0.29.10 10.0.29.230;
# }
#}
this is the /etc/default/isc-dhcp-server :
GNU nano 4.3 /etc/default/isc-dhcp-server
# Defaults for isc-dhcp-server (sourced by /etc/init.d/isc-dhcp-server)
# Path to dhcpd's config file (default: /etc/dhcp/dhcpd.conf).
#DHCPDv4_CONF=/etc/dhcp/dhcpd.conf
#DHCPDv6_CONF=/etc/dhcp/dhcpd6.conf
# Path to dhcpd's PID file (default: /var/run/dhcpd.pid).
#DHCPDv4_PID=/var/run/dhcpd.pid
#DHCPDv6_PID=/var/run/dhcpd6.pid
# Additional options to start dhcpd with.
# Don't use options -cf or -pf here; use DHCPD_CONF/ DHCPD_PID instead
#OPTIONS=""
# On what interfaces should the DHCP server (dhcpd) serve DHCP requests?
# Separate multiple interfaces with spaces, e.g. "eth0 eth1".
INTERFACESv4="wlx00c0caa51d03"
INTERFACESv6=""
this is ifconfig:
ifconfig
eno2: flags=4099<UP,BROADCAST,MULTICAST> mtu 1500
ether 04:d4:c4:e3:0c:76 txqueuelen 1000 (Ethernet)
RX packets 0 bytes 0 (0.0 B)
RX errors 0 dropped 0 overruns 0 frame 0
TX packets 0 bytes 0 (0.0 B)
TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0
lo: flags=73<UP,LOOPBACK,RUNNING> mtu 65536
inet 127.0.0.1 netmask 255.0.0.0
inet6 ::1 prefixlen 128 scopeid 0x10<host>
loop txqueuelen 1000 (Local Loopback)
RX packets 23029 bytes 2122254 (2.1 MB)
RX errors 0 dropped 0 overruns 0 frame 0
TX packets 23029 bytes 2122254 (2.1 MB)
TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0
wlo1: flags=867<UP,BROADCAST,NOTRAILERS,RUNNING,PROMISC,ALLMULTI> mtu 1500
inet 192.168.43.39 netmask 255.255.255.0 broadcast 192.168.43.255
inet6 fe80::e612:387d:e46d:5cdf prefixlen 64 scopeid 0x20<link>
ether 0c:dd:24:2a:ff:76 txqueuelen 1000 (Ethernet)
RX packets 78788 bytes 52915293 (52.9 MB)
RX errors 0 dropped 0 overruns 0 frame 0
TX packets 55844 bytes 9761181 (9.7 MB)
TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0
wlx00c0caa51d03: flags=4099<UP,BROADCAST,MULTICAST> mtu 1400
ether 00:c0:ca:a5:1d:03 txqueuelen 1000 (Ethernet)
RX packets 36 bytes 5760 (5.7 KB)
RX errors 0 dropped 0 overruns 0 frame 0
TX packets 12 bytes 3536 (3.5 KB)
TX errors 0 dropped 3 overruns 0 carrier 0 collisions 0
and this is iwconfig
eno2 no wireless extensions.
lo no wireless extensions.
wlo1 IEEE 802.11 ESSID:"Azamet"
Mode:Managed Frequency:2.437 GHz Access Point: 2E:0E:3D:A6:43:EF
Bit Rate=115.6 Mb/s Tx-Power=20 dBm
Retry short limit:7 RTS thr:off Fragment thr:off
Power Management:on
Link Quality=66/70 Signal level=-44 dBm
Rx invalid nwid:0 Rx invalid crypt:0 Rx invalid frag:0
Tx excessive retries:10 Invalid misc:13 Missed beacon:0
wlx00c0caa51d03 unassociated ESSID:"" Nickname:"<WIFI@REALTEK>"
Mode:Managed Frequency=2.437 GHz Access Point: Not-Associated
Sensitivity:0/0
Retry:off RTS thr:off Fragment thr:off
Power Management:off
Link Quality=0/100 Signal level=0 dBm Noise level=0 dBm
Rx invalid nwid:0 Rx invalid crypt:0 Rx invalid frag:0
Tx excessive retries:0 Invalid misc:0 Missed beacon:0
thanks for your helps
@brianmituka You must install
scapymodule. You can installscapyusingpiplike so:[sudo] pip install scapyor using
apt[sudo] apt-get install python-scapyLet me know if you need more help.
i got new error after install scapy
Traceback (most recent call last):
File "/usr/local/bin/wifiphisher", line 11, in <module>
load_entry_point('wifiphisher==1.3', 'console_scripts', 'wifiphisher')()
File "/usr/lib/python2.7/dist-packages/pkg_resources/__init__.py", line 489, in load_entry_point
return get_distribution(dist).load_entry_point(group, name)
File "/usr/lib/python2.7/dist-packages/pkg_resources/__init__.py", line 2793, in load_entry_point
return ep.load()
File "/usr/lib/python2.7/dist-packages/pkg_resources/__init__.py", line 2411, in load
return self.resolve()
File "/usr/lib/python2.7/dist-packages/pkg_resources/__init__.py", line 2417, in resolve
module = __import__(self.module_name, fromlist=['__name__'], level=0)
File "/usr/local/lib/python2.7/dist-packages/wifiphisher-1.3-py2.7.egg/wifiphisher/pywifiphisher.py", line 21, in <module>
import wifiphisher.common.phishinghttp as phishinghttp
File "/usr/local/lib/python2.7/dist-packages/wifiphisher-1.3-py2.7.egg/wifiphisher/common/phishinghttp.py", line 2, in <module>
import tornado.ioloop
File "/usr/local/lib/python2.7/dist-packages/tornado-6.0.3-py2.7-linux-x86_64.egg/tornado/ioloop.py", line 67
def fileno(self) -> int:
^
SyntaxError: invalid syntax
Most helpful comment
@brianmituka You must install
scapymodule. You can installscapyusingpiplike so:or using
aptLet me know if you need more help.