Jump to content

[SOLVED] How do I get and MD5ed password


rondog

Recommended Posts

I am in my database where I setup all the usernames and passwords. I cant remember one of them and I am trying to find out what it is.

 

I am doing this, but it is returning the md5 hash

<?php
$con = mysql_connect("localhost","uname","pw");
if (!$con) {
echo "unable to connect to DB";
echo mysql_error($con);
exit();
}
$db = mysql_select_db("db");
if (!$db) {
echo "unable to open DB";
echo mysql_error($db);
exit();
}
$query = mysql_query("SELECT password FROM users WHERE username = 'MJackson'");
$result = mysql_fetch_array($query);
echo $result[0];    
?>

Link to comment
Share on other sites

pocobueno1388 the websites you posted do not actually decrypted an md5 hash/string. All them sites have a database which stores md5 hashes for commonly used words, such as the word 'the'. If you enter the md5 hash for the word 'the' you'll notice  it return the word 'the'. But if you hased the word '7h3' (7 for t and 3 for e inreplacement) you may find that it wont return the original word.

 

There is no way to easily decrypt an md5 hash except to use brute force.

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.