Initial commit

This commit is contained in:
Technomancer 2023-12-26 14:18:29 -06:00
parent 45ff74708a
commit b7b5ddc0aa
No known key found for this signature in database
GPG Key ID: 33A12B0480AFC8E9
3 changed files with 25 additions and 0 deletions

10
conf-template.json Normal file
View File

@ -0,0 +1,10 @@
{
"server": "",
"port": "",
"hostkey": "",
"port": "",
"payload": "payload/payload.sh",
"ssh-user": "",
"ssh-password": "",
"ssh-key": ""
}

13
deploy.py Normal file
View File

@ -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"])

2
payload/payload.sh Normal file
View File

@ -0,0 +1,2 @@
#!/bin/bash
# sick tricks, Shebang!