diff options
| author | Cassio de Campos <cassiopc@gmail.com> | 2017-08-29 13:47:38 +0000 |
|---|---|---|
| committer | Cassio de Campos <cassiopc@gmail.com> | 2017-08-29 13:47:38 +0000 |
| commit | 170ccee81310850a67e07a6ea9449d911abccf7b (patch) | |
| tree | 13541f0d33032f34e629a2255b428e68f96233d6 /tools/boca-auth-runs | |
| parent | 8e2300c6b8e672e36e53868a9bf5f72d903306b7 (diff) | |
| download | boca-170ccee81310850a67e07a6ea9449d911abccf7b.tar.gz boca-170ccee81310850a67e07a6ea9449d911abccf7b.zip | |
force internet control, force ipv4
Diffstat (limited to 'tools/boca-auth-runs')
| -rwxr-xr-x | tools/boca-auth-runs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/tools/boca-auth-runs b/tools/boca-auth-runs index 3155b90..b6f7881 100755 --- a/tools/boca-auth-runs +++ b/tools/boca-auth-runs @@ -40,13 +40,13 @@ for i in wget sha256sum cut; do done 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` +md=`wget -4 --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';'` 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 + wget -4 --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 grep -qi incorrect $temp if [ $? == 0 ]; then echo "" |