|
124 | 124 | $ua->agent('Mozilla/5.0 (X11; Ubuntu; Linux i686; rv:23.0) Gecko/20100101 Firefox/23.0'); |
125 | 125 | # emulate javascript java check result |
126 | 126 | $ua->cookie_jar->set_cookie(0,"DSCheckBrowser","java","/",$dhost,$dport,1,1,60*5,0, ()); |
| 127 | + $ua->cookie_jar->set_cookie(0,"DSSigninNotif","1","/",$dhost,$dport,1,1,60*5,0, ()); |
| 128 | + $ua->cookie_jar->set_cookie(0,"path","/","/",$dhost,$dport,1,1,60*5,0, ()); |
127 | 129 | } |
128 | 130 | else { |
129 | 131 | $ua->agent('JVPN/Linux'); |
|
271 | 273 | } |
272 | 274 | print "[done]\n"; |
273 | 275 | $ua->cookie_jar->set_cookie(0,"DSPREAUTH",$resp_lines[2],"/dana-na/",$dhost,$dport,1,1,60*5,0, ()); |
| 276 | + $ua->cookie_jar->set_cookie(0,"DSSigninNotif","1","/dana-na/",$dhost,$dport,1,1,60*5,0, ()); |
274 | 277 | $res = $ua->get("https://$dhost:$dport/dana-na/auth/$durl/login.cgi?loginmode=mode_postAuth&postauth=$state_id"); |
275 | 278 | $response_body=$res->decoded_content; |
276 | 279 | # send "setcookie" command as native client do |
|
0 commit comments