Botanias matrix wings

Discussion in 'Offtopic' started by alfiealfie, May 2, 2016.

  1. alfiealfie

    alfiealfie Taste the flames

    Messages:
    465
    Likes Received:
    98
    Local Time:
    3:49 AM
    oh pain, literally broke my NAS with all the outputs, were gonna need a bigger boat
     
  2. johnfg10

    johnfg10 Well-Known Member

    Messages:
    2,430
    Likes Received:
    200
    Local Time:
    4:49 PM
    hahaha really :p
     
  3. chugga_fan

    chugga_fan ME 4M storage cell of knowledge, all the time

    Messages:
    5,861
    Likes Received:
    730
    Local Time:
    11:49 AM
    Yhea, i haven't programmed it to get with only the normal characters yet, can't figure out how, but you get a MASSIVE number of outputs for the hashcode
     
  4. hex_bug

    hex_bug Well-Known Member

    Messages:
    51
    Likes Received:
    7
    Local Time:
    11:49 AM
    i feel a random letter sequence generator that only saves strings containing matrix, neo, one and other keywords may be a decent way to do it
    sadly im still pretty horrid at programming atm so wouldnt really be sure how to do this
     
  5. tyler489

    tyler489 Well-Known Member

    Messages:
    1,873
    Likes Received:
    202
    Local Time:
    10:49 AM
    Did anyone ever figure this out if so msg me
     
  6. hex_bug

    hex_bug Well-Known Member

    Messages:
    51
    Likes Received:
    7
    Local Time:
    11:49 AM
    i for one think we should pose this as a "experience to bring new knowledge to the public" to google :p
     
  7. Asapps

    Asapps Well-Known Member

    Messages:
    416
    Likes Received:
    51
    Local Time:
    11:49 AM
    @chugga_fan Go make 500 mods and put them into a pack that has a questbook and get it on MyM, since you have so much time on your hands. :)
     
  8. Blizzix_

    Blizzix_ Well-Known Member

    Messages:
    162
    Likes Received:
    27
    Local Time:
    11:49 AM
    What he said!
     
    Asapps likes this.
  9. chugga_fan

    chugga_fan ME 4M storage cell of knowledge, all the time

    Messages:
    5,861
    Likes Received:
    730
    Local Time:
    11:49 AM
    Shhh, i upgraded my program today to do multithreading, but it wasn't hard to program fyi :p
     
  10. WorCannibal

    WorCannibal Blasphemy is a victimless crime

    Messages:
    122
    Likes Received:
    40
    Local Time:
    11:49 AM
    Darn it, I don't need a another obsession... but I may have to get on this.
     
  11. chugga_fan

    chugga_fan ME 4M storage cell of knowledge, all the time

    Messages:
    5,861
    Likes Received:
    730
    Local Time:
    11:49 AM
    Code:
    import java.math.BigDecimal;
    import java.math.BigInteger;
    import java.security.MessageDigest;
    import java.security.NoSuchAlgorithmException;
    import java.security.SecureRandom;
    
    import javax.xml.bind.annotation.adapters.HexBinaryAdapter;
    
    public class cracking
    {
    	public static void main(String[] args)
    	{
    		System.out.println(ToBeRun.bruteCrackVazkii(19,"16E1BDFD1D6AE1A954C9C5E1B2D9099780F3E1724541F1F2F77310B769CFFBAC"));
    	}
    }
    class ToBeRun
    {
    	private static char[] charset = "abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ ".toCharArray();
    	private int oddsonly = 0;
    	public void run()
    	{
    		theory(oddsonly);
    	}
    	public static String bruteCrackVazkii(int size, String hexVal)
    	{
    		int h=0, start=0;
    		BigDecimal end = BigDecimal.valueOf(26);
    		end = end.pow(size);
    		String word="",out="",hex="";
    		for(int i=0;i<size;i++)
    			word+="[";
    		byte w[]=word.getBytes(),o[]=word.getBytes();
    		byte j[]=new byte[size],buffer[]=new byte[1024],digest[]=new byte[1024];
    		while(h<w.length)
    		{
    			for(int l=0;l<w.length;l++)
    				o[l]=(byte)(w[l]+j[l]);
    			j[w.length-1]++;
    			h=0;
    			for(int l=0;l<w.length;l++)
    				h=(o[l]=='@')?h+1:h-1;
    			for(int l=1;l<=w.length;l++)
    			{
    				if(j[w.length-l]==36)
    					j[w.length-l]=-58;
    				else if(j[w.length-l]==-26)
    				{
    					j[w.length-l]=0;
    					if(l<w.length)	j[w.length-l-1]+=1;
    				}
    			}
    			out="";
    			for(int l=0;l<w.length;l++)
    				out=out+(char)o[l];
    			buffer=out.getBytes();
    			digest=hash(new HexBinaryAdapter().marshal(buffer)).getBytes();
    			hex="";
    			for (int i = 0; i < digest.length; i++)
    			{
    				int b = digest[i] & 0xff;
    				if (Integer.toHexString(b).length() == 1) hex = hex + "0";
    				hex  = hex + Integer.toHexString(b);
    			}
    			if(hexVal.equals(hex))
    				return out;
    			System.out.println(BigDecimal.valueOf(start).divide(end).multiply(BigDecimal.valueOf(10)));
    		}
    		return null;
    	}
    	private void theory(int gain)
    	{
    		char[] charArray = new char[19];
    		int[] i = new int[19];
    		for(int u = 0; u < i.length; u++)
    		{
    			i[u] = charset.length - 1;
    		}
    		for(; i[0] >= 0; i[0]--)
    		{
    			for(int ii = 0; ii + gain <= 19; ii+=gain)
    			{
    				if(i[ii] == 0)
    				{
    					i[ii + gain]--;
    					i[ii] = charset.length - 1;
    				}
    				charArray[ii] = charset[i[ii]];
    			}
    			String checking = String.valueOf(charArray);
    			String tocheck = hash(checking);
    			if(tocheck.equals("16E1BDFD1D6AE1A954C9C5E1B2D9099780F3E1724541F1F2F77310B769CFFBAC"))
    			{
    				System.out.println(checking);
    				System.exit(0);
    			}
    		}
    	}
    	private static String hash(String str)
    	{
    		if(str != null)
    			try
    			{
    				MessageDigest md = MessageDigest.getInstance("SHA-256");
    				return new HexBinaryAdapter().marshal(md.digest(salt(str).getBytes()));
    			}
    			catch (NoSuchAlgorithmException e)
    			{
    				e.printStackTrace();
    			}
    				return "";
    	}
    	private static String salt(String str)
    	{
    		str = str += "wowsuchsaltmuchsecurityverywow";
    		SecureRandom rand = new SecureRandom(str.getBytes());
    		int l = str.length();
    		int steps = rand.nextInt(l);
    		char[] chrs = str.toCharArray();
    		for(int i = 0; i < steps; i++)
    		{
    			int indA = rand.nextInt(l);
    			int indB;
    			do
    			{
    				indB = rand.nextInt(l);
    			} while(indB == indA);
    			char c = (char) (chrs[indA] ^ chrs[indB]);
    			chrs[indA] = c;
    		}
    		return String.copyValueOf(chrs);
    	}
    }
    
    Is my code, so try using it for awhile, i removed multithreading because there's no real point
     
  12. WorCannibal

    WorCannibal Blasphemy is a victimless crime

    Messages:
    122
    Likes Received:
    40
    Local Time:
    11:49 AM
    You really are brute forcing it. Hope no numbers in the string. I'm taking a different approach altogether and focus on compiling a valid dictionary from the scripts first, probably binary search 16 char words... then use it to do a dictionary attack. I'm going to include the animatrix script too.
     
  13. chugga_fan

    chugga_fan ME 4M storage cell of knowledge, all the time

    Messages:
    5,861
    Likes Received:
    730
    Local Time:
    11:49 AM
    it's a 19 char string, no numbers afaik, and it'll work eventually, idk how long it'll take tho
     
  14. WorCannibal

    WorCannibal Blasphemy is a victimless crime

    Messages:
    122
    Likes Received:
    40
    Local Time:
    11:49 AM
    Knowing Vazkii, the phrase is probably "WachowskiSisters" o_O
     
  15. chugga_fan

    chugga_fan ME 4M storage cell of knowledge, all the time

    Messages:
    5,861
    Likes Received:
    730
    Local Time:
    11:49 AM
    try it!
     
  16. WorCannibal

    WorCannibal Blasphemy is a victimless crime

    Messages:
    122
    Likes Received:
    40
    Local Time:
    11:49 AM
    I copied all the scripts to text file, replaced punctuation and \r\n, parsed each word interrogating length and not a SINGLE 19 character word! Work is slow atm so off to read her reddit posts. Somewhere she's leaked something ... or ... parse the Lexicon Botania! dur :hungover:
     
  17. chugga_fan

    chugga_fan ME 4M storage cell of knowledge, all the time

    Messages:
    5,861
    Likes Received:
    730
    Local Time:
    11:49 AM
    for my most recent script? give it time, it takes a long time to run through each hash
     
  18. Azurith93

    Azurith93 Well-Known Member

    Messages:
    76
    Likes Received:
    13
    Local Time:
    11:49 AM
    Dumb question for you guys is it possible since the mod creator loves to add music easter eggs too it has something to do with the songs?
    P.S. There are 2 magic the gathering references (a card game i play): black lotus which is the most expensive card in the game, and blacker lotus which was a gag card in the game!
     
  19. WorCannibal

    WorCannibal Blasphemy is a victimless crime

    Messages:
    122
    Likes Received:
    40
    Local Time:
    11:49 AM
    I was thinking something the same; dictionary of words based on things outside of Matrix and Botania like anime, mtg, songs. I know she's from Portugal so here's hoping it's an English word! :cyclops:
     
  20. Azurith93

    Azurith93 Well-Known Member

    Messages:
    76
    Likes Received:
    13
    Local Time:
    11:49 AM
    i wasnt meaning out side the real of matrix but its theme song, maybe her favorite song from it. and good luck figuring it out if its an mtg reference.... dude so many cards and lore from it......
     

Share This Page