diff --git a/README.md b/README.md index 1889a05..40ed49c 100644 --- a/README.md +++ b/README.md @@ -9,37 +9,47 @@ sudo apt update && sudo apt upgrade -y ``` -3. Download OpenCanary config file +3. Change SSH server port to be able to use Canary SSH on port 22 +```bash +sudo nano /etc/ssh/sshd_config +Uncoment Port section and change port from 22 to 33 +Restart SSH server: +şudo service sshd restart + +Connect SSH using terminal with: ssh -l canary -p 33 'HostIP' +``` + +4. Download OpenCanary config file ```bash wget https://download.csec.ba/tinkerboard/opencanary.conf ``` -4. Install Python3 +5. Install Python3 ```bash sudo apt install -y python3-dev python3-pip python3-venv ``` -5. Install prerequisites +6. Install prerequisites ```bash sudo apt install -y build-essential libssl-dev libffi-dev libpcap-dev net-tools ``` -6. Install Rust +7. Install Rust ```bash sudo apt install rustc -y ``` -7. Instal Cargo +8. Instal Cargo ```bash sudo apt install cargo -y ``` -8. Disable build Rust +9. Disable build Rust ```bash export CRYPTOGRAPHY_DONT_BUILD_RUST=1 ``` -9. Install dependencies +10. Install dependencies ```bash mkdir opencanary cd opencanary @@ -51,14 +61,14 @@ pip install opencanary pip install scapy pcapy ``` -10. Create config file and copy it to the path +11. Create config file and copy it to the path ```bash opencanaryd --copyconfig sudo cp /home/canary/opencanary.conf /etc/opencanaryd/opencanary.conf sudo mv /home/canary/opencanary.conf /home/canary/opencanary/opencanary.conf ``` -11. Create OpenCanary service +12. Create OpenCanary service ```bash sudo nano /etc/systemd/system/opencanary.service @@ -80,7 +90,7 @@ ExecStop=/home/canary/opencanary/env/bin/opencanaryd --stop WantedBy=multi-user.target ``` -12. Enable and start service +13. Enable and start service ```bash sudo systemctl enable opencanary && sudo systemctl start opencanary ``` @@ -92,4 +102,6 @@ wget https://download.csec.ba/tinkerboard/opencanary.sh sudo chmod +x opencanary.sh #Execute script sudo ./opencanary.sh + +One thing you have to do manually is to change SSH port as described in part 3. ``` \ No newline at end of file