RoganDawes / P4wnP1

P4wnP1 is a highly customizable USB attack platform, based on a low cost Raspberry Pi Zero or Raspberry Pi Zero W.
GNU General Public License v3.0
4.05k stars 663 forks source link

unable to ssh via usb Mac pi zero w #201

Open pythlang opened 6 years ago

pythlang commented 6 years ago

I previously had this working no problem and accidentally flashed my SD for another project

I'm using a pi zero w

I'm trying to ssh to p4wnp1 via 172.16.0.1 but I'm unable as the ip is set to 169.xxx and although I am able to gain access to the pi if I manually change the ip to 172.16.0.2 and the subnet to 255.255.255.252, I still cannot access the outside internet from the pi

additionally, I'm unable to change the SSID from "P4wnP1" to anything else in the setup.cfg file, even after commenting out or deleting the wifi name from the payload, whereas before I could change it no problem in the setup.cfg without additional steps

I can connect to 172.24.0.1 no problem.

I tried following the youtube video mame82 uploaded but I'm unable to continue as I can't set the network from public to private on a mac using Get-Net....

How in the h*ll did it configure this originally?

My steps:

flash drop ssh & wpa_supplicant files edit config.txt -> dtoverlay=dwc2 edit cmdline.txt -> add that string after root wait & before quiet insert sd to raspberry use microusb instead of power insert raspberry pi rndis appears share internet connection with it sudo apt-get update follow install actions on READme no error messages sudo shutdown -h now unplug/replug -> pi boots that's where my problems begin

any solutions/hints? I'm sure a more experienced networker will figure this out no problem, but i'm barely beginning to understand how they interact.

Thanks again

pythlang commented 6 years ago

Everything seems to work fine, meaning I can ssh into 172.16.0.1, until I start internet sharing with P4wnP1; I either cannot login to p4wnp1 to 172.xxx after enabling internet or the ssh session drops while toggling internet sharing and the DHCP reverts to 169.xxx

mame82 commented 6 years ago

The IP gets overwritten with an APIPA IP after enabeling ICS, by Windows. That's normal behavior.

Here's a tutorial on how to handle this and connect P4wnP1 to Internet using ICS:

https://youtu.be/QEWaIoal5qU

pythlang commented 6 years ago

Bro, I'm using a Mac, not Windows but maybe something similar is happening.

I'm getting stuck on "Get-NetConnectionProfile" as that command obviously doesn't exist for mac.

mame82 commented 6 years ago

I'm sure that apple implemented APIPA, too ;-)

pythlang commented 6 years ago

That does indeed appear what is happening, but I'm unsure of how to convert my profile from public to private. Do you know any workarounds? I would really appreciate your help in figuring this out because I'm very interested in learning networks

HitItAll commented 6 years ago

This is most likely because P4wnP1 is taking that IP. Try setting your IP to 172.16.0.2. Good luck!

On Mon, Feb 12, 2018, 11:35 pythlang notifications@github.com wrote:

Now I'm getting this [image: screen shot 2018-02-12 at 14 35 14] https://user-images.githubusercontent.com/23020467/36115743-fcccfc84-1001-11e8-88bf-899e7e85aa20.png

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/mame82/P4wnP1/issues/201#issuecomment-365036835, or mute the thread https://github.com/notifications/unsubscribe-auth/ASxAJVFhpd8o3FcO2UtB9Q8CXj--XBkzks5tUJKOgaJpZM4SBkBs .

pythlang commented 6 years ago

I meant to set it to 172.16.0.2 for the photo but accidentally hit 1, but I'm still having the same problem regardless unfortunately.

any other suggestions would be great.

mame82 commented 6 years ago

Please try the ready-to-go image provided here https://github.com/mame82/P4wnP1/releases

pythlang commented 6 years ago

I've been absent, and thanks for the suggestion; I will try your suggestion and leave feedback.

I have still not yet solved the problem