Open MR-Diamond opened 1 year ago
Change lines 199 +200 in the wifijammer source code to this: info = fcntl.ioctl(s.fileno(), 0x8927, struct.pack('256s', bytes(mon_iface).encode('utf-8')[:15])) mac = ':'.join('%02x' % ord(b) for b in info[18:24])
Done, but now I get a different error:
You must have made a mistake typing in the correction. Python follows strict indentation rules. Everything must line up as it was before. Start over.
Fixed, but I still get an error about utf-8:
Idk. I got mine working on a Rasp Pi 2B with Python 2.71. Could be your version of Python is the issue.
Change line 317 to: print('['+T+''+W+'] '+O+ca[0]+W +' - '+O+ca[1]+ W+' - '+ca[2].ljust(2)+' - '+T+ca[3].decode("ascii")+W) Line 325 to: print('['+T+''+W+'] '+O+ap[0]+W+' - ' + ap[1].ljust(2)+' - '+T+ap[2].decode("ascii")+W)
And then manually install the latest version of Scapy: wget --trust-server-names https://github.com/secdev/scapy/archive/master.zip # or wget -O master.zip https://github.com/secdev/scapy/archive/master.zip unzip master.zip cd scapy sudo python setup.py install
@davidm71 or @MR-Diamond can you throw me a PR with that change.
@DanMcInerney Pull Request? Not sure how to do that though I have modified the code to work both on Raspberry Pi 2B-Raspbian/Python 2.7 and Raspberry Pi 2B - Kali/Python 3.10.9. All required were minor edits though each one different. Will share once I understand how to PR you.
Hi, I attempt to run wifijammer in Termux; I have installed python, scapy and iwconfig. But as I execute
tsudo python wifijammer
I got:Am I miss something?