README - haunted-hosts - Unnamed repository; edit this file 'description' to name the repository. DIR Log DIR Files DIR Refs DIR README --- README (987B) --- 1 # Usage 2 3 Start the sshd for debugging using `./debug.sh` 4 Start the sshd for production using `./start.sh` 5 Enter haunted host with `ssh -T -p 666 trick@roygbyte.com` 6 7 # Installation 8 9 Follow the instructions in Server section to run this haunted host. 10 11 # Server 12 13 ## Configuration 14 15 Allow connections from port 666 in firewall. 16 17 ``` 18 pass in on egress proto tcp from any to egress port 666 19 ``` 20 21 Create users and groups. 22 23 ``` 24 useradd -d /var/empty -s /bin/sh -p "" trick 25 usermod -A haunted trick 26 ``` 27 28 Setup folder and file permissions for haunted hosts data and scripts. 29 30 ``` 31 # Location of executables 32 mv var/haunted-hosts/ /var/haunted-hosts 33 chown -R :haunted /var/haunted-hosts/ 34 cd /var/haunted-hosts 35 # Scripts executed by the users 36 chmod +x trick 37 chmod +x treat 38 # File storing hashed IPs from connections 39 touch client_ips 40 chown :haunted client_ips 41 chmod g+w client_ips 42 ``` 43 44 # Bugs 45 46 - There is no treat script 47 - The trick script seems to hang around after a visitor closes their connection.