Just thought of sharing this script to automate Tikona login process.
if you are using Raspiberry pi as router, you can set this as startup script to login.
Replace userName & password.
i have not tried this using Cygwin, but it should work on windows as well, note that Curl is also needed when running on windows.
hope some one finds it useful.
if you are using Raspiberry pi as router, you can set this as startup script to login.
Replace userName & password.
Code:
LoginURL=$(curl 1.254.254.254 | grep -Po 'URL=\K[^"]*')
curl -c cookies2 --sslv3 $LoginURL --insecure
SessionId=$(grep 'JSESSIONID.{0,100}' cookies2 -o -P |rev| awk '{print substr($0,0,38)}'|rev)
curl --data-ascii "type=2&username=[B]<UserName>[/B]&password=[B]<Password>[/B]&act=null" --sslv3 --header "Host: login.tikona.in" --header "Content-Length: 53" --header "Content-Type: application/x-www-form-urlencoded" --cookie "JSESSIONID=$SessionId" *login.tikona.in/userportal/newlogin.do?phone=0
i have not tried this using Cygwin, but it should work on windows as well, note that Curl is also needed when running on windows.
hope some one finds it useful.