Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

/root/wifiphisher/setup.py:19: DeprecationWarning: The distutils.sysconfig module is deprecated, use sysconfig instead import distutils.sysconfig /tmp/tmp_netlink_we3k00we/test_netlink.c:2:10: fatal error: netlink/netlink.h: No such file or directory 2 | #include <netlink/netlink.h> #1621

Open
W4RR3N7-3XP14Y opened this issue Nov 26, 2023 · 2 comments

Comments

@W4RR3N7-3XP14Y
Copy link

ommit bc4a077 (HEAD -> master, origin/master, origin/HEAD)
Author: st1064870 [email protected]
Date: Tue Mar 14 18:11:54 2023 +0200

Fix bug (#1577)

Pass the HTTP port command line option to the HTTPS downgrade/redirect handler.

diff --git a/wifiphisher/common/phishinghttp.py b/wifiphisher/common/phishinghttp.py
index a42843e..5319f00 100644
--- a/wifiphisher/common/phishinghttp.py
+++ b/wifiphisher/common/phishinghttp.py
@@ -31,7 +31,8 @@ credential_log_path = None

class DowngradeToHTTP(tornado.web.RequestHandler):
def get(self):

  •    self.redirect("http://10.0.0.1:8080/")
    
  •    port = self.application.settings.get('port')
    
  •    self.redirect("http://10.0.0.1:{}/".format(port))
    

class BackendHandler(tornado.web.RequestHandler):
@@ -202,7 +203,7 @@ def runHTTPServer(ip, port, ssl_port, t, em):
ui_methods=uimethods)
app.listen(port, address=ip)

  • ssl_app = tornado.web.Application([(r"/.*", DowngradeToHTTP)])
  • ssl_app = tornado.web.Application([(r"/.*", DowngradeToHTTP)], port=port)

    https_server = tornado.httpserver.HTTPServer(
    ssl_app,

cant for the life of me get this program into my kali

root@kali:~/wifiphisher/wifiphisher# iwconfig
lo no wireless extensions.

eth0 no wireless extensions.

wlan0 IEEE 802.11b ESSID:"" Nickname:"WIFI@REALTEK"
Mode:Monitor Frequency:2.412 GHz Access Point: Not-Associated
Sensitivity:0/0
Retry:off RTS thr:off Fragment thr:off
Encryption key:off
Power Management:off
Link Quality=0/100 Signal level=-100 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

root@kali:# git clone https://github.com/wifiphisher/wifiphisher.git
Cloning into 'wifiphisher'...
remote: Enumerating objects: 3964, done.
remote: Counting objects: 100% (17/17), done.
remote: Compressing objects: 100% (15/15), done.
remote: Total 3964 (delta 3), reused 7 (delta 2), pack-reused 3947
Receiving objects: 100% (3964/3964), 12.56 MiB | 7.82 MiB/s, done.
Resolving deltas: 100% (2497/2497), done.
root@kali:
# cd wifiphisher
root@kali:/wifiphisher# sudo python setup.py install
Please use Python 3 to install Wifiphisher.
root@kali:
/wifiphisher# sudo python3 setup.py install
/root/wifiphisher/setup.py:19: DeprecationWarning: The distutils package is deprecated and slated for removal in Python 3.12. Use setuptools or check PEP 632 for potential alternatives
import distutils.sysconfig
/root/wifiphisher/setup.py:19: DeprecationWarning: The distutils.sysconfig module is deprecated, use sysconfig instead
import distutils.sysconfig
/tmp/tmp_netlink_we3k00we/test_netlink.c:2:10: fatal error: netlink/netlink.h: No such file or directory
2 | #include <netlink/netlink.h>
| ^~~~~~~~~~~~~~~~~~~
compilation terminated.
The development package for netlink is required for the compilation of roguehostapd. Please install it and rerun the script (e.g. on Debian-based systems run: apt-get install libnl-3-dev libnl-genl-3-dev

Version: Use git show | grep commit command and paste here the output.

Description: Give a more analytical description here. Let us know how we can reproduce the reported issue. Detail the characteristics of your machine (e.g. Linux distribution and wireless card capabilities) and of the victim devices too (e.g. OS or web browser) if possible. The output of the iw list and iwconfig commands may also be helpful here.

Script output: Paste the output of the tool, including any stack traces.

@W4RR3N7-3XP14Y
Copy link
Author

root@kali:/wifiphisher# apt-get install libnl-3-dev libnl-genl-3-dev
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
E: Unable to locate package libnl-3-dev
E: Unable to locate package libnl-genl-3-dev
root@kali:
/wifiphisher#

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants
@W4RR3N7-3XP14Y and others