[Release] WZ_MD5_MOD for SQL Server x64 by xakumm

Results 1 to 19 of 19
  1. #1
    Enthusiast xakumm is offline
    MemberRank
    Nov 2010 Join Date
    29Posts

    [Release] WZ_MD5_MOD for SQL Server x64 by xakumm

    Extended Stored Procedure for create and check WZ MD5 Hash on x64 systems.

    1. Copy the 'WZ_MD5_MOD_x64.dll' in C:\Program Files\Microsoft SQL Server\MSSQL\Binn\
    2. Run this script "Install WZ_MD5_MOD_x64.sql"
    3. Run script "Test.sql" [optional]
    4. Enjoy!

    Download WZ_MD5_MOD x64 + fix
    Last edited by xakumm; 13-01-17 at 10:33 AM.


  2. #2
    TheGhost pquintal is offline
    MemberRank
    May 2009 Join Date
    Funchal-PTLocation
    205Posts

    re: [Release] WZ_MD5_MOD for SQL Server x64 by xakumm

    Excelent xakum, very useful!!!

  3. #3
    Alpha Member ianvalls90 is offline
    MemberRank
    Apr 2007 Join Date
    ArgentinaLocation
    1,829Posts

    re: [Release] WZ_MD5_MOD for SQL Server x64 by xakumm

    Simply awesome.

  4. #4
    the Aspect of Twilight jhesociety is offline
    MemberRank
    Apr 2014 Join Date
    PhilippinesLocation
    305Posts

    re: [Release] WZ_MD5_MOD for SQL Server x64 by xakumm

    thanks.. :)

  5. #5
    Mulegend Server Mulegend is offline
    MemberRank
    May 2006 Join Date
    Montevideo - UruguayLocation
    461Posts

    re: [Release] WZ_MD5_MOD for SQL Server x64 by xakumm

    This already posted 4 o 5 years ago..

  6. #6
    Enthusiast xakumm is offline
    MemberRank
    Nov 2010 Join Date
    29Posts

    re: [Release] WZ_MD5_MOD for SQL Server x64 by xakumm

    Quote Originally Posted by Mulegend View Post
    This already posted 4 o 5 years ago..
    what are you talking about? I made it 9 months ago and released just now.
    if there is another version of this library for SQL Server x64 - show it me.

  7. #7
    TheGhost pquintal is offline
    MemberRank
    May 2009 Join Date
    Funchal-PTLocation
    205Posts

    re: [Release] WZ_MD5_MOD for SQL Server x64 by xakumm

    I search for this on net one month ago, no results, this not exist in another place, only exist for x86 systems

  8. #8
    Let's do this... navossoc is offline
    MemberRank
    Sep 2004 Join Date
    BrazilLocation
    305Posts

    re: [Release] WZ_MD5_MOD for SQL Server x64 by xakumm

    Quote Originally Posted by xakumm View Post
    what are you talking about? I made it 9 months ago and released just now.
    if there is another version of this library for SQL Server x64 - show it me.
    Well, maybe it exists, but is not public...

    Test script
    Code:
    -- XP_MD5_EncodeKeyVal
    
    SET NOCOUNT ON
    
    
    DECLARE @login1 char(10), @pass1 char(10), @Hash1 binary(16)
    set @login1 = 'login'
    set @pass1 = 'pass'
    
    
    EXEC master.dbo.XP_MD5_EncodeKeyVal @login1, @pass1, @Hash1 OUT
    
    
    ---------------------------------------------------------------------
    
    
    DECLARE @login1n nchar(10), @pass1n nchar(10), @Hash1n binary(16)
    set @login1n = N'login'
    set @pass1n = N'pass'
    
    
    EXEC master.dbo.XP_MD5_EncodeKeyVal @login1n, @pass1n, @Hash1n OUT
    
    
    ---------------------------------------------------------------------
    
    
    DECLARE @LogiN2 varchar(10), @pass2 varchar(10), @Hash2 binary(16)
    set @LogiN2 = 'login'
    set @pass2 = 'pass'
    
    
    EXEC master.dbo.XP_MD5_EncodeKeyVal @LogiN2, @pass2, @Hash2 OUT
    
    
    ---------------------------------------------------------------------
    
    
    DECLARE @LogiN2n nvarchar(10), @pass2n nvarchar(10), @Hash2n binary(16)
    set @LogiN2n = N'login'
    set @pass2n = N'pass'
    
    
    EXEC master.dbo.XP_MD5_EncodeKeyVal @LogiN2n, @pass2n, @Hash2n OUT
    
    
    ---------------------------------------------------------------------
    
    
    declare @Hash3 binary(16)
    EXEC master.dbo.XP_MD5_EncodeKeyVal 'login', 'pass', @Hash3 OUT
    
    
    ---------------------------------------------------------------------
    
    
    declare @Hash3n binary(16)
    EXEC master.dbo.XP_MD5_EncodeKeyVal N'login', N'pass', @Hash3n OUT
    
    
    ---------------------------------------------------------------------
    
    
    select @Hash1 as 'char', @Hash1n as 'nchar'
    select @Hash2 as 'varchar', @Hash2n as 'nvarchar' 
    select @Hash3 as 'literal', @Hash3n as 'nliteral'
    Your DLL
    Code:
    char                               nchar
    ---------------------------------- ----------------------------------
    0x49192D0074BA77460E1AC359D3DDEABA 0x36B759A7F6A79F205FE9271ACB1722F8
    
    
    varchar                            nvarchar
    ---------------------------------- ----------------------------------
    0x2450781554F7806EC1A4DE67E7A762C4 0x406800C0B012934AD1CA13562EEC3F2B
    
    
    literal                            nliteral
    ---------------------------------- ----------------------------------
    0x2450781554F7806EC1A4DE67E7A762C4 0x406800C0B012934AD1CA13562EEC3F2B
    Original x86
    Code:
    char                               nchar
    ---------------------------------- ----------------------------------
    0x49192D0074BA77460E1AC359D3DDEABA 0xABEF31793325B11D7DBBF98C8F3C2794
    
    
    varchar                            nvarchar
    ---------------------------------- ----------------------------------
    0x2450781554F7806EC1A4DE67E7A762C4 0xEA4C79D5CF04F00860937968F60C7EFC
    
    
    literal                            nliteral
    ---------------------------------- ----------------------------------
    0x19522F64C31DD4CB2DA20AADC2CE924D 0x2A6985F2ECB9C4F4B37439125F7B4C4E

  9. #9
    DarkMu wolfulus is offline
    MemberRank
    Jul 2006 Join Date
    BrazilLocation
    307Posts

    re: [Release] WZ_MD5_MOD for SQL Server x64 by xakumm

    the one that I have matches original x86 results too. this one seems to be fk up.. be careful migrating your server to SQL Server x64 using this dll.

  10. #10
    Enthusiast xakumm is offline
    MemberRank
    Nov 2010 Join Date
    29Posts

    re: [Release] WZ_MD5_MOD for SQL Server x64 by xakumm

    navossoc, wolfulus,
    you should use only varchar (or char), because the use unicode is a big mistake and unsafe - for password guessing need only the first character ( check it: )
    Code:
    DECLARE @btInStr0 NVARCHAR(10), @btInStr1 NVARCHAR(10), @btInStr2 NVARCHAR(10)
    DECLARE @btInStrIndex	NVARCHAR(10)
    DECLARE	@btOutVal	BINARY(16)
    set @btInStr0 = N'password'
    set @btInStr1 = N'pass'
    set @btInStr2 = N'p'
    set @btInStrIndex = N'login'
    EXEC master..XP_MD5_EncodeKeyVal @btInStr0, @btInStrIndex, @btOutVal OUT
    print @btOutVal
    EXEC master..XP_MD5_EncodeKeyVal @btInStr1, @btInStrIndex, @btOutVal OUT
    print @btOutVal
    EXEC master..XP_MD5_EncodeKeyVal @btInStr2, @btInStrIndex, @btOutVal OUT
    print @btOutVal
    
    /* result: 
    	0x124C67DED6D675FE458137B70BBDC41E
    	0x124C67DED6D675FE458137B70BBDC41E
    	0x124C67DED6D675FE458137B70BBDC41E */
    I changed the library (download from first post), what would the outcome was in the original library x86, but my dll already correctly worked with varchar.

  11. #11
    Let's do this... navossoc is offline
    MemberRank
    Sep 2004 Join Date
    BrazilLocation
    305Posts

    re: [Release] WZ_MD5_MOD for SQL Server x64 by xakumm

    Quote Originally Posted by xakumm View Post
    navossoc, wolfulus,
    you should use only varchar (or char), because the use unicode is a big mistake and unsafe - for password guessing need only the first character ( check it: )
    Code:
    DECLARE @btInStr0 NVARCHAR(10), @btInStr1 NVARCHAR(10), @btInStr2 NVARCHAR(10)
    DECLARE @btInStrIndex    NVARCHAR(10)
    DECLARE    @btOutVal    BINARY(16)
    set @btInStr0 = N'password'
    set @btInStr1 = N'pass'
    set @btInStr2 = N'p'
    set @btInStrIndex = N'login'
    EXEC master..XP_MD5_EncodeKeyVal @btInStr0, @btInStrIndex, @btOutVal OUT
    print @btOutVal
    EXEC master..XP_MD5_EncodeKeyVal @btInStr1, @btInStrIndex, @btOutVal OUT
    print @btOutVal
    EXEC master..XP_MD5_EncodeKeyVal @btInStr2, @btInStrIndex, @btOutVal OUT
    print @btOutVal
    
    /* result: 
        0x124C67DED6D675FE458137B70BBDC41E
        0x124C67DED6D675FE458137B70BBDC41E
        0x124C67DED6D675FE458137B70BBDC41E */
    I changed the library (download from first post), what would the outcome was in the original library x86, but my dll already correctly worked with varchar.
    TBH, i really don't care about it or even use it...

    It just don't mimic the original behavior, so it's broken in my opinion, but now seems you have fixed it...

    []'s

  12. #12
    Account Upgraded | Title Enabled! perez4all is offline
    MemberRank
    Mar 2015 Join Date
    Somewhere:)nearLocation
    308Posts

    re: [Release] WZ_MD5_MOD for SQL Server x64 by xakumm

    Thanks! Man! Thanks! I'd been seaching foor this like 3 days.

  13. #13
    the Aspect of Twilight jhesociety is offline
    MemberRank
    Apr 2014 Join Date
    PhilippinesLocation
    305Posts

    re: [Release] WZ_MD5_MOD for SQL Server x64 by xakumm

    repost but not bad :)) btw ty

  14. #14
    Join our JOURNEY! MaskARRA is offline
    MemberRank
    Mar 2013 Join Date
    416Posts

    re: [Release] WZ_MD5_MOD for SQL Server x64 by xakumm

    Please help I have this error. but I already paste the WZ_MD5_MOD_x64.dll

    DBCC cannot free the DLL "WZ_MD5_MOD_x64.dll". The DLL is not loaded.
    DBCC execution completed. If DBCC printed error messages, contact your system administrator.
    Msg 17750, Level 16, State 0, Procedure XP_MD5_EncodeKeyVal, Line 1
    Could not load the DLL WZ_MD5_MOD_x64.dll, or one of the DLLs it references. Reason: 193(%1 is not a valid Win32 application.).

    Edit: by the way Im using 32bit
    Last edited by MaskARRA; 27-04-15 at 11:57 AM.

  15. #15
    Let's do this... navossoc is offline
    MemberRank
    Sep 2004 Join Date
    BrazilLocation
    305Posts

    re: [Release] WZ_MD5_MOD for SQL Server x64 by xakumm

    Quote Originally Posted by MaskARRA View Post
    Please help I have this error. but I already paste the WZ_MD5_MOD_x64.dll

    DBCC cannot free the DLL "WZ_MD5_MOD_x64.dll". The DLL is not loaded.
    DBCC execution completed. If DBCC printed error messages, contact your system administrator.
    Msg 17750, Level 16, State 0, Procedure XP_MD5_EncodeKeyVal, Line 1
    Could not load the DLL WZ_MD5_MOD_x64.dll, or one of the DLLs it references. Reason: 193(%1 is not a valid Win32 application.).

    Edit: by the way Im using 32bit
    If are you using a sql server 32 bits, why want you use this DLL?
    Just use the original one...

    []'s

  16. #16
    Join our JOURNEY! MaskARRA is offline
    MemberRank
    Mar 2013 Join Date
    416Posts

    re: [Release] WZ_MD5_MOD for SQL Server x64 by xakumm

    Problem Solved!

  17. #17
    Pyro Dude Sartigan is offline
    MemberRank
    Jan 2007 Join Date
    You Care?Location
    1,457Posts

    re: [Release] WZ_MD5_MOD for SQL Server x64 by xakumm

    You are Simply my Hero dude

  18. #18
    Proficient Member pichon.10 is offline
    MemberRank
    Jan 2008 Join Date
    180Posts

    re: [Release] WZ_MD5_MOD for SQL Server x64 by xakumm

    Mirror please the file cant access :/

  19. #19
    Enthusiast xakumm is offline
    MemberRank
    Nov 2010 Join Date
    29Posts

    re: [Release] WZ_MD5_MOD for SQL Server x64 by xakumm

    Quote Originally Posted by pichon.10 View Post
    Mirror please the file cant access :/
    Download WZ_MD5_MOD x64



Advertisement