From 2f3af1dac11fcbaf92daa869f7d97080a4bec04c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C4=81nis?= Date: Thu, 26 Jan 2017 13:51:14 +0200 Subject: [PATCH] Added cookie which "mark" web notifications as read --- jvpn.pl | 2 ++ 1 file changed, 2 insertions(+) diff --git a/jvpn.pl b/jvpn.pl index 1cbf25c..7634275 100755 --- a/jvpn.pl +++ b/jvpn.pl @@ -124,6 +124,7 @@ $ua->agent('Mozilla/5.0 (X11; Ubuntu; Linux i686; rv:23.0) Gecko/20100101 Firefox/23.0'); # emulate javascript java check result $ua->cookie_jar->set_cookie(0,"DSCheckBrowser","java","/",$dhost,$dport,1,1,60*5,0, ()); + $ua->cookie_jar->set_cookie(0,"DSSigninNotif","1","/",$dhost,$dport,1,1,60*5,0, ()); } else { $ua->agent('JVPN/Linux'); @@ -271,6 +272,7 @@ } print "[done]\n"; $ua->cookie_jar->set_cookie(0,"DSPREAUTH",$resp_lines[2],"/dana-na/",$dhost,$dport,1,1,60*5,0, ()); + $ua->cookie_jar->set_cookie(0,"DSSigninNotif","1","/dana-na/",$dhost,$dport,1,1,60*5,0, ()); $res = $ua->get("https://$dhost:$dport/dana-na/auth/$durl/login.cgi?loginmode=mode_postAuth&postauth=$state_id"); $response_body=$res->decoded_content; # send "setcookie" command as native client do