forked from IDeletedSystem64/iptables-deploy
Initial commit
This commit is contained in:
parent
45ff74708a
commit
b7b5ddc0aa
10
conf-template.json
Normal file
10
conf-template.json
Normal file
@ -0,0 +1,10 @@
|
|||||||
|
{
|
||||||
|
"server": "",
|
||||||
|
"port": "",
|
||||||
|
"hostkey": "",
|
||||||
|
"port": "",
|
||||||
|
"payload": "payload/payload.sh",
|
||||||
|
"ssh-user": "",
|
||||||
|
"ssh-password": "",
|
||||||
|
"ssh-key": ""
|
||||||
|
}
|
13
deploy.py
Normal file
13
deploy.py
Normal 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
2
payload/payload.sh
Normal file
@ -0,0 +1,2 @@
|
|||||||
|
#!/bin/bash
|
||||||
|
# sick tricks, Shebang!
|
Loading…
x
Reference in New Issue
Block a user