1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Botanias matrix wings

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

  1. Tokoshoran

    Tokoshoran Well-Known Member

    Messages:
    677
    Likes Received:
    57
    Local Time:
    9:21 PM
    Guys, are you sure you're doing this right? "Nineteen characters." Neo is one character. Trinity is a second. Morpheus is a third... Think of it that way. Who are nineteen characters related to Neo?
    I know that's not what "Character" usually means when it comes to passwords, but who knows!
     
  2. WorCannibal

    WorCannibal Blasphemy is a victimless crime

    Messages:
    122
    Likes Received:
    40
    Local Time:
    12:21 AM
    I'm inclined to agree that we're taking this too literally. Not a single 19 character word in the Lexicon either ... however it's hard to misconstrue "It's 19 characters long"
     
  3. Tokoshoran

    Tokoshoran Well-Known Member

    Messages:
    677
    Likes Received:
    57
    Local Time:
    9:21 PM
    Well, have you tried "Matrix digital rain" yet? That's 19 characters long, and Neo taps into the "rain" to modify how the world works, granting him his powers. Can't test it myself because I suck at botania.
     
  4. chugga_fan

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

    Messages:
    5,861
    Likes Received:
    730
    Local Time:
    12:21 AM
    or just run the code i showed you.... and it will do the same thing[DOUBLEPOST=1465439020][/DOUBLEPOST]Also the answer is no, it's not that
     
  5. Cyberdan13

    Cyberdan13 Well-Known Member

    Messages:
    24
    Likes Received:
    1
    Local Time:
    5:21 AM
    Got to 1896 possibilities ... time to get testing!
     
  6. chugga_fan

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

    Messages:
    5,861
    Likes Received:
    730
    Local Time:
    12:21 AM
    there is ONE possibility, there is ONE, if you're using the method vazkii gave (and you should) you should ONLY get one possibility
     
  7. Cyberdan13

    Cyberdan13 Well-Known Member

    Messages:
    24
    Likes Received:
    1
    Local Time:
    5:21 AM
    I wish I could only get these down to ONE...hue hue

    p.s. Wouldn't mind a link to Vazkii's method
     
    Last edited: Jun 29, 2016
  8. chugga_fan

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

    Messages:
    5,861
    Likes Received:
    730
    Local Time:
    12:21 AM
    Update on this, made a better program for cracking it, it uses IKVM, it's in C#
    Code:
    using System;
    using System.Collections.Generic;
    using System.Linq;
    using System.Text;
    using System.Threading;
    using java.security;
    using System.Threading.Tasks;
    
    namespace Cracking
    {
    	class Program
    	{
    		static char[] charset = "abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ ".ToCharArray();
    		static void Main(string[] args)
    		{
    			Task h = Task.Run(async () => { await TestThread(); });
    			Task a = Task.Run(async () => { await TestThread(); });
    			Task b = Task.Run(async () => { await TestThread(); });
    			Task d = Task.Run(async () => { await TestThread(); });
    			h.Wait();
    			a.Dispose();
    			b.Dispose();
    			h.Dispose();
    			d.Dispose();
    		}
    		static async Task TestThread()
    		{
    			Random rand = new Random();
    			char[] ch = new char[19];
    			for (int i = 0; i < ch.Length; i++)
    				ch[i] = 'a';
    			string a = "16E1BDFD1D6AE1A954C9C5E1B2D9099780F3E1724541F1F2F77310B769CFFBAC";
    			while(true)
    			{
    				string b = await hash(new string(ch));
    				if(b.Equals(a))
    				{
    					Console.WriteLine("FOUND IT!!!!!!!!!!!!");
    					Console.WriteLine(new string(ch));
    					Console.ReadLine();
    				}
    				else
    					ch[rand.Next(18)] = charset[rand.Next(charset.Length - 1)];
    			}
    		}
    		private static async Task<string> hash(string str)
    		{
    			if(str != null)
    				try
    				{
    					MessageDigest md = MessageDigest.getInstance("SHA-256");
    					return new javax.xml.bind.annotation.adapters.HexBinaryAdapter().marshal(md.digest(Encoding.UTF8.GetBytes(await salt(str))));
    				}
    				catch (NoSuchAlgorithmException e)
    				{
    					e.printStackTrace();
    				}
    			return "";
    		}
    		private static async Task<string> salt(string str)
    		{
    			str = str += "wowsuchsaltmuchsecurityverywow";
    			SecureRandom random = new SecureRandom(Encoding.ASCII.GetBytes(str));
    			int l = str.Length;
    			int steps = random.nextInt(l);
    			char[] chrs = str.ToCharArray();
    			await Task.Run(() =>
    			{
    				for (int i = 0; i < steps; i++)
    				{
    					int indA = random.nextInt(l);
    					int indB;
    					do
    					{
    						indB = random.nextInt(l);
    					}
    					while (indB == indA);
    					char c = (char)(chrs[indA] ^ chrs[indB]);
    					chrs[indA] = c;
    				}
    			});
    			return new string(chrs);
    		}
    	}
    }
    
     
    Last edited: Jul 23, 2016
  9. Cyberdan13

    Cyberdan13 Well-Known Member

    Messages:
    24
    Likes Received:
    1
    Local Time:
    5:21 AM
    Made me kek

    Mod note: Removed quote with swear word ;)
     
    Last edited by a moderator: Jul 24, 2016
  10. chugga_fan

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

    Messages:
    5,861
    Likes Received:
    730
    Local Time:
    12:21 AM
    oops forgot i had that, changed it ;)
     
  11. SirStudMuffin

    SirStudMuffin Well-Known Member

    Messages:
    2,365
    Likes Received:
    337
    Local Time:
    5:21 AM
    The man who knows all (doubtful) gothic says you need to name a feather -_-
    I dont trust his logic
     
  12. chugga_fan

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

    Messages:
    5,861
    Likes Received:
    730
    Local Time:
    12:21 AM
    I'm running my program now, so we'll see what we have to name
     
  13. ContinuedAsh

    ContinuedAsh Just a boring person.

    Messages:
    273
    Likes Received:
    170
    Local Time:
    11:21 PM
    I want the name :/
     
  14. chugga_fan

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

    Messages:
    5,861
    Likes Received:
    730
    Local Time:
    12:21 AM
    It was using too much CPU so i had to stop it, run it yourself for a month and try :p
     
  15. Cyberdan13

    Cyberdan13 Well-Known Member

    Messages:
    24
    Likes Received:
    1
    Local Time:
    5:21 AM
    Been running for a couple of days. While update (whenever that will be) when something happens.
     
  16. chugga_fan

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

    Messages:
    5,861
    Likes Received:
    730
    Local Time:
    12:21 AM
    What'll happen is that one thread will run to completion and the rest will wait die immediately if you continue, so there's 4 threads searching randomly for this name
     
  17. Cyberdan13

    Cyberdan13 Well-Known Member

    Messages:
    24
    Likes Received:
    1
    Local Time:
    5:21 AM
    Noticed this from the long list of threads being exited. I applaud the effort in making this code btw
     
  18. chugga_fan

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

    Messages:
    5,861
    Likes Received:
    730
    Local Time:
    12:21 AM
    It was nothing, it's random, so no determinate length of time will tell when it gets it, and it took like 6 minutes of coding ;)
     
  19. Cyberdan13

    Cyberdan13 Well-Known Member

    Messages:
    24
    Likes Received:
    1
    Local Time:
    5:21 AM
    Pfft, I'm still learning in my degree so something like this is quite amazing in my perceptive :p
     
  20. chugga_fan

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

    Messages:
    5,861
    Likes Received:
    730
    Local Time:
    12:21 AM
    it's well known that I haven't even taken a CS class .-. it's really just a simple bruteforce program, nothing complex as the SHA family has no known vulnerabilities
     

Share This Page