Register for your free account! | Forgot your password?

Go Back   elitepvpers > MMORPGs > Rappelz > Rappelz Private Server
You last visited: Today at 08:48

  • Please register to post and access all features, it's quick, easy and FREE!

Advertisement



Looking for help with hashing (C#)

Discussion on Looking for help with hashing (C#) within the Rappelz Private Server forum part of the Rappelz category.

Reply
 
Old   #1
 
Blue Ballz's Avatar
 
elite*gold: 0
Join Date: Jan 2013
Posts: 2
Received Thanks: 1
Question Looking for help with hashing (C#)

Hello, everyone. I've been following this forum for some time. I never post because I can generally find what I'm looking for by searching the forum or by otherwise using web resources. I am however at a loss and thought I'd try my luck here on Epvp.

I'm writing a few tools in C# and I need a function to hash the names of rdb files. Since I have no clue where to start Thought I'd ask around.

I was using a tool that was given to me up until now but, as an example; When I try to hash db_string(ascii).rdb I get !PWS)3rDAd3O'`dU}deN instead of !PWS)3rDAd3O'`dU+O}deN

I would like to understand how this all works and be able to make edits in the future, not to mention the ability to use it in my own tools. Any help is much appreciated. Thanks in advanced.
Blue Ballz is offline  
Thanks
1 User
Old 01/03/2013, 14:50   #2
 
elite*gold: 0
Join Date: Aug 2011
Posts: 532
Received Thanks: 233
Quote:
Originally Posted by Blue Ballz View Post
Hello, everyone. I've been following this forum for some time. I never post because I can generally find what I'm looking for by searching the forum or by otherwise using web resources. I am however at a loss and thought I'd try my luck here on Epvp.

Has it anything to do with HashAlgorithm.ComputeHash method? I've really never looked into the method Rappelz uses. I can help you out if you help me out. (or just wait for someone smarter to answer you)
marekrndr is offline  
Old 01/03/2013, 14:58   #3
 
elite*gold: 0
Join Date: Aug 2012
Posts: 320
Received Thanks: 264
Maybe ?
gr4ph0s is offline  
Old 01/03/2013, 16:10   #4
 
TheChinStrap's Avatar
 
elite*gold: 0
Join Date: Jul 2012
Posts: 146
Received Thanks: 215
Lol, wrong thread...


Nulled
TheChinStrap is offline  
Old 01/03/2013, 17:18   #5
 
Blue Ballz's Avatar
 
elite*gold: 0
Join Date: Jan 2013
Posts: 2
Received Thanks: 1
Quote:
Originally Posted by gr4ph0s View Post
Maybe ?
Yes, I did see that but I must admit I am completely out of my depth. I haven't the foggiest how to read C. I know C# and I won't claim to be an expert even in that. I suppose I'll have to read some tutorials on C and get to work.

Quote:
Originally Posted by marekrndr View Post
I can help you out if you help me out.
What exactly did you have in mind?
Blue Ballz is offline  
Old 01/03/2013, 19:16   #6
 
elite*gold: 0
Join Date: Aug 2012
Posts: 320
Received Thanks: 264
Quote:
Originally Posted by Blue Ballz View Post
Yes, I did see that but I must admit I am completely out of my depth. I haven't the foggiest how to read C. I know C# and I won't claim to be an expert even in that. I suppose I'll have to read some tutorials on C and get to work.

You just have to look into HashToName.c/h and NameToHash.c/h
gr4ph0s is offline  
Thanks
2 Users
Old 01/04/2013, 15:54   #7
 
elite*gold: 0
Join Date: Apr 2012
Posts: 463
Received Thanks: 837
Gr4ph0s mentionned the files you have to look at, hash conversion in C should not afraid someone that knows C# as the syntax is nearly the same.
There are just some loops, functions calls and arrays. Hashing is not a simple conversion to make reverse engineering more difficult to do, as data related to data.00x are mostly encrypted.
I use LEGACY_SEED as before doing the name->hash conversion, i did the algorithm using the reverse version of the hash->name one. But it leads to severals possibility and the correct one is returned when using LEGACY_SEED

Note that for the posted version, arrays name are not good names HashToName should have decryptTable* arrays instead of encryptTable* and the code is not optimized

char type is used as the byte type in C#, that is a one byte variable

For function like strcpy, strlen, floor, tolower, ... use or type them directly in google, you should get a link to that site explaining the behavior of these functions
glandu2 is offline  
Old 01/04/2013, 16:01   #8
 
elite*gold: 0
Join Date: Aug 2011
Posts: 532
Received Thanks: 233
Quote:
Originally Posted by Blue Ballz View Post
What exactly did you have in mind?

Quote:
Originally Posted by Blue Ballz View Post
I was using a tool that was given to me up until now but, as an example; When I try to hash db_string(ascii).rdb I get !PWS)3rDAd3O'`dU}deN instead of !PWS)3rDAd3O'`dU+O}deN
Show me what you got and I'll fix it for you. Also I read the link that was posted above and I hassled it working.
marekrndr is offline  
Reply


Similar Threads Similar Threads
PW encryption / hashing
05/09/2012 - Shaiya Private Server - 4 Replies
Is anyone here working on password encryption for the users_master table? I just want to make sure I'm not duplicating effort. I seem to only able to find bits an pieces about it with the search function.
[How To] Password Hashing
07/03/2011 - Shaiya PServer Development - 13 Replies
I wrote this during breakfast on my way to work so there isn't a ton of documentation along with it. A quick answer to why storing passwords (in plain text) in a database is bad: Why are plain text passwords bad, and how do I convince my boss that his treasured websites are in jeopardy? - Stack Overflow Here is what my .. looked like after I implemented password hashing: http://a.imageshack.us/img261/2329/shaiyapsusersm aster.gif As you can see I changed the data types on a few...



All times are GMT +2. The time now is 08:48.


Powered by vBulletin®
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
SEO by vBSEO ©2011, Crawlability, Inc.
This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.

Support | Contact Us | FAQ | Advertising | Privacy Policy | Terms of Service | Abuse
Copyright ©2024 elitepvpers All Rights Reserved.