Jump to content
Vhaerun

Mechanize si cookie-uri

Recommended Posts

Salve !

Poate ca e din cauza Windows , dar am incercat sa folosesc HTTP::Cookies::Mozilla cu Mechanize si nu mi-a reusit . Din moment ce trimiterea directa a cookie-ului functioneaza pt. XSS , am zis ca trebuie sa mearga si la Mechanize . Si a mers ! :)

Asta ar fi solutia gasita :


use strict;
use warnings;
use HTML::Display;
use WWW::Mechanize;

my $mech=WWW::Mechanize->new();
my $cookie=qw{COOKIES};

$mech->add_header("Cookie",$cookie);
$mech->agent_alias("Windows IE 6");
$mech->get(SITE);
display($mech->content);

Of course , in loc de COOKIES pui cookie-urile respective . Exemplu:copiezi linia de cookie luata cu un grabber aici , si vei fi logat .

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.



×
×
  • Create New...