aboutsummaryrefslogtreecommitdiff
path: root/tools/boca-auth-runs
diff options
context:
space:
mode:
authorCassio de Campos <cassiopc@gmail.com>2017-08-04 11:00:11 +0000
committerCassio de Campos <cassiopc@gmail.com>2017-08-04 11:00:11 +0000
commit5513df3ed8ce07ae9516d834c4ac176d5bfc0cf2 (patch)
tree9d3b7c9c829ff547181634c516b904cf4352be5c /tools/boca-auth-runs
parentcc3aa973b6bc448bd52d1f6bfb9e9613c4dfbfdd (diff)
downloadboca-5513df3ed8ce07ae9516d834c4ac176d5bfc0cf2.tar.gz
boca-5513df3ed8ce07ae9516d834c4ac176d5bfc0cf2.zip
fixes to code submission distribution
Diffstat (limited to 'tools/boca-auth-runs')
-rwxr-xr-xtools/boca-auth-runs6
1 files changed, 3 insertions, 3 deletions
diff --git a/tools/boca-auth-runs b/tools/boca-auth-runs
index c03fc4f..821202f 100755
--- a/tools/boca-auth-runs
+++ b/tools/boca-auth-runs
@@ -26,17 +26,17 @@ for i in wget sha256sum cut; do
done
temp=/tmp/.temp.`date +%s%N`.txt
-md=`wget -t 2 -T 5 -S http://$BOCASERVER/boca/getcode.php -O /dev/null --save-cookies ${temp}.cookie.txt --keep-session-cookies 2>&1 | grep PHPSESS | tail -n1`
+md=`wget -t 2 -T 7 -S http://$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';'`
ress=`echo -n $pass | sha256sum - | cut -f1 -d' '`
res=`echo -n "${ress}${md}" | sha256sum - | cut -f1 -d' '`
- wget -t 2 -T 5 "http://$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
+ wget -t 2 -T 15 "http://$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
grep -qi incorrect $temp
if [ $? == 0 ]; then
echo ""
- echo "$BOCASERVER: User or password incorrect"
+ echo "$BOCASERVER: User or password incorrect, or unconfigured server"
rm -f $temp
rm -f ${temp}.cookie.txt
exit 3