diff options
| author | Cassio de Campos <cassiopc@gmail.com> | 2017-08-12 17:46:04 +0000 |
|---|---|---|
| committer | Cassio de Campos <cassiopc@gmail.com> | 2017-08-12 17:46:04 +0000 |
| commit | 1a7aa506cf7c239890fab96fd024640b1b712eb8 (patch) | |
| tree | 67376e7230b180cab9d8f8cc986cd56ffb09589e /tools/boca-auth-runs | |
| parent | 4a96669616d1600604abfa21da5b410432e5b0a4 (diff) | |
| download | boca-1a7aa506cf7c239890fab96fd024640b1b712eb8.tar.gz boca-1a7aa506cf7c239890fab96fd024640b1b712eb8.zip | |
scripts for logging root activity and bug fix of autojudge
Diffstat (limited to 'tools/boca-auth-runs')
| -rwxr-xr-x | tools/boca-auth-runs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/boca-auth-runs b/tools/boca-auth-runs index dc94e64..00549b3 100755 --- a/tools/boca-auth-runs +++ b/tools/boca-auth-runs @@ -43,7 +43,7 @@ temp=/tmp/.temp.`date +%s%N`.txt md=`wget --no-check-certificate -t 2 -T 7 -S https://$BOCASERVER/boca/getcode.php -O /dev/null --save-cookies ${temp}.cookie.txt --keep-session-cookies 2>&1 | grep PHPSESS | tail -n1` echo "$md" | grep -q PHPSESS if [ "$?" == "0" ]; then - md=`echo $md | cut -f2 -d'=' | cut -f1 -d';' | cut -f7 -d"$(echo -e '\t')"` + md=`echo $md | cut -f2 -d'=' | cut -f1 -d';'` ress=`echo -n $pass | sha256sum - | cut -f1 -d' '` res=`echo -n "${ress}${md}" | sha256sum - | cut -f1 -d' '` wget --no-check-certificate -t 2 -T 7 "https://$BOCASERVER/boca/getcode.php?name=${user}&password=${res}" --load-cookies ${temp}.cookie.txt --keep-session-cookies --save-cookies ${temp}.cookie.txt -O $temp 2>/dev/null >/dev/null |