-
-
Notifications
You must be signed in to change notification settings - Fork 2.6k
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
[Rfkill/PyRic issue]: pyric.error: [Errno 19] No device at None #1444
Comments
Hi @s7x, Thanks for reporting this. Development is pretty slow these days. Hopefully, we'll find some time to have a look within the next few months. |
Hi @s7x, First of all, thanks for the detailed report. I'd like to mention PyRIC is a separate library maintained by @wraith-wireless. That being said, I can't replicate your issue on my machine (Ubuntu). When I replicate your experiment with manually pasting the code for P.S. @sophron I was literally just typing this when you commented... |
Hi @JetseVerschuren & @sophron, first of all: thank you for your feedbacks on the issue! No worries on the delays @sophron I understand. It's to help us keep track on the issues encountered on tools in Blackarch's side too :)
Regarding PyRIC causing trouble, I need to specify that I was using the fork from @sophron in my test. I also tried the @wraith-wireless version but I'm having the same issue when running wifiphisher: I did in fact import all the pyric/utils/rfkill.py content in ipython before running the script. |
Hello @s7x , @sophron , friendly Noob here. I was having the same issue on Ubuntu 20.04, re-installed the OS multiple times along with the proper Python packages. It was to no avail. I kept getting the same issue you are having. I found it interesting that when i did a fresh install of Ubuntu 18.04 LTS, and installed the Python packages and dependencies along with sudo apt-get install net-tools, it actually worked. I couldn't get the victim machine to connect to my Evil Twin "Couldn't get IP", but after running the following commands (sudo systemctl disable systemd-resolved.service & |
5.14.0-kali2-amd64 #1 SMP Debian 5.14.9-2kali1 (2021-10-04) x86_64 GNU/Linux |
why sir...help me...broken wifiphisher [*] Starting Wifiphisher 1.4GIT ( https://wifiphisher.org ) at 2021-12-14 11:55 |
@sophron @s7x tracked down to pyric/net/wireless/rfkill_h.py line 123: it says: rfk_rfkill_event = "IBBBB" but should be rfk_rfkill_event = "IBBBBB" at least in my setting (kali linux - debian rolling testing ?? ) i goes that : so : def rfkill_event(idx,rtype,op,hard=0,soft=0): should return a byte more like --> return struct.pack(rfk_rfkill_event,idx,rtype,op,hard,soft, unknown) don't know what the byte is for, according to https://github.com/torvalds/linux/blob/master/include/uapi/linux/rfkill.h is for: struct rfkill_event_ext {
} attribute((packed));` __u8 hard_block_reasons; let me know if you know more, found something : https://patchwork.kernel.org/project/linux-wireless/patch/20201104134641.28816-1-emmanuel.grumbach@intel.com/ |
I just found out what the problem is, I only keep one wireless card, through ifconfig wlan0 down, and then run sudo wifiphisher and it works! |
I have got the below error after install wiifiphisher on ubuntu 22.04 Traceback (most recent call last): |
Version: commit 4e1052f
Description
Information
Hello there!
s7x here, from the Blackarch Linux team. There seems to be an error in the pyric/utils/rfkill.py file in the soft_blocked() function preventing wifiphisher to run properly. I think the problem lies in the rfkill_list() function though. As shown in the screenshot below, when I run the rfkill_list() function, it does not properly indexes the phy#N/wlanN cards/interfaces in the rfks dict.
iw dev showing the phy#N cards/interfaces:
When running rfkill list, I can see that the cards are not blocked (neither hard/soft blocked):
Things tried
Script Output
Don't hesitate to ask if you need more information.
EDIT: typo
Cheers!
The text was updated successfully, but these errors were encountered: