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

error on running #1638

Open
Aggelos11 opened this issue Mar 15, 2024 · 4 comments
Open

error on running #1638

Aggelos11 opened this issue Mar 15, 2024 · 4 comments

Comments

@Aggelos11
Copy link

udo wifiphisher
[*] Starting Wifiphisher 1.4GIT ( https://wifiphisher.org/ ) at 2024-03-15 21:04
[+] Timezone detected. Setting channel range to 1-13
[+] Selecting wlan0 interface for the deauthentication attack
[+] Selecting wlan1 interface for creating the rogue Access Point
[+] Changing wlan1 MAC addr (BSSID) to 00:00:00:d4:12:aa
[+] Changing wlan1 MAC addr (BSSID) to 00:00:00:52:12:4b
Traceback (most recent call last):
File "/usr/bin/wifiphisher", line 33, in
sys.exit(load_entry_point('wifiphisher==1.4', 'console_scripts', 'wifiphisher')())
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/lib/python3/dist-packages/wifiphisher/pywifiphisher.py", line 762, in run
engine.start()
File "/usr/lib/python3/dist-packages/wifiphisher/pywifiphisher.py", line 536, in start
self.network_manager.unblock_interface(ap_iface)
File "/usr/lib/python3/dist-packages/wifiphisher/common/interfaces.py", line 649, in unblock_interface
pyw.unblock(card)
File "/usr/local/lib/python3.11/dist-packages/pyric/pyw.py", line 628, in unblock
rfkill.rfkill_unblock(idx)
File "/usr/local/lib/python3.11/dist-packages/pyric/utils/rfkill.py", line 135, in rfkill_unblock
fout.write(rfke)
TypeError: write() argument must be str, not bytes

@dijey099
Copy link

edit rfkill.py file like follow and replace fout = open(dpath, 'w') to fout = open(dpath, 'wb')
nano /usr/local/lib/python3.11/dist-packages/pyric/utils/rfkill.py

@Aggelos11
Copy link
Author

Will that fix it ??

@Aggelos11
Copy link
Author

edit rfkill.py file like follow and replace fout = open(dpath, 'w') to fout = open(dpath, 'wb') nano /usr/local/lib/python3.11/dist-packages/pyric/utils/rfkill.py

Will it fix it?

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

3 participants
@Aggelos11 @dijey099 and others