Update 'README.md'

This commit is contained in:
2022-11-12 21:58:17 +01:00
parent efe74b8314
commit 0b5743da0b
+22 -10
View File
@@ -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.
```