diff --git a/conf-template.json b/conf-template.json new file mode 100644 index 0000000..f7c4bc0 --- /dev/null +++ b/conf-template.json @@ -0,0 +1,10 @@ +{ + "server": "", + "port": "", + "hostkey": "", + "port": "", + "payload": "payload/payload.sh", + "ssh-user": "", + "ssh-password": "", + "ssh-key": "" +} \ No newline at end of file diff --git a/deploy.py b/deploy.py new file mode 100644 index 0000000..16d4301 --- /dev/null +++ b/deploy.py @@ -0,0 +1,13 @@ +import paramiko +import json +import os + +# import modules + +with open("conf.json", "r") as file: + cfg = json.load(file) +# yeah yeah i should probably use YAML but i don't really want to fool with it rn lol -64 + +sshc = paramiko.client.SSHClient() + +sshc.connect(cfg["server"],port=cfg["port"],password=cfg["ssh-password"]) \ No newline at end of file diff --git a/payload/payload.sh b/payload/payload.sh new file mode 100644 index 0000000..cb412ab --- /dev/null +++ b/payload/payload.sh @@ -0,0 +1,2 @@ +#!/bin/bash +# sick tricks, Shebang! \ No newline at end of file