" CTRL " Attacking freezes my pointer?

Page 2 of 4 FirstFirst 1234 LastLast
Results 16 to 30 of 47
  1. #16
    Let's do this... navossoc is offline
    MemberRank
    Sep 2004 Join Date
    BrazilLocation
    305Posts

    Re: " CTRL " Attacking freezes my pointer?

    Quote Originally Posted by AdminSS View Post
    Get a Better Computer dude, You must be using some sucky Laptop/CPU

    I ran 2 Main.exe and tried 3 too, Press CRTL and Pked, it works with freezing.
    Don't just press, HOLD it.

    Try to move some icon on your desktop (like copy a folder with CTRL key)

    Worst bug ever...
    No idea why happens (thinking like a developer)

    []'s

  2. #17
    Novice Kingd0m is offline
    MemberRank
    May 2013 Join Date
    2Posts

    Re: " CTRL " Attacking freezes my pointer?

    Hi all, i fix this bug with comodo firewall who also have a sandbox policy (Defense+) for running certain aplications in a sandboxed process.

    The bug happens because main.exe tries to install global hooks, and multiple hooks cause the bug when you press ctrl... (it's a larger explanation but it doesn't matter at this time)

    if you sandbox every instance of every main.exe the bug disapear, as simple as that.

    you have to install & enable the Defense+ feature, end the first time you execute the main.exe, Defense+ will prompt for running main.exe in a sandbox or not, just press sandbox button, later will prompt for the global hooks (2 times usually, 2 different hooks), just select dont allow the global hook to be loaded, an mark the "remember this answer" (or something like that), and that's it.

    the next time only will ask for running or not in a sandbox.

    cheers from argentina men

    hope this will be usefull for u

    Oh im running win7 64b, amd960 8gb ddr31600 gpu2gbddr5 season6 clients with mu helper runing in at 7 windows/instances of main.exe opened at the same time, with no problem at all, i can press ctrl an kill an press any otrer key normally, works just fine.

  3. #18
    Member wall57 is offline
    MemberRank
    Jun 2012 Join Date
    65Posts

    Re: " CTRL " Attacking freezes my pointer?

    Quote Originally Posted by Kingd0m View Post
    ...
    thx for bumping a 3 month old topic.

    *close request

  4. #19
    CAARL, THAT KILLS PEOPLE! SmallHabit is offline
    MemberRank
    Oct 2010 Join Date
    LatviaLocation
    231Posts

    Re: " CTRL " Attacking freezes my pointer?

    Hi all, i fix this bug with comodo firewall who also have a sandbox policy (Defense+) for running certain aplications in a sandboxed process.

    The bug happens because main.exe tries to install global hooks, and multiple hooks cause the bug when you press ctrl... (it's a larger explanation but it doesn't matter at this time)

    if you sandbox every instance of every main.exe the bug disapear, as simple as that.

    you have to install & enable the Defense+ feature, end the first time you execute the main.exe, Defense+ will prompt for running main.exe in a sandbox or not, just press sandbox button, later will prompt for the global hooks (2 times usually, 2 different hooks), just select dont allow the global hook to be loaded, an mark the "remember this answer" (or something like that), and that's it.

    the next time only will ask for running or not in a sandbox.

    cheers from argentina men

    hope this will be usefull for u

    Oh im running win7 64b, amd960 8gb ddr31600 gpu2gbddr5 season6 clients with mu helper runing in at 7 windows/instances of main.exe opened at the same time, with no problem at all, i can press ctrl an kill an press any otrer key normally, works just fine.
    That's it, removed SetWindowsHook function from main, and whoa! when pressing CTRL client is not freezing anymore ^_^

  5. #20
    Novice Kingd0m is offline
    MemberRank
    May 2013 Join Date
    2Posts

    Re: " CTRL " Attacking freezes my pointer?

    Quote Originally Posted by SmallHabit View Post
    That's it, removed SetWindowsHook function from main, and whoa! when pressing CTRL client is not freezing anymore ^_^
    where did you do that? how did you do it?

    tnx

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

    Re: " CTRL " Attacking freezes my pointer?

    1.03K

    SetByte(0x0052D49B,0x02); and whoa

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

    Re: " CTRL " Attacking freezes my pointer?

    Quote Originally Posted by Mulegend View Post
    1.03K

    SetByte(0x0052D49B,0x02); and whoa
    Attach the file or post the memory region.

    I did different...

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

    Re: " CTRL " Attacking freezes my pointer?

    Open Ollydbg
    Load Main.exe

    Press Ctrl + N

    Search SetWindowsHookExA
    follow the second call (NOT JMP, JUST CALL)

    Code:
    References in main_104:.text to USER32.SetWindowsHookExA
    Address    Disassembly                               Comment
    CALL DWORD PTR DS:[<&USER32.SetWindowsHo  USER32.SetWindowsHookExA
    CALL DWORD PTR DS:[<&USER32.SetWindowsHo  USER32.SetWindowsHookExA
    JMP DWORD PTR DS:[<&USER32.SetWindowsHoo  USER32.SetWindowsHookExA
    when u see some like this
    Code:
    PUSH 0D
    CALL DWORD PTR DS:[<&USER32.SetWindowsHo>; USER32.SetWindowsHookExA
    MOV EDX,DWORD PTR SS:[EBP-4]
    MOV DWORD PTR DS:[EDX],EAX
    Changue 0x0D to 0x02

    0x0D = 13 [WH_KEYBOARD_LL (13)]
    0x02 = 2 [WH_KEYBOARD (2)]

    More info SetWindowsHookEx function (Windows)

    1.03K JPN:
    004BD479

    1.03Y JPN:
    004C7F49

    1.04 JPN S6EP3:
    0052D49B

    1.04D GMO S6EP3:
    0052101B
    Last edited by Mulegend; 08-05-13 at 07:33 PM.

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

    Re: " CTRL " Attacking freezes my pointer?

    Quote Originally Posted by Mulegend View Post
    Open Ollydbg
    Load Main.exe

    Press Ctrl + N

    Search SetWindowsHookExA
    follow the second call (NOT JMP, JUST CALL)

    Code:
    References in main_104:.text to USER32.SetWindowsHookExA
    Address    Disassembly                               Comment
    CALL DWORD PTR DS:[<&USER32.SetWindowsHo  USER32.SetWindowsHookExA
    CALL DWORD PTR DS:[<&USER32.SetWindowsHo  USER32.SetWindowsHookExA
    JMP DWORD PTR DS:[<&USER32.SetWindowsHoo  USER32.SetWindowsHookExA
    when u see some like this
    Code:
    PUSH 0D
    CALL DWORD PTR DS:[<&USER32.SetWindowsHo>; USER32.SetWindowsHookExA
    MOV EDX,DWORD PTR SS:[EBP-4]
    MOV DWORD PTR DS:[EDX],EAX
    Changue 0x0D to 0x02

    0x0D = 13 [WH_KEYBOARD_LL (13)]
    0x02 = 2 [WH_KEYBOARD (2)]

    More info SetWindowsHookEx function (Windows)

    1.03K JPN:
    004BD479

    1.03Y JPN:
    004C7F49

    1.04 JPN S6EP3:
    0052D49B

    1.04D GMO S6EP3:
    0052101B
    Bad idea... I wouldn't if I was you.

    Both functions has the same signature, but the lParam has different meaning.

    lParam is a pointer to a structure on LowLevelKeyboardProc (type = 13)
    lParam is just a map of bit flags on KeyboardProc (type = 2).

    So, depending on how the the callback process this information you can crash your main.

    GG.

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

    Re: " CTRL " Attacking freezes my pointer?

    ok, ok ok ok ok ok

    Test it and told me about your crash


    GG

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

    Re: " CTRL " Attacking freezes my pointer?

    Quote Originally Posted by Mulegend View Post
    ok, ok ok ok ok ok

    Test it and told me about your crash


    GG
    Ok, you win, you are a genius.

    Code:
    0046D29D  |.  6A 00                      push 0                                                  ; /ThreadID = 0
    0046D29F  |.  8B4D 08                    mov ecx,dword ptr ss:[ebp+8]                            ; |
    0046D2A2  |.  51                         push ecx                                                ; |hModule
    0046D2A3  |.  68 85D34600                push 0046D385                                           ; |Hookproc = main.0046D385
    0046D2A8  |.  6A 0D                      push 0D                                                 ; |HookType = 13.
    0046D2AA  |.  FF15 60347000              call dword ptr ds:[<&user32.SetWindowsHookExA>]         ; \SetWindowsHookExA
    Code:
    0046D385  /.  55                         push ebp
    ...
    0046D3AB  |>  8B4D 10                    mov ecx,dword ptr ss:[ebp+10]; lParam (if you didn't know)
    0046D3AE  |.  894D FC                    mov dword ptr ss:[ebp-4],ecx
    0046D3B1  |.  8B55 FC                    mov edx,dword ptr ss:[ebp-4]
    0046D3B4  |.  8B02                       mov eax,dword ptr ds:[edx] ; ops, look here, a pointer!
    ...
    Let's look at the MSDN again, shall we?
    KeyboardProc callback function (Windows)

    lParam
    The repeat count, scan code, extended-key flag, context code, previous key-state flag, and transition-state flag. For more information about the lParam parameter, see Keystroke Message Flags. The following table describes the bits of this value.
    So it's just a number! That will be a treated as a memory address and if you are lucky, maybe, you can read that address, otherwise, a lovely exception will be thrown and your main will crash.

    Simple as that.

  12. #27
    Account Upgraded | Title Enabled! juajua123 is offline
    MemberRank
    Aug 2010 Join Date
    203Posts

    Re: " CTRL " Attacking freezes my pointer?

    I did what you said there i changed 0x0D for 0x02 but its still freezing, this is the result (s2 main)
    Attached Thumbnails Attached Thumbnails push02.jpg  

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

    Re: " CTRL " Attacking freezes my pointer?

    In this hook, just call LL Hook, but works as a simple hook...

    Do you understand ? You need read (main code), before open your mouth
    i never told it is not a pointer

    Code:
    LRESULT __userpurge sub_521120<eax>(int a1<ebx>, int a2<edi>, int nCode, WPARAM wParam, LPARAM lParam)
    {
      void *v6; // eax@13
      int v7; // eax@13
      unsigned int v8; // [sp+0h] [bp-Ch]@4
    
      if ( !nCode && wParam >= 0x100 && wParam <= 0x101 )
      {
        v8 = *(_DWORD *)lParam;
        if ( *(_DWORD *)lParam == 27 )
        {
          if ( sub_790F40(a1, a2, 17) == 1 )
            return 1;
        }
        else
        {
          if ( v8 > 0x5A && v8 <= 0x5C && !*(_DWORD *)&dword_E60974 )
            return 1;
        }
      }
      v6 = sub_5210B0(a1, a2);
      v7 = sub_5210A0(v6);
      return CallNextHookEx((HHOOK)v7, nCode, wParam, lParam);
    }
    Last edited by Mulegend; 11-05-13 at 06:26 PM.

  14. #29
    Proficient Member lokoes321 is offline
    MemberRank
    Nov 2007 Join Date
    174Posts

    Re: " CTRL " Attacking freezes my pointer?

    Quote Originally Posted by Mulegend View Post
    In this hook, just call LL Hook, but works as a simple hook...

    Do you understand ? You need read (main code), before open your mouth
    i never told it is not a pointer

    Code:
    LRESULT __userpurge sub_521120<eax>(int a1<ebx>, int a2<edi>, int nCode, WPARAM wParam, LPARAM lParam)
    {
      void *v6; // eax@13
      int v7; // eax@13
      unsigned int v8; // [sp+0h] [bp-Ch]@4
    
      if ( !nCode && wParam >= 0x100 && wParam <= 0x101 )
      {
        v8 = *(_DWORD *)lParam;
        if ( *(_DWORD *)lParam == 27 )
        {
          if ( sub_790F40(a1, a2, 17) == 1 )
            return 1;
        }
        else
        {
          if ( v8 > 0x5A && v8 <= 0x5C && !*(_DWORD *)&dword_E60974 )
            return 1;
        }
      }
      v6 = sub_5210B0(a1, a2);
      v7 = sub_5210A0(v6);
      return CallNextHookEx((HHOOK)v7, nCode, wParam, lParam);
    }
    So, this means that i need to make an external hook and do the thing you posted? or just do the thing that you posted?

  15. #30
    O_o psychedelic is offline
    MemberRank
    Nov 2013 Join Date
    LatviaLocation
    270Posts

    Re: " CTRL " Attacking freezes my pointer?

    Who can help me? i can't find this SetWindowsHook in main.exe =(



Page 2 of 4 FirstFirst 1234 LastLast

Advertisement