Home World Forum
Stars! AutoHost web forums

Jump to Stars! AutoHost


 
 
Home » Stars! Clones, Extensions, Modding » Stars! Extensions » Should Stars! files structures be publically available?
Re: Should Stars! files structures be publically available? Mon, 01 September 2014 14:49 Go to previous messageGo to previous message
platon79 is currently offline platon79

 
Chief Warrant Officer 3

Messages: 185
Registered: February 2004
Location: Norway
raptor wrote on Mon, 01 September 2014 05:35

The password is hashed as a 32 bit integer at index 12 of the data: [67 18 14 0]. When read as a little-endian integer, this is the number 922179.
Your password is 'aaaaa' Smile
I'll post the algorithm and brute-forcing code to my repo soon.


Before you posted this, I started pounding on the hashing algorithm myself. And after a couple of hours I managed to solve it! Very Happy
It is strange that you should be so certain that my password is aaaaa. It actually is, but due to the hashing into just 4 bytes it could also be something completely different. In fact, my own password-routine that I have now written suggests aaba instead of aaaaa Smile And my race with password AAAA it suggested a902 for. Wink And both passwords worked in stars. Very Happy
Unfortunately, I have not been able to find the password I actually wanted to find yet Sad My own brute-force-approach is a little bit too brute-force, calculating all permutations of [abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456 789] , starting with 1 characters, then advancing to 2, then 3 etc. For each permutation I calculate a hash and compares with the decrypted number.
4 characters takes up to 2458 ms, 5 characters up to 130136 ms. It is still calculating for 6 characters..
It would probably be more speedy if I wrote it in C or something instead of Java, and I should probably try it out on my stationary computer instead of my laptop, maybe give the java-process a bit more memory for the recursion etc. But I guess the code could also be optimized also somehow. I'll have a look into your code when you publish it Smile

Report message to a moderator

 
Read Message icon5.gif
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: "message pane" scraper
Next Topic: Stars Core Engine
Goto Forum:
  


Current Time: Wed May 01 17:56:53 EDT 2024