stooged / PI-Pwn

pppwn
415 stars 76 forks source link

Access Pi's SD over FTP? #132

Closed Doyle4 closed 2 months ago

Doyle4 commented 2 months ago

Is it possible to add/remove files from the Pi's SD card using FTP at all? I can SSH but id like to swap files without the need of removing the SD card.

I have tried: 192.168.2.2:21 - 192.168.2.2:2121 - 192.168.2.1:21 -192.168.2.1:21 and the same again but using 2121/22/2222

Thanks

stooged commented 2 months ago

I will add options to install a ftp server and samba share for the pi

Doyle4 commented 2 months ago

Amazing thank you.

stooged commented 2 months ago

the option to install a ftp server and samba server have been added.

if you are using raspberry pi os you will need to set the root account password which is normally blank. the script will prompt you to set the password. the ftp server uses the standard ports 21 and 20 and you log into it with root as the username and the password you set for the root account.

the samba share has no user/pass needed to access it and can be mounted using \\pppwn.local\pppwn or \\<PI IPADDRESS>\pppwn

Doyle4 commented 2 months ago

Thank you so much.

Doyle4 commented 2 months ago

Screenshot 2024-05-30 at 07 04 58 Working great thank you! This has made it so much better.

Thanks again for your efforts.

Would this now make it also possible to have Payloads on the SD card at all?

stooged commented 2 months ago

I prefer the samba approach too and it wasnt much effort to add as i just copied the code from my ps5 pi server repo.

Payloads on the sd card would still need to be coded. I will add a function to fallback to a payloads folder in the pppwn dir on the sd card if no usb drive with a payloads folder is found.

Doyle4 commented 2 months ago

Never used samba before, but was easy and once setup my Mac now detects which is amazing.

No worries, no rush at all as the USB method is fine, was a little curious if would be possible in future.

stooged commented 2 months ago

you can load playloads out of the /boot/firmware/PPPwn/payloads directory now if no usb is found

Doyle4 commented 2 months ago

Amazing, will test once I can.

Thanks again.