Results 1 to 5 of 5
  1. #1
    iamhere
    iamhere is offline
    New member
    Join Date
    2011 Apr
    Posts
    4
    Thanks Thanks Given 
    0
    Thanks Thanks Received 
    2
    Thanked in
    1 Post
    Rep Power
    0

    How to write a tool auto space in audition + xtrap?

    I am writting a tool hack for audition vn, it's using xtrap 3361.
    I want to write a function to auto press space.
    Please help me.

    +I tried to SendMessage, PostMessage, SendNotifyMessage, keybd_event, SendInput, and using tool to unhook all function xtrap hook. All is zero... It can't auto space.
    +I tried to hook function DirectInput8Create, and xtrap block.
    +I tried send key using library inpout32.dll to send data direct to keyboard port. I sent data to port 0x60 ok, but send data to port 0x64 then xtrap block.
    +I tried to write a driver to make int 9h? I'm not good at write system driver, then after run tool, my computer blue screen.
    Last edited by iamhere; 2011-04-21 at 06:59 PM.

  2. #2
    Dwar
    Dwar is offline
    Veteran Dwar's Avatar
    Join Date
    2010 Mar
    Posts
    2,222
    Thanks Thanks Given 
    211
    Thanks Thanks Received 
    2,230
    Thanked in
    292 Posts
    Rep Power
    10
    Did you tried to use dll injection into the game before xtrap loading
    Please, post your questions on forum, not by PM or mail

    I spend my time, so please pay a little bit of your time to keep world in equilibrium

  3. #3
    iamhere
    iamhere is offline
    New member
    Join Date
    2011 Apr
    Posts
    4
    Thanks Thanks Given 
    0
    Thanks Thanks Received 
    2
    Thanked in
    1 Post
    Rep Power
    0
    I tried it, after dll was injected i used XueTr(xuetr.com) to detect functions that xtrap hook and unhook it.
    This is the list functions xtrap hook:
    SSDT:
    NtDeviceIoControlFile
    NtOpenProcess
    NtOpenSection
    NtProtectVirtualMemory
    NtQuerySystemInformation
    NtReadVirtualMemory
    NtSuspendThread
    NtTerminateProcess
    NtTerminateThread
    NtWriteFile
    NtWriteVirtualMemory

    ShadowSSDT:
    NtGdiGetPixel
    NtUserMessageCall
    NtUserPostMessage
    NtUserSendInput
    NtUserSetWindowPos
    NtUserSetWindowsHookEx
    NtUserTranslateMessage

    And xtrap hook Message Hook:
    WH_MOUSE_LL
    WH_KEYBOARD_LL

    But it not work.
    =========================================
    PostMessage with some character to chat in game (a..z, 0..9, enter, space), it work normal.
    PostMessage with some key to control game (space, f1, f2, left mouse click), it not work.

  4. #4
    Dwar
    Dwar is offline
    Veteran Dwar's Avatar
    Join Date
    2010 Mar
    Posts
    2,222
    Thanks Thanks Given 
    211
    Thanks Thanks Received 
    2,230
    Thanked in
    292 Posts
    Rep Power
    10
    Make named pipe client and server, use code injection/hook game functions with your dll. Why are you trying to use PostMessage?
    Please, post your questions on forum, not by PM or mail

    I spend my time, so please pay a little bit of your time to keep world in equilibrium

  5. #5
    iamhere
    iamhere is offline
    New member
    Join Date
    2011 Apr
    Posts
    4
    Thanks Thanks Given 
    0
    Thanks Thanks Received 
    2
    Thanked in
    1 Post
    Rep Power
    0
    Here is my project: test.exe, inject.exe, test.dll
    1. test.exe
    +If it not found process Audition.exe and inject.exe, it will run inject.exe
    +Use FileMapping to transfer data between test.exe and test.dll
    2. inject.exe
    +wait for process audition.exe run, and inject test.dll into audition.exe, and exit (prevent found inject.exe)
    3. inject.dll
    +offsets game, functions

    All function and offset in my dll are working very good.
    Now i want to write function can press space, or left button mouse click (fake keyboard/mouse) in test.dll.
    Exam, i call that function is PressSpace();
    I tried some way to do that (PostMessage, SendMessage, SendInput, HookDirectInput, Send data to keyboard buffer via inpout32.dll), but all don't work.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •