blob: 5689b543771491aef6ac68a3d5242c23e8b9bf74 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
|
#!/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'"
|