/admin_ban with ID ban (July 21 2008 MatchServer)

Page 1 of 3 123 LastLast
Results 1 to 15 of 33
  1. #1
    Member GUNZ2830 is offline
    MemberRank
    Oct 2007 Join Date
    JapanLocation
    67Posts

    /admin_ban with ID ban (July 21 2008 MatchServer)

    Inject to your July 21 2008 MatchServer.
    You can ban ID with admin_ban.
    It is not tested several times.
    Attached Files Attached Files


  2. #2
    人◕ ‿‿ ◕人 Forean is offline
    MemberRank
    Jul 2008 Join Date
    1,183Posts

    Re: /admin_ban with ID ban (July 21 2008 MatchServer)

    its not tested several times? So its tested sorta but not tested a lot?


    Btw, Thanks.

  3. #3
    Account Upgraded | Title Enabled! wtfhacker is offline
    MemberRank
    Dec 2009 Join Date
    328Posts

    Re: /admin_ban with ID ban (July 21 2008 MatchServer)

    Thanks, I'm editing it for 2007 one.
    Btw thanks for the functions DB EXCUTE, and etc.

    And if you are using a translator come on software called "Messenger/ICQ"
    I have an auto translator for the "Messenger" Software.

    Download for 2007:
    HERE:
    Attached Files Attached Files
    Last edited by wtfhacker; 12-02-10 at 10:13 AM.

  4. #4
    Account Upgraded | Title Enabled! randy1234 is offline
    MemberRank
    Mar 2009 Join Date
    SingaporeLocation
    1,196Posts

    Re: /admin_ban with ID ban (July 21 2008 MatchServer)

    then what about the DC?

    Cant dc?

  5. #5
    Account Upgraded | Title Enabled! wtfhacker is offline
    MemberRank
    Dec 2009 Join Date
    328Posts

    Re: /admin_ban with ID ban (July 21 2008 MatchServer)

    Quote Originally Posted by randy1234 View Post
    then what about the DC?

    Cant dc?
    You can but it will ban him.
    By the way, there is no reason for a disconnect a person, so I think this DLL is a good one.

  6. #6
    Member GUNZ2830 is offline
    MemberRank
    Oct 2007 Join Date
    JapanLocation
    67Posts

    Re: /admin_ban with ID ban (July 21 2008 MatchServer)

    Sorry for everyone. My English was bad.
    Disconnecting and ID ban.

  7. #7

    Re: /admin_ban with ID ban (July 21 2008 MatchServer)

    Quote Originally Posted by wtfhacker View Post
    You can but it will ban him.
    By the way, there is no reason for a disconnect a person, so I think this DLL is a good one.
    There is a reason.

  8. #8
    Account Upgraded | Title Enabled! wtfhacker is offline
    MemberRank
    Dec 2009 Join Date
    328Posts

    Re: /admin_ban with ID ban (July 21 2008 MatchServer)

    Quote Originally Posted by Linear88 View Post
    There is a reason.
    Everyone and his thoughts, I think you don't need to disconnect a guy, you can just kick him away from the room, you true also.

  9. #9
    Account Upgraded | Title Enabled! randy1234 is offline
    MemberRank
    Mar 2009 Join Date
    SingaporeLocation
    1,196Posts

    Re: /admin_ban with ID ban (July 21 2008 MatchServer)

    can u guys add a dc plox?

    please

    for rev 5 files[COLOR="Silver"]

    and what do u mean Disconncting and ID Ban?
    Last edited by randy1234; 12-02-10 at 11:02 AM.

  10. #10
      Phoenix is offline
    ModeratorRank
    Mar 2009 Join Date
    6,890Posts
    Quote Originally Posted by randy1234 View Post
    can u guys add a dc plox?

    please

    for rev 5 files[COLOR="Silver"]

    and what do u mean Disconncting and ID Ban?
    It's self explanatory. It disconnects the player and ban's his account.
    Posted via Mobile Device

  11. #11
    Account Upgraded | Title Enabled! randy1234 is offline
    MemberRank
    Mar 2009 Join Date
    SingaporeLocation
    1,196Posts

    Re: /admin_ban with ID ban (July 21 2008 MatchServer)

    okay so now can anyone make a dc and a ban command

    PLOX

    I am begging u

  12. #12

    Re: /admin_ban with ID ban (July 21 2008 MatchServer)

    Quote Originally Posted by randy1234 View Post
    okay so now can anyone make a dc and a ban command

    PLOX

    I am begging u
    /admin_ban does both for you.

  13. #13
    Account Upgraded | Title Enabled! randy1234 is offline
    MemberRank
    Mar 2009 Join Date
    SingaporeLocation
    1,196Posts

    Re: /admin_ban with ID ban (July 21 2008 MatchServer)

    i mean dc command

    no ban then dc

  14. #14
      Phoenix is offline
    ModeratorRank
    Mar 2009 Join Date
    6,890Posts
    Quote Originally Posted by Linear88 View Post
    /admin_ban does both for you.
    I think he wants a separate command for ban xD.
    Posted via Mobile Device

  15. #15
    Account Upgraded | Title Enabled! Guy is offline
    MemberRank
    Apr 2009 Join Date
    919Posts

    Re: /admin_ban with ID ban (July 21 2008 MatchServer)

    Code:
    asm_eax = 0, asm_ecx = 0, asm_edx = 0, asm_ebx = 0, asm_esp = 0, asm_ebp = 0, asm_esi = 0, asm_edi = 0;
    You don't need to store registers in memory locations, you can simply use the stack, and use the pushad/popad instructions.

    Code:
    char DBCommand[128] = "UPDATE Account SET UGradeID=253 WHERE AID=%d", 
    *DBCommandUse = "UPDATE Account SET UGradeID=253 WHERE AID=0";
    Then later..

    Code:
    sprintf_s(DBCommand, "UPDATE Account SET UGradeID=253 WHERE AID=%d", AID);
    That's redundant; also, a static buffer size isn't good, even if you're using the safe sprintf function to check it in this case. You could simply allow an AID of a large size, so it's something more along the lines of:

    CHAR DBCommand[] = "UPDATE Account SET UGradeID=253 WHERE AID=1234567890";

    That will support an AID up to 10 bytes; from there, just check if the AID string exceeds 10 characters before using the string, in the future.

    You don't need to detour in memory, also, like you're doing here:

    Code:
    			memset(Buffer,0x90,10);
    				Buffer[0] = 0xE9;
    				Buffer[1] = bHook[0];
    				Buffer[2] = bHook[1];
    				Buffer[3] = bHook[2];
    				Buffer[4] = bHook[3];
    Rather, write a tool to automatically detour matchserver on disk, attempting to match a byte signature for where your hook needs to be.

    Then, simply add the DLL to the IAT, and have the detour be on an exported function of the DLL.

    Or, an even better method for something this small - use a codecave to embed everything in. You can add a new segment with space for strings and other data for future modifications; this would just be one of many.

    But, that's just my opinion.

    Code:
    Hook = Hook - Function - 5;
    This can be made more readable, and make more sense to reading devs by using, say, a separate function:

    Code:
    uintptr_t FORCEINLINE JMP(uintptr_t hook, uintptr_t function)
    {
    	return (hook - function - sizeof(uintptr_t) - 1);
    }
    Last edited by Guy; 12-02-10 at 02:31 PM.



Page 1 of 3 123 LastLast

Advertisement