Guest User

Untitled

a guest
Sep 8th, 2013
107
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 0.72 KB | None | 0 0
  1. public class Bruteforcer {
  2.  
  3.     /**
  4.      * @param args the command line arguments
  5.      */
  6.     public static void main(String[] args) {
  7.           char[] charset = "ABCDEFGHIJKLMNOPQRSTUVWXYZ".toCharArray();
  8.          
  9.  
  10.          int currentIndex = 0;
  11.          String currentString = "";
  12.  
  13.          for (int i = 0; i < charset.length; i++) {
  14.             char currentChar = charset[i];
  15.            
  16.              for (int j = 0; j < charset.length; j++) {
  17.                  
  18.                  char c = charset[j];
  19.                  currentString =  "" +currentChar + c;
  20.                  System.out.println(currentString);
  21.                  
  22.              }
  23.            
  24.            
  25.          }
  26.    
  27.            
  28.     }
  29. }
Advertisement
Add Comment
Please, Sign In to add comment