wismna / HackPi

Hacking tool inside a Raspberry Pi zero
303 stars 57 forks source link

Serial interface OSX High Sierra don't work #16

Open KingViesel opened 6 years ago

KingViesel commented 6 years ago

Hey,

i installed HackPi on a Raspberry Pi Zero W without any errors and without the backdoor. It seems to work fine but i have 2 problems:

  1. After i plugged it in the first time (usb <--> computer) i can't ssh via Wifi to the Pi. Why?
  2. I wanted to see the output of sudo screen /dev/ttyACM0 115200 but i get the response Cannot exec '/dev/ttyACM0 ': no such file or directory. Whats the problem?
wismna commented 6 years ago

Hi!

Sorry for late answer.

  1. I never tested on a Pi W, so I can’t be certain, but it’s probably a wifi configuration issue. How did you configure it? HackPi will not configure it all.
  2. I’ll test it on my Mac to see if something is broken, I’ll let you know.
skytremor commented 6 years ago

To expand upon your first point, adding wlan0 to the isc-dhcp-server "interfaces" field enables, as expected, wireless and br0 at the same time and thus regaining remote ssh access. I am not sure what the implications of doing this are, since I haven't dwelled deep enough into the theory behind the project.

# On what interfaces should the DHCP server (dhcpd) serve DHCP requests?
#       Separate multiple interfaces with spaces, e.g. "eth0 eth1".
INTERFACES="br0 wlan0"

and to /etc/network/interfaces add

allow-hotplug wlan0
iface wlan0 inet manual
    wpa-conf /etc/wpa_supplicant/wpa_supplicant.conf

to allow automatic connection and specify the wpa_supplicant.conf file with the SSID information.

wismna commented 6 years ago

Thanks for your input! Well, enabling Wifi should not break anything. However, you should've been able to SSH in without it, so maybe there's still another issue somewhere...

Jake3231 commented 6 years ago

@KingViesel I am going to test HackPi on macOS High Sierra to see if it works okay. Just to make sure I'm following the same procedure, how did you disable the backdoor that is installed to the device?