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

Run from a headless pi #30

Open
igeometrix opened this issue Feb 24, 2024 · 9 comments
Open

Run from a headless pi #30

igeometrix opened this issue Feb 24, 2024 · 9 comments

Comments

@igeometrix
Copy link

I don't see in the documentation how exactly I can run this from a headless pi. How do configure it and then how do I actually get to control or select any of the modules. I basically have it setup on my pi to auto run like the documentation shows but can I say, ssh into the pi and get to a menu of sorts or am I going about it the wrong way?

@whatotter
Copy link
Owner

running headless is possible, but in the config.toml VNC must be enabled. once that's done, you need to clone the pwnhyve repo to your PC, and then go to the vnc folder, then do python3 stream.py (ip address of your pwnhyve pi).

if you want to do wifi hacking while using vnc you need a second wifi adapter, because when pwnhyve puts wlan0 into monitor mode it'll kill your session and you won't be able to get it back

VNC is also still experimental, report any issues you have on it :)

@igeometrix
Copy link
Author

OK thank you, I got it going but sometimes the interface has info available and sometimes its just blank after I connect the IP. Maybe I should reinstall on my pi since I see you've been updating quite a bit lately. Is there a good way to just update a current install on my pi?

@igeometrix
Copy link
Author

Main issue is that even when it connects and I have some options on the interface.. I only see a few and say I go into /Hotplug.. it then fails on the raspi side and disconnects from the stream.py. Do you have any input on this or do you think the update as I said above could fix all this? Also curious where the hoaxshell rev shell setup is at within the menus?

@whatotter
Copy link
Owner

OK thank you, I got it going but sometimes the interface has info available and sometimes its just blank after I connect the IP. Maybe I should reinstall on my pi since I see you've been updating quite a bit lately. Is there a good way to just update a current install on my pi?

as for right now, the systeminfo util is kinda broken and other plugins are being prioritised

and as for updating, you'd have to ssh into the pi and git clone the new repository - an auto update is in the works but redundancy is something highly prioritised too, so even if the update fails for some reason it should still work

@whatotter
Copy link
Owner

Main issue is that even when it connects and I have some options on the interface.. I only see a few and say I go into /Hotplug.. it then fails on the raspi side and disconnects from the stream.py. Do you have any input on this or do you think the update as I said above could fix all this? Also curious where the hoaxshell rev shell setup is at within the menus?

as for the raspi issue, I've never seen that happen and i use the vnc plugin almost daily, try git cloning the new repository on your pi and then show the logs here 🙂

the hoax shell plugin is being reworked at the moment but it should be under /Hotplug afaik, if not then it should be implemented next update (if I'm not lazy)

@igeometrix
Copy link
Author

igeometrix commented Feb 25, 2024

Here's some screens with the errors im getting.. some from my machine and some from the pi (ssh)
pwnhyve1
pwnhyve3
pwnhyve2
pwnhyve4

This is what im getting after trying to go into /Hotplug

@whatotter
Copy link
Owner

try updating the pi and then making sure you went successfully through the badusb setup, it might be because /dev/hidg0 doesn't exist, weird

@igeometrix
Copy link
Author

I just ran through and checked everything and it seems that it is installed correctly.. I'm not sure what is causing this tbh. I have my usb plugged into the inner most input on the pi and yes I don't see /dev/hidg0 but was that supposed to be there before the install because I don't see where I was supposed to set that up.

@whatotter
Copy link
Owner

is the cable your using data? did you reboot the pi after installing? if you can, try a different port too

another thing you can try is doing sudo /bin/pwnhyveusb (or wherever your usb init module is) while the pi is connected

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

2 participants