summaryrefslogtreecommitdiffstats
path: root/solve/deploy
diff options
context:
space:
mode:
authorLouis Burda <quent.burda@gmail.com>2024-04-28 16:43:43 +0200
committerLouis Burda <quent.burda@gmail.com>2024-04-28 16:43:43 +0200
commit6e891da3bf95b2d68d605cbd07afbd32557c6420 (patch)
treef9e3a00e3791f622ffd94792bb9dca0e0325044f /solve/deploy
parent56ae4f33c8a4b9baf54e309528fc80f68f90350f (diff)
downloadcscg2024-flipnote-master.tar.gz
cscg2024-flipnote-master.zip
Add solution - bf fuck itHEADmaster
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"