feat(security): deploy OpenCanary honeypot on VLAN 50 with Gotify and Discord alerting
This commit is contained in:
19
scripts/check_ha_ssh.py
Normal file
19
scripts/check_ha_ssh.py
Normal file
@@ -0,0 +1,19 @@
|
||||
import paramiko
|
||||
import sys
|
||||
|
||||
sys.stdout.reconfigure(encoding='utf-8')
|
||||
key_path = r'C:\Users\Snarf\.ssh\id_ed25519_snarfnet'
|
||||
|
||||
c = paramiko.SSHClient()
|
||||
c.set_missing_host_key_policy(paramiko.AutoAddPolicy())
|
||||
try:
|
||||
c.connect("14.4.4.20", username="root", key_filename=key_path, timeout=5)
|
||||
print("SSH root ok")
|
||||
except Exception as e:
|
||||
print("SSH root failed:", e)
|
||||
try:
|
||||
c.connect("14.4.4.20", username="snarf", key_filename=key_path, timeout=5)
|
||||
print("SSH snarf ok")
|
||||
except Exception as e2:
|
||||
print("SSH snarf failed:", e2)
|
||||
|
||||
Reference in New Issue
Block a user