KillerRootOficiaL

Gerador De Word List

Sep 27th, 2015
359
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Perl 7.93 KB | None | 0 0
  1. #!/usr/local/bin/perl
  2. print "\n#____________Gerador De Word List_____________#\n  \n";
  3. print "#____________Este Perl Gera 175MB_____________#\n \n#________Precione o Enter Para Gerar__________#\n\n\n\n\n";
  4. $continizzle = <STDIN>;
  5. print "Gerando Word List.  \n";
  6. open (BRUTE, ">brute.txt");
  7. #Start writing to the file:
  8. #Brute Force List
  9. $brute = "a"; #Set $brute to 'a' to begin with.
  10. for ($force = 1; $force < 28000000; $force++) { #$force is how many times it will increment
  11.    print BRUTE "$brute\n"; #Print the current $brute out.
  12.    if (ord(substr($brute, -1, 1)) == "122") { #If the last character is 'z',
  13.       if (length($brute != 1)) { #If $brute is more than 1 character long,
  14.          if (ord(substr($brute, -2, 1)) != "122") { #If the last character is 'z' and the second isn't,
  15.             #If the last letter is 'z', but the second-to-last isn't,
  16.             substr($brute, -1, 1) = "a"; #Set the last character as 'a'.
  17.             if (length($brute) > 1) { #If $brute is 2 or more letters long already,
  18.                substr($brute, -2, 1) = chr(ord(substr($brute, -2, 1)) + 1); #Increment the tenth-to-last.
  19.             } else { #If $brute is 2 letters long,
  20.                $brute = "a".$brute; #Attach 'a' to the left.
  21.             }
  22.          }
  23.          #These next if statements are cumulative; you have to have one true to get to the next.
  24.          if (ord(substr($brute, -2, 1)) == "122") { #If the second-to-last character is 'z',
  25.          if (ord(substr($brute, -3, 1)) == "122") { #If the third-to-last-character is 'z',
  26.          if (ord(substr($brute, -4, 1)) == "122") { #If the fourth-to-last-character is 'z',
  27.          if (ord(substr($brute, -5, 1)) == "122") { #If the fifth-to-last-character is 'z',
  28.          if (ord(substr($brute, -6, 1)) == "122") { #If the sixth-to-last-character is 'z',
  29.          if (ord(substr($brute, -7, 1)) == "122") { #If the seventh-to-last-character is 'z',
  30.          if (ord(substr($brute, -8, 1)) == "122") { #If the eighth-to-last-character is 'z',
  31.          if (ord(substr($brute, -9, 1)) == "122") { #If the ninth-to-last-character is 'z',
  32.          if (ord(substr($brute, -10, 1)) == "122") { #If the tenth-to-last-character is 'z' (the first letter)
  33.             die ("Finished.\n"); #Exit the program; you wrote all 23,762,752 combinations plus some more numbers!  :o
  34.          }
  35.          #If the ninth-to-last letter is 'z', but the tenth-to-last isn't,
  36.          substr($brute, -9, 1) = "a"; #Set the ninth-to-last as 'a'.
  37.          if (length($brute) > 9) { #If $brute is 10 or more letters long already,
  38.             substr($brute, -10, 1) = chr(ord(substr($brute, -10, 1)) + 1); #Increment the tenth-to-last.
  39.          } else { #If $brute is 9 letters long,
  40.             $brute = "a".$brute; #Attach 'a' to the left.
  41.          }
  42.          }
  43.          #If the eighth-to-last letter is 'z', but the ninth-to-last isn't,
  44.          substr($brute, -8, 1) = "a"; #Set the eighth-to-last as 'a'.
  45.          if (length($brute) > 8 ) { #If $brute is 9 or more letters long already,
  46.             substr($brute, -9, 1) = chr(ord(substr($brute, -9, 1)) + 1); #Increment the ninth-to-last.
  47.          } else { #If $brute is 8 letters long,
  48.             $brute = "a".$brute; #Attach 'a' to the left.
  49.          }
  50.          }
  51.          #If the seventh-to-last letter is 'z', but the eighth-to-last isn't,
  52.          substr($brute, -7, 1) = "a"; #Set the seventh-to-last as 'a'.
  53.          if (length($brute) > 7) { #If $brute is 8 or more letters long already,
  54.             substr($brute, -8, 1) = chr(ord(substr($brute, -8, 1)) + 1); #Increment the eighth-to-last.
  55.          } else { #If $brute is 7 letters long,
  56.             $brute = "a".$brute; #Attach 'a' to the left.
  57.          }
  58.          }
  59.          #If the sixth-to-last letter is 'z', but the seventh-to-last isn't,
  60.          substr($brute, -6, 1) = "a"; #Set the sixth-to-last as 'a'.
  61.          if (length($brute) > 6) { #If $brute is 7 or more letters long already,
  62.             substr($brute, -7, 1) = chr(ord(substr($brute, -7, 1)) + 1); #Increment the seventh-to-last.
  63.          } else { #If $brute is 6 letters long,
  64.             $brute = "a".$brute; #Attach 'a' to the left.
  65.          }
  66.          }
  67.          #If the fifth-to-last letter is 'z', but the sixth-to-last isn't,
  68.          substr($brute, -5, 1) = "a"; #Set the fifth-to-last as 'a'.
  69.          if (length($brute) > 5) { #If $brute is 6 or more letters long already,
  70.             substr($brute, -6, 1) = chr(ord(substr($brute, -6, 1)) + 1); #Increment the sixth-to-last.
  71.          } else { #If $brute is 5 letters long,
  72.             $brute = "a".$brute; #Attach 'a' to the left.
  73.          }
  74.          }
  75.          #If the fourth-to-last letter is 'z', but the fifth-to-last isn't,
  76.          substr($brute, -4, 1) = "a"; #Set the fourth-to-last as 'a'.
  77.          if (length($brute) > 4) { #If $brute is 5 or more letters long already,
  78.             substr($brute, -5, 1) = chr(ord(substr($brute, -5, 1)) + 1); #Increment the fifth-to-last.
  79.          } else { #If $brute is 5 letters long,
  80.             $brute = "a".$brute; #Attach 'a' to the left.
  81.          }
  82.          }
  83.          #If the third-to-last letter is 'z', but the fourth-to-last isn't,
  84.          substr($brute, -3, 1) = "a"; #Set the third-to-last as 'a'.
  85.          if (length($brute) > 3) { #If $brute is 4 or more letters long already,
  86.             substr($brute, -4, 1) = chr(ord(substr($brute, -4, 1)) + 1); #Increment the fourth-to-last.
  87.          } else { #If $brute is 4 letters long,
  88.             $brute = "a".$brute; #Attach 'a' to the left.
  89.          }
  90.          }
  91.          #If the second-to-last letter is 'z', but the third-to-last isn't,
  92.          substr($brute, -2, 1) = "a"; #Set the second-to-last as 'a'.
  93.          if (length($brute) > 2) { #If $brute is 3 or more letters long already,
  94.             substr($brute, -3, 1) = chr(ord(substr($brute, -3, 1)) + 1); #Increment the third-to-last.
  95.          } else { #If $brute is 3 letters long,
  96.             $brute = "a".$brute; #Attach 'a' to the left.
  97.          }
  98.          }
  99.       }
  100.       if (length($brute == 1)) { #If the whole string is 'z',
  101.          $brute = "aa"; #This condition is special, like me.
  102.          $stop = "1";
  103.       }
  104.    }
  105.    if (ord(substr($brute, -1, 1)) != "122") { #If the last character isn't 'z',
  106.       substr($brute, -1, 1) = chr(ord(substr($brute, -1, 1)) + 1) #Increment the last letter.
  107.    }
  108. }
  109. print "\n"; #The program finished.
  110. #Cumulative letters:
  111. for ($char = 97; $char < 123; $char++) {
  112.    for ($mult = 0; $mult < 10; $mult++) {
  113.       $temp = $temp.chr($char);
  114.       print BRUTE "$temp\n";
  115.    }
  116.    $temp = ""
  117. }
  118. #Cumulative numbers:
  119. $zero = "0";
  120. print BRUTE "$zero\n";
  121. for ($b = 0; $b < 10; $b++) {
  122.    $zero = "$zero"."0";
  123.    print BRUTE "$zero\n";
  124. }
  125. $one = "1";
  126. print BRUTE "$one\n";
  127. for ($b = 0; $b < 10; $b++) {
  128.    $one = "$one"."1";
  129.    print BRUTE "$one\n";
  130. }
  131. $two = "2";
  132. print BRUTE "$two\n";
  133. for ($b = 0; $b < 10; $b++) {
  134.    $two = "$two"."2";
  135.    print BRUTE "$two\n";
  136. }
  137. $three = "3";
  138. print BRUTE "$three\n";
  139. for ($b = 0; $b < 10; $b++) {
  140.    $three = "$three"."3";
  141.    print BRUTE "$three\n";
  142. }
  143. $four = "4";
  144. print BRUTE "$four\n";
  145. for ($b = 0; $b < 10; $b++) {
  146.    $four = "$four"."1";
  147.    print BRUTE "$four\n";
  148. }
  149. $five = "5";
  150. print BRUTE "$five\n";
  151. for ($b = 0; $b < 10; $b++) {
  152.    $five = "$five"."5";
  153.    print BRUTE "$five\n";
  154. }
  155. $six = "6";
  156. print BRUTE "$six\n";
  157. for ($b = 0; $b < 10; $b++) {
  158.    $six = "$six"."6";
  159.    print BRUTE "$six\n";
  160. }
  161. $seven = "7";
  162. print BRUTE "$seven\n";
  163. for ($b = 0; $b < 10; $b++) {
  164.    $seven = "$seven"."7";
  165.    print BRUTE "$seven\n";
  166. }
  167. $eight = "8";
  168. print BRUTE "$eight\n";
  169. for ($b = 0; $b < 10; $b++) {
  170.    $eight = "$eight"."8";
  171.    print BRUTE "$eight\n";
  172. }
  173. $nine = "9";
  174. print BRUTE "$nine\n";
  175. for ($b = 0; $b < 10; $b++) {
  176.    $nine = "$nine"."9";
  177.    print BRUTE "$nine\n";
  178. }
  179.  
  180. #The numbers 1 through 9999:
  181. @counting = (0 .. 9999);
  182. for ($a = 0; $a < 10000; $a++) {
  183.    print BRUTE "$counting[$a]\n";
  184. }
  185. close (BRUTE);
  186. print "Done!\n\n";
Advertisement
Add Comment
Please, Sign In to add comment