-
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
Does this work on raspberry pi 2/3? #6
Comments
Not sure if the USB ports or other GPIOs can act as USB slaves or not. Would be great if someone can test! |
I just found this, https://www.raspberrypi.org/forums/viewtopic.php?f=63&t=15696 it appears that model A allows it and model B (the one I have) does not. :( I am going to see if I can find some kind of work around... |
In this case, support is a function of hardware - The model A connects the external USB port directly to the Broadcom chip (which supports USB OTG), while the model B or 2/3 use an external USB host chip to drive multiple ports, and does not support OTG. No software workaround possible, sorry 🎱 |
OK, thank you! |
You may be able to bit-bang USB in userland over the GPIOs (instead of depending on hardware USB support) |
it only works on RP zero? right? |
Who checked? |
It should work on the Raspberry Pi Model A, but I haven't checked it yet. |
There are not Raspberry Pi Zero available here, and the shipping costs are more expensive than buying a full Raspberry. So i hope to know what kind of Raspberry should i buy... Any idea? |
Zero and A both have OTG functionality and both have worked for g_ether for me personally so there is no reason that they should not work for this. All other Pis are excluded natively due to their use of a USB Hub. |
Does this work on Raspberry Pi 3? |
@D3sry3R No. |
Would it be possible to connect the Pi (non-zero) to a PC with an Ethernet cable using the port on the Pi and use a power bank to power it? I don't know much about all the chips and stuff in the RPi, but it sounds logic to me. |
That should work if the PC has Ethernet. You could even pull power from USB of the PC. |
Alternatively, another way to use any of the Raspberry Pis that have ethernet is to use Raspberry Pi -> ethernet cable -> ethernet-to-USB/Thunderbolt adapter, then plug it into the target machine via USB/Thunderbolt. The same exploit chain will work like normal, though you'll see some errors from pi_startup.sh and you'll need to adjust all instances of |
@samyk I changed all 'usb0' to 'eth0' an removed the USB setup part. However, I am getting the following errors when trying to execute the script:
It says I have to do something with dhcp.conf, however I can't find that file anywhere. Can you (or someone else) please help me? |
Could it work on a RPi 1 B ? I feel like it'd be a waste of time trying instead of just getting a RPi zero, but maybe someone got it working ? Thanks. |
@plesur Right now I am trying to get this to work on RPi 1 B, but as you can see in my post above, it doesn't work yet. |
Additionally, added further installation instructions in 26dd781 |
Thanks! Its working now. :) |
I am getting this error when I run the pi_startup.sh script on my pi2:
Thanks! |
@zoele running with sudo/root? |
yes, I am running this as root. I am also currently using the Ethernet, I am not sure if that matters. |
Oh, most of pi_startup.sh is meant for the Pi0. Pi2/3 need to change things to use eth0 instead of usb0. Also you're missing a number of packages that aren't installed -- see the install section in the readme. |
Oh. Sorry I did not see the installation section :| |
@samyk Hi, sorry to bring this topic up again. But basically, I followed your previous steps. Changed the installation, and the dhcp.conf file. And I did the thing, where when the rpi3 boots up, it runs the startup file for poisontap. But anyways, it doesn't seem to work. The usb ports don't work (my keyboard doesn't work when I plug it in, but it works on my laptop). Also the Ethernet wont work either. Usually the light of the rpi3 Ethernet port turns on when you plug in the Ethernet, to say, a router. But Ethernet doesn't work! Help is appreciated from anyone. Thanks! |
This is more of a question than an issue. Thanks! :)
The text was updated successfully, but these errors were encountered: