To access some websites, not only the username/pwd is need, but also a
field need to fill based on a randomly generated digitals/letters on an
image(this will prevent the automatically account creating, such as
when creating the MSN account, the website will ask us to fill that
kind of data).
When I first accessed the website using firefox or IE, I must fill the
username/pwd and that kind of field. And if I close the browser and
open it a second time to view the same website, there is no need for me
to fill username/pwd which means firefox/IE can use the cookie to
access it. And I tried to use the cookie using be IE by model
HTTP::Cookies::Microsoft in the code, but the response from the web
server still can NOT recogize that I already logged in.
my $cookie_jar = HTTP::Cookies::Microsoft-%26gt;new(
file =%26gt; "$cookies_dir\\index.dat",
'delayload' =%26gt; 0,
);
my $mech=WWW::Mechanize-%26gt;new(cookie_jar=%26gt;$c...
$mech-%26gt;get("http://bbs1.2
(PERL)How can I use the password and username stored in cookie files to access the web automatically?
from what I read you are trying to create a script that mimics a logged in user. but are getting caught at the login stage.
I would be surprised if any (reputable) website stores a username, password combination in the browsers cookies, most will store a session id. More often than not the cookie is stored only for the lifetime of the browser. in other words it is never stored on the hard drive, so you can't access it using HTTP::Cookies::Microsoft-%26gt;new(...
stamen
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment