BastilleResearch / mousejack

MouseJack device discovery and research tools
GNU General Public License v3.0
1.28k stars 254 forks source link

Error 1 #55

Closed throwawaya609 closed 1 year ago

throwawaya609 commented 1 year ago

image Hello, i'm trying to install the mousejack firmware for the crazyradio dongle and it's giving me this error i've tried a lot of things to no avail, can anyone help me? Thanks image

dsyncd commented 1 year ago

The flash usb is done in python2 and they've never updated to python3 syntax. I don't know if this works as I fixed it myself but there's this: https://github.com/BastilleResearch/nrf-research-firmware/pull/32/commits/ceb6d40f6634fee459506c336f24b407fa4a0c1e

My code actually worked on my crazyradio pa. I found the commit above way after flashing mine. Mine worked for me but I don't take responsibility on bricking something: https://github.com/dsyncd/Python/blob/main/mousejack-usb-flash

I basically commented out the usb.core import check. Changed the usb import to usb.core from the start. Added the b in this area of the code: "data += (b'\000" and changed tostring() to tobytes() in this line block_read = array.array('B', dongle.read(0x81, 64, usb_timeout)).tobytes().

After that I ran the python script I made and pointed it to the .bin file in the bin folder that was made in your nrf-research-firmware file. Unplugged it the Crazyradio and plugged it back up and you'll see the red light stay on. Then you can run the Jackit github project. I haven't been able to get the Jackit payloads to run yet but I suspect I have a patched/updated logitech dongle I'm running it against. You'll have to install powershell empire if you run the .ps1 exploit in the examples folder.

dsyncd commented 1 year ago

FYI: This is the first time I've done something like this and it's more of a hack to get it to just work. :D

throwawaya609 commented 1 year ago

Thanks for the comment! I tried your code and I got this error: image

throwawaya609 commented 1 year ago

Holy f dude, you are the man who cares what the error said you got it to work lmfaoo thank you !

dsyncd commented 1 year ago

LOL awesome.