Exetools  

Go Back   Exetools > General > General Discussion

Notices

Reply
 
Thread Tools Display Modes
  #1  
Old 02-19-2015, 20:02
zeytunak zeytunak is offline
Friend
 
Join Date: Feb 2015
Posts: 81
Rept. Given: 0
Rept. Rcvd 17 Times in 11 Posts
Thanks Given: 93
Thanks Rcvd at 43 Times in 24 Posts
zeytunak Reputation: 17
decryption problem with MD5

Hi

I have a string like "D9" with ascii code "44" for "D" and "39" for "9"
x=ascii(D)+ascii(9) ==> x=7D

I assume only uppercase char
in reverse 7D=44+39 ==>D9 ***
7D=45+38 ==>E8
7D=46+37 ==>F7


but in md5 we have 32 character that after adding them we have 16 key value like 7D in above example and every key value have 3 possibility ( i hope ) means we have 3*3*...*3=3^16= 43046721 posible string .

q1 : MD5 string have a special form to reduce above possible string ?

do you have an idea ho to reverse it ?

10x
Reply With Quote
The Following User Says Thank You to zeytunak For This Useful Post:
Indigo (07-19-2019)
  #2  
Old 02-19-2015, 20:14
Syoma Syoma is offline
reverse engineer
 
Join Date: May 2009
Posts: 338
Rept. Given: 35
Rept. Rcvd 77 Times in 50 Posts
Thanks Given: 15
Thanks Rcvd at 78 Times in 51 Posts
Syoma Reputation: 77
md5 is not reversible. It is compression function (hash). The only way to solve it - find collision.
Reply With Quote
The Following User Says Thank You to Syoma For This Useful Post:
Indigo (07-19-2019)
  #3  
Old 02-20-2015, 00:11
bolo2002 bolo2002 is offline
VIP
 
Join Date: Apr 2002
Posts: 615
Rept. Given: 111
Rept. Rcvd 14 Times in 13 Posts
Thanks Given: 219
Thanks Rcvd at 238 Times in 152 Posts
bolo2002 Reputation: 14
try to bruteforce it,many tools available since years.
__________________
I like this forum!
Reply With Quote
The Following User Says Thank You to bolo2002 For This Useful Post:
Indigo (07-19-2019)
  #4  
Old 02-20-2015, 02:46
zeytunak zeytunak is offline
Friend
 
Join Date: Feb 2015
Posts: 81
Rept. Given: 0
Rept. Rcvd 17 Times in 11 Posts
Thanks Given: 93
Thanks Rcvd at 43 Times in 24 Posts
zeytunak Reputation: 17
thanks

I am not try to reverse MD5 , before i get a string that hashed with md5 algo .
in this step i have sum of assci code of two char . how to find orginal chars ?
Reply With Quote
The Following User Says Thank You to zeytunak For This Useful Post:
Indigo (07-19-2019)
  #5  
Old 03-10-2015, 13:05
cnbragon cnbragon is offline
Friend
 
Join Date: Nov 2010
Posts: 26
Rept. Given: 1
Rept. Rcvd 1 Time in 1 Post
Thanks Given: 3
Thanks Rcvd at 1 Time in 1 Post
cnbragon Reputation: 1
According to your description, it seems that there are no special form to reduce , except for there are other information about the original md5 string or the 16 key value, such as their validation?
Reply With Quote
The Following User Says Thank You to cnbragon For This Useful Post:
Indigo (07-19-2019)
  #6  
Old 03-10-2015, 16:11
zeytunak zeytunak is offline
Friend
 
Join Date: Feb 2015
Posts: 81
Rept. Given: 0
Rept. Rcvd 17 Times in 11 Posts
Thanks Given: 93
Thanks Rcvd at 43 Times in 24 Posts
zeytunak Reputation: 17
orginal md5 string or 16 key value not used instead maked hash string used .
Reply With Quote
The Following User Says Thank You to zeytunak For This Useful Post:
Indigo (07-19-2019)
  #7  
Old 03-10-2015, 23:12
anon_c anon_c is offline
Friend
 
Join Date: Jan 2011
Posts: 27
Rept. Given: 25
Rept. Rcvd 8 Times in 3 Posts
Thanks Given: 12
Thanks Rcvd at 7 Times in 7 Posts
anon_c Reputation: 8
q1 : MD5 string have a special form to reduce above possible string ?

unfortunately, no...


you wrote:
7D=44+39 ==>D9
7D=45+38 ==>E8
7D=46+37 ==>F7

but can't
7D=39+44 ==>9D
7D=38+45 ==>8E
7D=37+46 ==>7F

also be valid solutions?

my understanding from your first two posts was that you wanted a solution for each byte taken from a md5 hash, given that each byte is the sum of 2 "ascii code" for values in the range of possible Hex number ['1'..'9', 'A'..'F'] (thus 0x30-0x39 and 0x41-0x46) ?

this would already limits the values of the bytes (from the md5) to 0x60-0x92.. Do you really have a md5 hashing that always give bytes in this limited range? Please, give an example of a md5 used in your example then.

Now you wrote "orginal md5 string or 16 key value not used". From where does the 7D comes from then? Confusing...
Reply With Quote
The Following User Says Thank You to anon_c For This Useful Post:
Indigo (07-19-2019)
  #8  
Old 03-11-2015, 14:11
zeytunak zeytunak is offline
Friend
 
Join Date: Feb 2015
Posts: 81
Rept. Given: 0
Rept. Rcvd 17 Times in 11 Posts
Thanks Given: 93
Thanks Rcvd at 43 Times in 24 Posts
zeytunak Reputation: 17
Its magic , I want to reduce possible string but increased rapidly 6^16=2821109907456 .

It is used as login and in first time that set by user then hashed value saved and then used to check valid user login.

this encryption is made from "md5 algo" + "simple adding algo" and adding is not part of md5 and programmer used adding after using md5 .
( instead of using non-standard md5 , maybe programmer dont know about non-standard md5)
I think this is good idea becuase if programmer only use standard md5 for fixed string length ( 16 char in our example ) then its easily breaked. all possible 16 char string maked and hashed with md5 and search between them .
many site provide standard md5 decryptor in above manner .
Reply With Quote
The Following User Says Thank You to zeytunak For This Useful Post:
Indigo (07-19-2019)
  #9  
Old 03-12-2015, 05:12
anon_c anon_c is offline
Friend
 
Join Date: Jan 2011
Posts: 27
Rept. Given: 25
Rept. Rcvd 8 Times in 3 Posts
Thanks Given: 12
Thanks Rcvd at 7 Times in 7 Posts
anon_c Reputation: 8
"this encryption is made from "md5 algo" + "simple adding algo" and adding is not part of md5 and programmer used adding after using md5 ."

That is exactly how I understand the problem.

Now, for the "simple adding algo" to work (at least the way you presented it in your first post), the MD5 should give you bytes (the 32 chars of the md5 divided into 16 bytes) containing only values between 0x60 and 0x92 ! That is the problem.

For instance, if you hash "exetools", you get:

DC67724E1CCF839C05957C27F9862499
DC 67 72 4E 1C CF 83 9C 05 95 7C 27 F9 86 24 99
What will the "simple adding algo" do with the values DC or 24?

Last edited by anon_c; 03-12-2015 at 05:18.
Reply With Quote
The Following User Says Thank You to anon_c For This Useful Post:
Indigo (07-19-2019)
  #10  
Old 03-12-2015, 12:42
zeytunak zeytunak is offline
Friend
 
Join Date: Feb 2015
Posts: 81
Rept. Given: 0
Rept. Rcvd 17 Times in 11 Posts
Thanks Given: 93
Thanks Rcvd at 43 Times in 24 Posts
zeytunak Reputation: 17
ascii code for D = 44h
ascii code for C = 43h +
------
87 saved

ascii code for 2 = 32h
ascii code for 4 = 34h +
--------
66 saved

in md5 string we have 0 , 1 , 2 , 3 , ..., D , E , F ( if only using uppercase )
in hex 0x30 , 0x31 , 0x32 , 0x33 , .... , 0x44 , 0x45 , 0x46

Minimum = Ascii(0) + Ascii(0) = 0x30 + 0x30 = 0x60
Maximum = Ascii(F) + Ascii(F) = 0x46 + 0x46 = 0x8C

0x60 < final saved hash < 0x8c
Reply With Quote
The Following User Says Thank You to zeytunak For This Useful Post:
Indigo (07-19-2019)
  #11  
Old 03-12-2015, 16:06
arthur plank arthur plank is offline
Friend
 
Join Date: Jan 2005
Posts: 120
Rept. Given: 28
Rept. Rcvd 22 Times in 14 Posts
Thanks Given: 21
Thanks Rcvd at 68 Times in 29 Posts
arthur plank Reputation: 22
I thought I understood MD5. But after reading this thread, I'm no longer sure.
Reply With Quote
The Following User Says Thank You to arthur plank For This Useful Post:
Indigo (07-19-2019)
  #12  
Old 03-12-2015, 19:44
mr.exodia mr.exodia is offline
Retired Moderator
 
Join Date: Nov 2011
Posts: 784
Rept. Given: 492
Rept. Rcvd 1,122 Times in 305 Posts
Thanks Given: 90
Thanks Rcvd at 711 Times in 333 Posts
mr.exodia Reputation: 1100-1299 mr.exodia Reputation: 1100-1299 mr.exodia Reputation: 1100-1299 mr.exodia Reputation: 1100-1299 mr.exodia Reputation: 1100-1299 mr.exodia Reputation: 1100-1299 mr.exodia Reputation: 1100-1299 mr.exodia Reputation: 1100-1299 mr.exodia Reputation: 1100-1299
I'm not really sure why there is still discussion about 'decrypting md5'. md5 is not an encryption algorithm you cannot 'decrypt' it!
Reply With Quote
The Following User Says Thank You to mr.exodia For This Useful Post:
Indigo (07-19-2019)
  #13  
Old 03-12-2015, 19:56
arthur plank arthur plank is offline
Friend
 
Join Date: Jan 2005
Posts: 120
Rept. Given: 28
Rept. Rcvd 22 Times in 14 Posts
Thanks Given: 21
Thanks Rcvd at 68 Times in 29 Posts
arthur plank Reputation: 22
Quote:
I'm not really sure why there is still discussion about 'decrypting md5'. md5 is not an encryption algorithm you cannot 'decrypt' it!
It's a relief to find that someone stated what I've understood for a long time. I was starting to wonder about my sanity!
Reply With Quote
The Following User Says Thank You to arthur plank For This Useful Post:
Indigo (07-19-2019)
  #14  
Old 03-12-2015, 20:16
zeytunak zeytunak is offline
Friend
 
Join Date: Feb 2015
Posts: 81
Rept. Given: 0
Rept. Rcvd 17 Times in 11 Posts
Thanks Given: 93
Thanks Rcvd at 43 Times in 24 Posts
zeytunak Reputation: 17
its possible to crack hashed string with md5 and find orginal string .
for example in hxxp://md5cracker.org or bruteforce method or ...
Reply With Quote
The Following User Says Thank You to zeytunak For This Useful Post:
Indigo (07-19-2019)
  #15  
Old 03-12-2015, 22:59
anon_c anon_c is offline
Friend
 
Join Date: Jan 2011
Posts: 27
Rept. Given: 25
Rept. Rcvd 8 Times in 3 Posts
Thanks Given: 12
Thanks Rcvd at 7 Times in 7 Posts
anon_c Reputation: 8
Ah! My confusion came from your first post where you wrote:

"¡­but in md5 we have 32 character that after adding them we have 16 key value like 7D in above example"

7D does not come from the md5, D9 does!

Then, since many solution exist for each byte in the "final saved hash", I don't think you can reverse it, exactly as cnbragon pointed out
Reply With Quote
The Following User Says Thank You to anon_c For This Useful Post:
Indigo (07-19-2019)
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



All times are GMT +8. The time now is 07:30.


Always Your Best Friend: Aaron, JMI, ahmadmansoor, ZeNiX, chessgod101
( 1998 - 2024 )