Guest User

Untitled

a guest
Aug 12th, 2018
160
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Perl 0.58 KB | None | 0 0
  1. #!/usr/bin/perl
  2.  
  3. open(PASS,">>mdp.txt");
  4. $pass = 16411;
  5. for ($i=14; $i<30; $i++) {
  6. open(ECRIRE,">$i.rar.xml");
  7.  
  8. $curr = int($pass*1.8);
  9. print ECRIRE "<?xml version=\"1.0\" encoding=\"UTF-8\"?>
  10. <rarcrack>
  11.  <abc>0123456789</abc>
  12.  <current>$curr</current>
  13.  <good_password/>
  14. </rarcrack>";
  15.  
  16. print "Archive nΒ°$i";
  17. close(ECRIRE);
  18.  
  19. open(CMD, "rarcrack --type rar $i.rar |") or die "...";
  20. while($line = <CMD>){
  21.     if ($line =~ /^GOOD: password cracked: '(\d+)'$/){
  22.         $pass = $1;
  23.         print PASS "$pass\n";
  24.         }
  25.        
  26. }
  27.  
  28.  
  29. print `unrar e -p$pass $i.rar`;
  30.  
  31.  
  32. }close(PASS);
Add Comment
Please, Sign In to add comment