deploy (562B)
1#!/bin/sh 2 3if [ $# -lt 1 ]; then 4 echo "Usage: deploy SSH-CMD" 5 exit 1 6fi 7 8#rm -rf dist build 9#pyinstaller --collect-all pwnlib --collect-all pwntools solve 10#tar -czf solve.tar.xz dist/solve 11 12#tar -czf solve.tar.xz send/get-pip.py send/build/ 13 14ssh=$@ 15put() { 16 echo "$1" 17 cat "$1" | base64 | $ssh "rm '$1'; base64 -d > $1 && chmod +x '$1'" 18} 19 20make 21put solve_static 22put remote 23 24$ssh "./remote" 25 26 27 28#id=1028371871728371098712983719820731 29#scp solve.tar.xz "root@sinitax.com:web/files/private/$id" 30#$@ "wget 'https://files.sinitax.com/private/$id' && tar -xf '$id'"