14 lines
480 B
Python
14 lines
480 B
Python
import paramiko
|
|
import sys
|
|
|
|
sys.stdout.reconfigure(encoding='utf-8')
|
|
c = paramiko.SSHClient()
|
|
c.set_missing_host_key_policy(paramiko.AutoAddPolicy())
|
|
c.connect('140.44.4.71', username='snarf', key_filename=r'C:\Users\Snarf\.ssh\id_ed25519_snarfnet', timeout=10)
|
|
|
|
cmd = "curl -sk https://heimdall.snarfnet.net | grep -iE 'HomeAssistant|Rancher|Portainer|Uptime|Harvester'"
|
|
_, o, _ = c.exec_command(cmd)
|
|
print("Heimdall apps found in HTML:\n", o.read().decode().strip())
|
|
c.close()
|
|
|