Guest User

Untitled

a guest
Sep 8th, 2013
110
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 0.68 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.          while (true){
  14.  
  15.             currentString = "" + charset[currentIndex +1] ;
  16.             System.out.println(currentString);
  17.            
  18.             if (currentIndex == charset.length -2){
  19.               currentIndex = 0;
  20.               currentString = currentString + + charset[currentIndex +1];
  21.             }else{
  22.                 currentIndex ++;
  23.             }
  24.          }  
  25.     }
  26. }
Advertisement
Add Comment
Please, Sign In to add comment