Theory
In This Tutorial We Are Going To Show you How You Can Link Java And Microsoft Bitlocker Utility. The Principle We Are Working On Is That we Can get The Permutations Of A Single Word and Then Check if The word matches the password. If it Does so Then Our Program Is Able To Hack The Windows Bitlocker Password
The Underlying Code Will Show You How To Get The Permutations Of A singe Word
public class Permutation{ public static void main(String args[]){ String st = "Word Here"; TreeSet<Character> chars = new TreeSet<Character>(); for(int i=0;i<st.length();++i){ chars.add(st.charAt(i)); } int permutation =(int)Math.pow(chars.size(),st.length()); Random r = new Random(); String str =""; TreeSet<String> words = new TreeSet<String>(); outer : for(;;){ str=""; for(int i=0;i<st.length();++i){ str=str+""+chars.get(r.nextInt(chars.size())); } words.add(str); if(words.size()==permutation){ break outer; } } System.out.println("Permutations = "+words); } }The Next Part That Follows is The Linking Between Java And Microsoft BitLocker
This Part Is Quite Simple as We Have To Only Use Java And Connect That With Command Prompt The UnderLying Code Will Make A Connection Between The Two
public class Connect { public static void main(String args[]){ Runtime rt = Runtime.getRuntime(); try{ String command ="help"; Process ps = rt.exec("cmd /c "+command); InputStream is = ps.getInputStream(); InputStreamReader rd = new InputStreamReader(is); BufferedReader br = new BufferedReader(rd); String st =""; while((st = br.readLine())!=null){ System.out.println(st); } br.close(); }catch(Exception e){ System.out.println(e.getMessage()); } } }The Above Code You see Has Been Showing The Output For "HELP" Command Of Windows Command Prompt
You May use The Following Command And See The magic
Command =manage-bde -unlock *DRIVE LETTER* -pw "the Word You Get From The Permutation Code"
This Was Just A Tutorial. Keep Your eye On The Blog for Future Posts.

No comments:
Post a Comment