summaryrefslogtreecommitdiffstats
path: root/solve/deploy
diff options
context:
space:
mode:
Diffstat (limited to 'solve/deploy')
-rwxr-xr-xsolve/deploy15
1 files changed, 13 insertions, 2 deletions
diff --git a/solve/deploy b/solve/deploy
index f84ea1d..5689b54 100755
--- a/solve/deploy
+++ b/solve/deploy
@@ -9,8 +9,19 @@ fi
#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/
-cat solve.tar.xz | dd status=progress | base64 | $@ "rm -rf dist solve.tar.xz; base64 -d > solve.tar.xz && tar -xf solve.tar.xz"
+#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"