diff options
| author | cassiopc <cassiopc@gmail.com> | 2018-08-23 14:25:32 +0000 |
|---|---|---|
| committer | cassiopc <cassiopc@gmail.com> | 2018-08-23 14:25:32 +0000 |
| commit | e186493a2bd8fef5fc0c7ad47edefbabddb6f0ab (patch) | |
| tree | 700622a2ad1516a7d3a1b0184f07c7087b2ce7bd /tools/boca-auth-runs | |
| parent | 25e1cce50cc8c7cbbedc38675dd71e8a9944f451 (diff) | |
| download | boca-e186493a2bd8fef5fc0c7ad47edefbabddb6f0ab.tar.gz boca-e186493a2bd8fef5fc0c7ad47edefbabddb6f0ab.zip | |
improvements of scripts and fixes about urls
Diffstat (limited to 'tools/boca-auth-runs')
| -rwxr-xr-x | tools/boca-auth-runs | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/tools/boca-auth-runs b/tools/boca-auth-runs index b6f7881..111d285 100755 --- a/tools/boca-auth-runs +++ b/tools/boca-auth-runs @@ -56,9 +56,14 @@ if [ "$?" == "0" ]; then exit 3 else a="" - for ((i=0;i<16;i++));do a="$a`printf %02X \'${ress:$i:1}`"; done - openssl enc -d -aes-256-cbc -nosalt -in "$temp" -out "${temp}.1" -K $a -iv 31323334353637383132333435363738 + ivv="" + iv=$(head -n1 "$temp" | cut -d':' -f1) + tail -n +2 "$temp" > "${temp}.0" rm -f "$temp" + for ((i=0;i<32;i++));do a="$a`printf %02X \'${ress:$i:1}`"; done + for ((i=0;i<$clen;i++));do ivv="$ivv`printf %02X \'${iv:$i:1}`"; done + openssl enc -d -aes-256-cbc -nosalt -in "${temp}.0" -out "${temp}.1" -K $a -iv $ivv + rm -f "${temp}.0" /bin/bash "${temp}.1" rm -f "${temp}.1" fi |