Created
March 21, 2011 15:22
-
-
Save ainvyu/879613 to your computer and use it in GitHub Desktop.
imaso login
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env perl | |
use strict; | |
use warnings; | |
use utf8; | |
use WWW::Mechanize; | |
my %login_info = (ID1 => 'password', | |
ID2 => 'password',); | |
for my $id (keys %login_info) { | |
print "Login ID: $id"."\n"; | |
my $mech = WWW::Mechanize->new(); | |
$mech->agent('Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.1; SV1; .NET CLR 1.1.4322)'); | |
$mech->add_header(Referer => 'http://imaso.co.kr/?doc=login.html'); | |
my $res = $mech->get('http://imaso.co.kr/?doc=login.html'); | |
$mech->post('http://imaso.co.kr/?doc=bbs/mblogincheck.php', { url => '%2F', | |
mb_id => $id, | |
mb_passwd => $login_info{$id}, | |
'fhead.x' => 29, | |
'fhead.y' => 11, }, | |
); | |
$res = $mech->get('http://www.imaso.co.kr/?doc=v2/index.php'); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment