#!/bin/sh if [ $# -lt 1 ]; then echo "Usage: deploy SSH-CMD" exit 1 fi #rm -rf dist build #pyinstaller --collect-all pwnlib --collect-all pwntools solve #tar -czf solve.tar.xz dist/solve #tar -czf solve.tar.xz send/get-pip.py send/build/ ssh=$@ put() { echo "$1" cat "$1" | base64 | $ssh "rm '$1'; base64 -d > $1 && chmod +x '$1'" } make put solve_static put remote $ssh "./remote" #id=1028371871728371098712983719820731 #scp solve.tar.xz "root@sinitax.com:web/files/private/$id" #$@ "wget 'https://files.sinitax.com/private/$id' && tar -xf '$id'"