diff options
| author | Cassio de Campos <cassiopc@gmail.com> | 2018-08-24 18:49:51 +0000 |
|---|---|---|
| committer | Cassio de Campos <cassiopc@gmail.com> | 2018-08-24 18:49:51 +0000 |
| commit | 9a5387bd2637cdc9fb0496d094e503e484be10e9 (patch) | |
| tree | f3066cb67a237f426c5b219ad19a906cb2dffd85 /tools/boca-auth-runs | |
| parent | 3cffb81354aac30059bef53406b6dcb96e262782 (diff) | |
| parent | e186493a2bd8fef5fc0c7ad47edefbabddb6f0ab (diff) | |
| download | boca-9a5387bd2637cdc9fb0496d094e503e484be10e9.tar.gz boca-9a5387bd2637cdc9fb0496d094e503e484be10e9.zip | |
Merge branch 'develc' of ssh://github.com/cassiopc/boca into develc
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 |