Thread: CA Hook[C#]

Page 2 of 2 FirstFirst 12
Results 16 to 20 of 20
  1. #16
    Sneaks's Avatar
    Join Date
    Nov 2008
    Gender
    male
    Posts
    73
    Reputation
    10
    Thanks
    12
    Alright. What does he know that I dont? I know the Definition of a hook? I built the trainer that he bases all his hacking programs on?

    And FMLoon, fuck off. Your an insolent noob who just Copies and paste. Fuckin moron. I bet FindWindow and Postmessage is all you know how to do. I even bet you use timers.


    And him know more than me? Thats the biggest compliment he'll ever get.
    Last edited by Sneaks; 12-13-2009 at 07:55 PM.

  2. #17
    zmansquared's Avatar
    Join Date
    Oct 2008
    Gender
    male
    Location
    Kickin it at Microsoft
    Posts
    2,088
    Reputation
    36
    Thanks
    221
    My Mood
    Cheerful
    So banned, FMLoon is awesome and helps people. Enough said
    Need Help With Coding or Something??? MSN me
    zmansquared@hotmail.com


    I am the one and only Microsoft Fag!!!

    Quote:
    Originally Posted by Arhk
    All games should be hacked, if we don't do it someone else will. Hackers force the progress, of better programming methods.
    ~


    Take this Pic everyone!



    next-

  3. The Following User Says Thank You to zmansquared For This Useful Post:

    FMLoon (12-14-2009)

  4. #18
    FMLoon's Avatar
    Join Date
    Aug 2009
    Gender
    male
    Posts
    41
    Reputation
    10
    Thanks
    16
    My Mood
    Amused
    Quote Originally Posted by Sneaks View Post
    Alright. What does he know that I dont? I know the Definition of a hook? I built the trainer that he bases all his hacking programs on?

    And FMLoon, fuck off. Your an insolent noob who just Copies and paste. Fuckin moron. I bet FindWindow and Postmessage is all you know how to do. I even bet you use timers.


    And him know more than me? Thats the biggest compliment he'll ever get.

    FUCK OUT, that code I coded myself thank you very fucking much. I may only code c# but i know enough and can do tons of fucking things with it. This is technically a hook as it "hooks" the process to a window. Sorry i wasnt fucking politically correct. NOW BACK THE FUCK OFF and go back to waitbaby with all the other fucking cunts that u assosiate your fucking self with.
    Most recent:
    SOTW Entry:
    WingsOfLife is EWProd. is FMLoon

  5. #19
    Sneaks's Avatar
    Join Date
    Nov 2008
    Gender
    male
    Posts
    73
    Reputation
    10
    Thanks
    12
    A hook is Intercepting the API and make it follow your own line of code.

    NOT ATTACH TO A FUCKIN PROCESS. Your nothing compared to me.

  6. #20
    myeviltacos's Avatar
    Join Date
    Dec 2009
    Gender
    male
    Posts
    11
    Reputation
    10
    Thanks
    0
    Code:
    IntPtr hWnd = FindWindow(null,"*name*");
    That shouldn't compile because you can't use any functions in that space. But since it's unmanaged, it'll probably work. And it's a bad idea to search for window handles using FindWindow, period. use
    Code:
    Process. ... .MainWindowHandle
    Code:
    FindWindow(null, "*name*");
    That won't do anything since the function only does read operations.

    You might want to consider this. It's an example of posting a keydown message:
    Code:
    //MapVirtualKey
    [DllImport("user32.dll")]
    public static extern int MapVirtualKey(int uCode, uint uMapType);
    private void Form1_Load(object sender, EventArgs e)
    {
        PostMessage(hWnd, (uint)WM_KEYDOWN, (int)Keys.W, MapVirtualKey((int)Keys.W, 0) << 16);
    }
    Obviously, it sends the W key to the window with the specified handle.

    The entire thing (revised):
    Code:
    using System;
    using System.Collections.Generic;
    using System.Linq;
    using System.Text;
    using System.Runtime.InteropServices;
    using System.Windows.Forms;
    using System.Diagnostics;
    
    namespace NAMESPACE
    {
        public partial class Form1 : Form
        {
            //PostMessage
            [return: MarshalAs(UnmanagedType.Bool)]
            [DllImport("user32.dll", SetLastError = true)]
            static extern bool PostMessage(IntPtr hWnd, uint Msg, int wParam, int lParam);
    
            //MapVirtualKey
            [DllImport("user32.dll")]
            public static extern int MapVirtualKey(int uCode, uint uMapType);
    
            IntPtr hWnd = Process.GetProcessesByName("Firefox")[0].MainWindowHandle;
    
            const int WM_KEYDOWN = 0x100;
    
            public Form1()
            {
                InitializeComponent();
            }
    
            private void Form1_Load(object sender, EventArgs e)
            {
                PostMessage(hWnd, (uint)WM_KEYDOWN, (int)Keys.W, MapVirtualKey((int)Keys.W, 0) << 16);
            }
    
        }
    }
    Last edited by myeviltacos; 12-17-2009 at 05:36 PM.

Page 2 of 2 FirstFirst 12

Similar Threads

  1. WR D3D Hook - =o - 03/22/07
    By Dave84311 in forum Hack/Release News
    Replies: 14
    Last Post: 10-06-2007, 10:59 AM
  2. tut How to hook tut 6
    By llvengancell in forum WarRock - International Hacks
    Replies: 1
    Last Post: 06-26-2007, 04:24 PM
  3. D3D hooking tutorial 5 i think
    By llvengancell in forum WarRock - International Hacks
    Replies: 7
    Last Post: 06-26-2007, 04:09 PM
  4. How can i hook the punkbuster?
    By TheRedEye in forum WarRock - International Hacks
    Replies: 5
    Last Post: 05-27-2007, 01:34 PM
  5. New Hacks Announced & Warrock DX Hook Update
    By Dave84311 in forum Hack/Release News
    Replies: 17
    Last Post: 03-02-2007, 04:54 PM