Skip to content

Instantly share code, notes, and snippets.

@itsfolf
Created January 5, 2018 19:33
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save itsfolf/60d8849bcbc49da1549dc8bd75fbcdf0 to your computer and use it in GitHub Desktop.
Save itsfolf/60d8849bcbc49da1549dc8bd75fbcdf0 to your computer and use it in GitHub Desktop.
vHack password encryption
String json = "{\"\":\"\",\"pass\":\"cu\",\"time\":\"1515180217\",\"userName\":\"2643311\",\"user\":\"a\"}";
// 1: MD5 encrypt the data json length and a md5 encryption of the current time in millis
String lenghtandtime = md5Encrypt(json.length() + md5Encrypt(System.currentTimeMillis() + ""));
// 2: Create a login details string, with the username added to a double md5 encryption of the password
String logindetails = "USERNAME" + "" + md5Encrypt(md5Encrypt("PASSWORD"));
// 3: Re-set the json as a md5 encryption of the current time in millis and itself
json = md5Encrypt(System.currentTimeMillis() + "" + json);
// 4: Set the string created on step 1 as a md5 encryption of "aeffI" with a double md5 encryption of base64 encryption of itself
lenghtandtime = md5Encrypt("aeffI" + md5Encrypt(md5Encrypt(base64Encrypt(lenghtandtime))));
// 5: Set the login details as a md5 encryption of the string made in step 4 and a base64 encryption of the login details string
logindetails = md5Encrypt(lenghtandtime + base64Encrypt(logindetails));
// 6: Re-set the json as a base64 encryption of itself
json = base64Encrypt(json);
// 7: Re-set the json as a double md5 encryption of the string from the step 4, a md5 encryption of a md5 encryption of the login details string and the json, the login detials string, and a md5 encryption of the json
json = md5Encrypt(md5Encrypt(lenghtandtime + md5Encrypt(md5Encrypt(logindetails) + json) + logindetails + md5Encrypt(json)));
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment