MuToolz in MD5 Encode

Results 1 to 20 of 20
  1. #1
    Member yanivman is offline
    MemberRank
    Oct 2005 Join Date
    kalimaLocation
    64Posts

    MuToolz in MD5 Encode

    MuToolz in MD5 Encode
    Full credit to John-D!!!!


    Requirements:
    Access to MSSQL server ( preferably with SA account )
    WZ_MD5_MOD.dll installed on the mssql Bin/Binn folder
    working Mutoolz
    STEP 1:

    Go to query analyser


    Quote:
    USE master;
    exec sp_addextendedproc 'XP_MD5_EncodeKeyVal', 'WZ_MD5_MOD.dll'


    Quote:
    use muonline;

    Quote:
    CREATE FUNCTION [dbo].[fn_md5] (@data TEXT, @data2 TEXT)
    RETURNS BINARY(16) AS
    BEGIN
    DECLARE @hash BINARY(16)
    EXEC master.dbo.XP_MD5_EncodeKeyVal @data, @data2, @hash OUTPUT
    RETURN @hash
    END

    Run the Queries in Sequence

    Then ur done with Query analyser.

    STEP 2:
    Modifying Mutoolz

    register.php
    find:

    Quote:
    '$POST[fname]', '$POST[pass1]','$POST[fname]'

    there should be two of them inside the file.

    Replace with:


    Quote:
    '$POST[fname]', [dbo].[fn_md5]('$POST[pass1]','$POST[fname]'),'$POST[fname]'


    Mutoolz.tpl.php

    find:

    Quote:
    and upper(memb__pwd) = upper(?) and

    two of them inside the file.. 1 is under admin_checklogin function and the other is in user_checklogin function

    change to or replace with:


    Quote:
    and memb__pwd = [dbo].[fn_md5](?,memb___id) and


    i think that is it.. lolz...
    there is another md5 encryption on the cookies and sessions.. completely different from the database ofcors.

    EDIT: i didnt test it .. cause im not running a 99.watever server... go test it urself


  2. #2
    Maybe a little explanation about what it does?

  3. #3
    Wolf, The Mu Tester =) Maurioski is offline
    MemberRank
    May 2005 Join Date
    far awayLocation
    482Posts
    thx for the info.. ^^

    thx John-D

  4. #4
    Member vladisls1 is offline
    MemberRank
    Nov 2005 Join Date
    BulgariaLocation
    50Posts
    what is this erro pls help here ...
    [done]

    Creating Configuration table...[done]

    Importing initial data...[done]

    Rebuilding mu_id ... [done]


    Fatal error: Call to a member function on a non-object in C:\xampp\htdocs\xampp\MuArchon\install\install.php on line 380

  5. #5
    Account Upgraded | Title Enabled! RifleMorre is offline
    MemberRank
    Aug 2004 Join Date
    CanadaLocation
    1,025Posts
    Very Very Nice :)

  6. #6
    Account Upgraded | Title Enabled! adubius is offline
    MemberRank
    Jan 2006 Join Date
    Portugal, LisbonLocation
    216Posts
    it gives me this error, i putted wz_md5.dll in sql\bin, can you help?

    Server: Msg 2714, Level 16, State 7, Procedure sp_addextendedproc, Line 26
    There is already an object named 'XP_MD5_EncodeKeyVal' in the database.

  7. #7
    Member warrior10 is offline
    MemberRank
    Sep 2005 Join Date
    insideLocation
    79Posts

    MUToolz Workz!!!

    guide update for MUToolz

    1. restore me_muonline database (attached) - [customized me_muonline db]
    2. edit mutoolz odbc - change mutoolz database from muonline to me_muonline
    3. open query analyzer and run the script

    USE Me_MuOnline
    GO

    if exists (select * from dbo.sysobjects where id = object_id(N'[dbo].[BLOCKING]') and OBJECTPROPERTY(id, N'IsUserTable') = 1)
    drop table [dbo].[BLOCKING]
    GO

    if exists (select * from dbo.sysobjects where id = object_id(N'[dbo].[BLOCKING_LOG]') and OBJECTPROPERTY(id, N'IsUserTable') = 1)
    drop table [dbo].[BLOCKING_LOG]
    GO

    if exists (select * from dbo.sysobjects where id = object_id(N'[dbo].[MEMB_DETA]') and OBJECTPROPERTY(id, N'IsUserTable') = 1)
    drop table [dbo].[MEMB_DETA]
    GO

    if exists (select * from dbo.sysobjects where id = object_id(N'[dbo].[MEMB_INFO]') and OBJECTPROPERTY(id, N'IsUserTable') = 1)
    drop table [dbo].[MEMB_INFO]
    GO

    if exists (select * from dbo.sysobjects where id = object_id(N'[dbo].[MEMB_STAT]') and OBJECTPROPERTY(id, N'IsUserTable') = 1)
    drop table [dbo].[MEMB_STAT]
    GO

    CREATE TABLE [dbo].[BLOCKING] (
    [block_guid] [int] IDENTITY (1, 1) NOT NULL ,
    [memb_guid] [int] NOT NULL ,
    [serv_guid] [int] NOT NULL ,
    [char_name] [varchar] (20) NULL ,
    [take_code] [char] (1) NOT NULL ,
    [take_cont] [varchar] (1000) NOT NULL ,
    [memb_cont] [varchar] (2000) NULL ,
    [appl_days] [char] (8) NOT NULL ,
    [rels_days] [char] (8) NOT NULL ,
    [ctl1_code] [char] (1) NOT NULL
    ) ON [PRIMARY]
    GO

    CREATE TABLE [dbo].[BLOCKING_LOG] (
    [appl_days] [datetime] NOT NULL ,
    [admin_guid] [int] NOT NULL ,
    [block_guid] [int] NOT NULL ,
    [dist_code] [char] (2) NOT NULL ,
    [admin_name] [varchar] (50) NOT NULL
    ) ON [PRIMARY]
    GO

    CREATE TABLE [dbo].[MEMB_DETA] (
    [memb_guid] [int] NOT NULL ,
    [desc_text] [varchar] (5000) NULL
    ) ON [PRIMARY]
    GO

    CREATE TABLE [dbo].[MEMB_INFO] (
    [memb_guid] [int] IDENTITY (1, 1) NOT NULL ,
    [memb___id] [varchar] (10) NOT NULL ,
    [memb__pwd] [varbinary] (16) NOT NULL ,
    [memb_name] [varchar] (10) NOT NULL ,
    [sno__numb] [char] (13) NOT NULL ,
    [post_code] [char] (6) NULL ,
    [addr_info] [varchar] (50) NULL ,
    [addr_deta] [varchar] (50) NULL ,
    [tel__numb] [varchar] (20) NULL ,
    [phon_numb] [varchar] (15) NULL ,
    [mail_addr] [varchar] (50) NULL ,
    [fpas_ques] [varchar] (50) NULL ,
    [fpas_answ] [varchar] (50) NULL ,
    [job__code] [char] (2) NULL ,
    [appl_days] [datetime] NULL ,
    [modi_days] [datetime] NULL ,
    [out__days] [datetime] NULL ,
    [true_days] [datetime] NULL ,
    [mail_chek] [char] (1) NULL ,
    [bloc_code] [char] (1) NOT NULL ,
    [ctl1_code] [char] (1) NOT NULL
    ) ON [PRIMARY]
    GO

    CREATE TABLE [dbo].[MEMB_STAT] (
    [memb___id] [varchar] (10) NOT NULL ,
    [ConnectStat] [tinyint] NULL ,
    [ServerName] [varchar] (10) NULL ,
    [IP] [varchar] (15) NULL ,
    [ConnectTM] [smalldatetime] NULL ,
    [DisConnectTM] [smalldatetime] NULL
    ) ON [PRIMARY]
    GO

    ALTER TABLE [dbo].[BLOCKING] WITH NOCHECK ADD
    CONSTRAINT [PK_BLOCKING] PRIMARY KEY CLUSTERED
    (
    [block_guid]
    ) ON [PRIMARY]
    GO

    ALTER TABLE [dbo].[BLOCKING_LOG] WITH NOCHECK ADD
    CONSTRAINT [PK_BLOCKING_LOG] PRIMARY KEY CLUSTERED
    (
    [appl_days] DESC ,
    [admin_guid] DESC ,
    [dist_code] DESC
    ) ON [PRIMARY]
    GO

    ALTER TABLE [dbo].[MEMB_STAT] WITH NOCHECK ADD
    CONSTRAINT [PK_MEMB_STAT] PRIMARY KEY CLUSTERED
    (
    [memb___id]
    ) ON [PRIMARY]
    GO

    CREATE CLUSTERED INDEX [IX_MEMB_INFO_1] ON [dbo].[MEMB_INFO]([memb___id] DESC ) WITH FILLFACTOR = 70 ON [PRIMARY]
    GO

    ALTER TABLE [dbo].[BLOCKING] ADD
    CONSTRAINT [DF_BLOCKING_ctl1_code] DEFAULT (5) FOR [ctl1_code]
    GO

    CREATE INDEX [IX_BLOCKING] ON [dbo].[BLOCKING]([char_name] DESC , [take_code] DESC , [appl_days] DESC , [rels_days] DESC ) ON [PRIMARY]
    GO

    ALTER TABLE [dbo].[MEMB_INFO] ADD
    CONSTRAINT [DF_MEMB_INFO_mail_chek] DEFAULT (0) FOR [mail_chek],
    CONSTRAINT [PK_MEMB_INFO_1] PRIMARY KEY NONCLUSTERED
    (
    [memb_guid] DESC
    ) ON [PRIMARY]
    GO

    CREATE INDEX [IX_MEMB_DETAIL] ON [dbo].[MEMB_INFO]([sno__numb] DESC , [memb_name] DESC ) ON [PRIMARY]
    GO

    ALTER TABLE [dbo].[MEMB_DETA] ADD
    CONSTRAINT [FK_MEMB_DETA_MEMB_INFO] FOREIGN KEY
    (
    [memb_guid]
    ) REFERENCES [dbo].[MEMB_INFO] (
    [memb_guid]
    )
    GO


    if exists (select * from dbo.sysobjects where id = object_id(N'[dbo].[USP_Block_CanCel]') and OBJECTPROPERTY(id, N'IsProcedure') = 1)
    drop procedure [dbo].[USP_Block_CanCel]
    GO

    if exists (select * from dbo.sysobjects where id = object_id(N'[dbo].[WZ_CONNECT_MEMB]') and OBJECTPROPERTY(id, N'IsProcedure') = 1)
    drop procedure [dbo].[WZ_CONNECT_MEMB]
    GO

    if exists (select * from dbo.sysobjects where id = object_id(N'[dbo].[WZ_DISCONNECT_MEMB]') and OBJECTPROPERTY(id, N'IsProcedure') = 1)
    drop procedure [dbo].[WZ_DISCONNECT_MEMB]
    GO

    SET QUOTED_IDENTIFIER ON
    GO
    SET ANSI_NULLS ON
    GO

    --=======================================================================--
    --
    Attached Files Attached Files

  8. #8
    Member skurbold is offline
    MemberRank
    Sep 2004 Join Date
    BrasilLocation
    98Posts
    Quote Originally Posted by yanivman
    MuToolz in MD5 Encode
    Full credit to John-D!!!!


    Requirements:
    Access to MSSQL server ( preferably with SA account )
    WZ_MD5_MOD.dll installed on the mssql Bin/Binn folder
    working Mutoolz
    STEP 1:

    Go to query analyser


    Quote:
    USE master;
    exec sp_addextendedproc 'XP_MD5_EncodeKeyVal', 'WZ_MD5_MOD.dll'


    Quote:
    use muonline;

    Quote:
    CREATE FUNCTION [dbo].[fn_md5] (@data TEXT, @data2 TEXT)
    RETURNS BINARY(16) AS
    BEGIN
    DECLARE @hash BINARY(16)
    EXEC master.dbo.XP_MD5_EncodeKeyVal @data, @data2, @hash OUTPUT
    RETURN @hash
    END

    Run the Queries in Sequence

    Then ur done with Query analyser.

    STEP 2:
    Modifying Mutoolz

    register.php
    find:

    Quote:
    '$POST[fname]', '$POST[pass1]','$POST[fname]'

    there should be two of them inside the file.

    Replace with:


    Quote:
    '$POST[fname]', [dbo].[fn_md5]('$POST[pass1]','$POST[fname]'),'$POST[fname]'


    Mutoolz.tpl.php

    find:

    Quote:
    and upper(memb__pwd) = upper(?) and

    two of them inside the file.. 1 is under admin_checklogin function and the other is in user_checklogin function

    change to or replace with:


    Quote:
    and memb__pwd = [dbo].[fn_md5](?,memb___id) and


    i think that is it.. lolz...
    there is another md5 encryption on the cookies and sessions.. completely different from the database ofcors.

    EDIT: i didnt test it .. cause im not running a 99.watever server... go test it urself

    ERROR:


    Fatal error: Call to a member function fetchRow() on a non-object in C:\Arquivos de programas\xampp\htdocs\install\install.php on line 380

  9. #9
    Enthusiast Frost1n is offline
    MemberRank
    May 2005 Join Date
    BrazilLocation
    35Posts
    It

  10. #10
    i haz skillz Xeron is offline
    MemberRank
    Jul 2005 Join Date
    United StatesLocation
    384Posts
    wtf that didnt work for me

  11. #11
    i haz skillz Xeron is offline
    MemberRank
    Jul 2005 Join Date
    United StatesLocation
    384Posts
    doesn't work for me

  12. #12
    i haz skillz Xeron is offline
    MemberRank
    Jul 2005 Join Date
    United StatesLocation
    384Posts
    btw use "[Quote]" without the quotes

  13. #13
    whos your daddeh? Nocturnal is offline
    MemberRank
    Jan 2005 Join Date
    InfinityLocation
    695Posts
    ohh thats cute

  14. #14
    Mu Bulgaria Server Owner parsy is offline
    MemberRank
    Jan 2006 Join Date
    BulgariaLocation
    268Posts
    What to do whi this ERROR:
    Fatal error: Call to a member function fetchrow() on a non-object in C:\root\_libs\header.php on line 53

  15. #15
    Member Musee is offline
    MemberRank
    Jan 2006 Join Date
    philippinesLocation
    69Posts
    can someone test this please

  16. #16
    Member Musee is offline
    MemberRank
    Jan 2006 Join Date
    philippinesLocation
    69Posts
    can you give me the fix one so i can use it

  17. #17
    iNewLegend , Leo123 zolamu is offline
    MemberRank
    Apr 2006 Join Date
    Холон, IsrLocation
    737Posts
    this is work

  18. #18
    Account Upgraded | Title Enabled! HELL_IN_HEAVEN is offline
    MemberRank
    Apr 2006 Join Date
    BORACAY, PHILIPPINESLocation
    530Posts
    Fatal error: Call to a member function on a non-object in c:\appserv\www\_libs\server.php on line 22


    got this error..

  19. #19
    Member KEMBL is offline
    MemberRank
    May 2004 Join Date
    RussiaLocation
    65Posts
    All seems, that we have got more great other problem with XP_MD5_EncodeKeyVal self on several md5 version MU servers: http://forum.ragezone.com/post1459907.html

  20. #20
    Member -DeniedKiD- is offline
    MemberRank
    Aug 2006 Join Date
    RomaniaLocation
    73Posts
    I'm testing right now the files.



Advertisement