feat: add OpenCanary honeypot documentation and management scripts
This commit is contained in:
@@ -56,3 +56,4 @@ flowchart LR
|
|||||||
`/etc/systemd/system/opencanary-watcher.service` (Tails log file and delivers push alerts).
|
`/etc/systemd/system/opencanary-watcher.service` (Tails log file and delivers push alerts).
|
||||||
* **Docker Container:**
|
* **Docker Container:**
|
||||||
`opencanary` (Managed via Docker with `restart: unless-stopped` on network `opencanary_net`).
|
`opencanary` (Managed via Docker with `restart: unless-stopped` on network `opencanary_net`).
|
||||||
|
|
||||||
|
|||||||
@@ -12,3 +12,4 @@ stdin, stdout, stderr = c.exec_command("docker service logs --tail 10 gotify_got
|
|||||||
print(stdout.read().decode())
|
print(stdout.read().decode())
|
||||||
|
|
||||||
c.close()
|
c.close()
|
||||||
|
|
||||||
|
|||||||
@@ -12,3 +12,4 @@ stdin, stdout, stderr = c.exec_command('sqlite3 /var/lib/docker/volumes/gotify_g
|
|||||||
print("Recent messages in Gotify:\n", stdout.read().decode())
|
print("Recent messages in Gotify:\n", stdout.read().decode())
|
||||||
|
|
||||||
c.close()
|
c.close()
|
||||||
|
|
||||||
|
|||||||
@@ -27,3 +27,4 @@ err = stderr.read().decode()
|
|||||||
if err: print("Stderr:", err)
|
if err: print("Stderr:", err)
|
||||||
|
|
||||||
c.close()
|
c.close()
|
||||||
|
|
||||||
|
|||||||
@@ -34,3 +34,4 @@ c.exec_command("systemctl restart opencanary-watcher.service")
|
|||||||
print("Restarted watcher service")
|
print("Restarted watcher service")
|
||||||
|
|
||||||
c.close()
|
c.close()
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user