-
Notifications
You must be signed in to change notification settings - Fork 995
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
Windows support #8
Comments
At least on Windows 7 it's supported, but you have to point it to the driver manually like this: Not sure if it's possible to make it automatically recognize it. |
Last I checked, this has no support for Windows 19. |
So I think we agree to say that poisontap cannot hack a Windows PC as described in the README. |
confirmed working on win10 |
Manually installing a hack doesn't count as it working. |
Windows 10 required no intervention. Auto installs. |
tested on win7 x64 sp1, win8.1 x64, win10 and not working: the pi zero is detected as "Other devices => RNDIS/Ethernet Gadget". any hints to make it auto install? |
I've tested this on Windows 10 without any signs of the RNDIS device showing up in Device Manager.. I may need to reinstall Raspian to verify that this is not a problem with preexisting/conflicting software. |
The only way to get this to "auto install" is to manually exploit your machine by installing the driver then using the device. (This requires the machine to be unlocked and the user to have elevated privileges.) After the driver is installed then this "attack" will work. But the exploit was the driver install not this device. |
Windows 10 works without a problem. I have my target machine on wifi and when the pi is plugged in, it connects to the Ethernet gadget and launches PoisonTap. |
I've also tested on a Windows 10 machine without requiring installing anything. Perhaps some versions come with the driver installed. @mwwhited sounds like you're more familiar with this area, do you want to provide some suggestions in the case of the systems that do not autoload? Do you know if all ethernet-to-USB dongles use this same driver or other drivers that may provide automatic access across a wider base of users? Perhaps there's another driver we can emulate on the RPi. |
I just tried on a second machine - vanilla win10 pro install. Device auto installs and comes up - it did fail the first time I plugged it in (driver installed but device issue) I unplugged and plugged back in and it came up fine. |
I've tried several Win10 systems, and whilst the 'PoisonTap' USB Composite device installs, the CDC ECM nic driver does not |
Thanks for sharing @brew-ninja, appreciate the help! |
Thanks. Could you do me a favour and confirm what "Bus reported device description" and "Hardware Ids" shows for that device |
Bus reported device description: RNDIS/Ethernet Gadget Blocking the device ID via local/group policy was the basis of this mitigation I suggested: #26 |
On some machines it is installed and recognized as a serial port, thus not working. The only solution in such a case is to take the serial port, update manually the drivers to the Acer RNDIS/Ethernet Gadget and then it will work. It was not working at first for me (but it is not a Poisontap related issue, more of a raspberry installation issue) |
I have tested poisontab in three different windows seven pro machines, in each case installing the Rdnis driver manually is required for the ethernet adapter to work. I have found this page and a Pdf I have tried adding a bDeviceSubClass with a value of 0x04, with no luck but I'am quite sure we can find a way to make it work. By the way thanks for the awesome work ! |
I did some more poking, and I found that the guys at ev3 (linux for Lego Mindstorm) have found a usb gadget config that appears to works : https://github.com/ev3dev/ev3-systemd/blob/ev3dev-jessie/scripts/ev3-usb.sh Will try it tomorrow and make a pull request if it's really working. |
I modified the script: |
Oh awesome! I don't have Windows available anymore but I will attempt to test on macOS 10.12.1. Someone able to test on Linux would be helpful too. |
kali install => $ dmesg $ lsusb $ ifconfig |
@aricel |
works on win10 |
Fiy on my rasbian when using the g_ether module, the configfs information in the startup.sh script is not taken into account and the usb gadget default to standard value, I have to load the libcomposite module in order for the configfs to be used. |
@mmourey - I managed to get this working on Windows 8 & 10 with auto installing the driver. Thanks for the hints you included in your previous posts :) However, I failed to do the same for Windows 7. I'm not sure if it's a protection mechanism for the image I have. Did you manage to get it working on Win 7? see attached img from Win 8 of the rpi zero without any additional driver (or manual installation) |
@AddaxSoft did you try the EV3 USB VID/PID in pi_startup.sh? echo 0x04b3 > idVendor
echo 0x4010 > idProduct |
Hello, |
You may want to try this version which has automatic OS detection and adjusts setup based on it: |
@chuspepe79 did it worked? |
@aricel hi can i ask u a few questions via email or something? |
@SammyK |
I was having real problems with this (after initially having it working and then corrupting my SD card). It turned out that things were fine using a cable but I'd re-done my soldering of the USB-Stem for the PiZeroW and now it's no longer being detected by Windows. To clarify; the same PiZero is detected by Windows 10 as "unidentified device" when connected via the stem but is correctly identified as RNDIS/Ethernet when connected via a micro USB cable. I may need to re-re-do my (dodgy) soldering ;-) |
There is a better way to fix this issue, than using a the vid/pid option.... While this works, you might not want your end device to use those values..... This is where the os descriptors come in echo 1 > os_desc/use If you add this to the RNDIS config section, you can keep any VID/PID, and windows will always detect the driver. That being said, if someone knows how to get RNDIS to work on windows when part of a composite gadget, that would be really helpful. |
Does poisontap really work with Windows 7 or 19?
AFAIK, CDC ECM is not supported so Windows should never see the device as an ethernet device.
The text was updated successfully, but these errors were encountered: