Thread: CS GO hack help

Results 1 to 7 of 7
  1. #1
    qman2006's Avatar
    Join Date
    Jun 2014
    Gender
    male
    Posts
    14
    Reputation
    10
    Thanks
    0

    CS GO hack help

    Im pretty good with C# but never did any c++. This code calls the Kernel32.dll to read memory from CS:GO. My question is, how would I identify if my crosshair is on a enemy or not?
    Code:
    using System;
    using System.Collections.Generic;
    using System.ComponentModel;
    using System.Data;
    using System.Drawing;
    using System.Linq;
    using System.Text;
    using System.Threading.Tasks;
    using System.Windows.Forms;
    using System.Diagnostics;
    using System.Runtime.InteropServices;
    
    namespace test
    {
        public partial class Form1 : Form
        {
            public Form1()
            {
                InitializeComponent();
            }
    
            const int PROCESS_WM_READ = 0x0010;
    
            [DllImport("kernel32.dll")]
            public static extern IntPtr OpenProcess(int dwDesiredAccess, bool bInheritHandle, int dwProcessId);
    
            [DllImport("kernel32.dll")]
            public static extern bool ReadProcessMemory(int hProcess,
              int lpBaseAddress, byte[] lpBuffer, int dwSize, ref int lpNumberOfBytesRead);
    
            private void Form1_Load(object sender, EventArgs e)
            {
                Process process = Process.GetProcessesByName("csgo")[0];
                IntPtr processHandle = OpenProcess(PROCESS_WM_READ, false, proces*****); 
               
            }
        }
    }

  2. #2
    arconia's Avatar
    Join Date
    Feb 2014
    Gender
    male
    Posts
    12
    Reputation
    10
    Thanks
    10
    Well man I wold help you but I don't know where to start here...

  3. #3
    gtaplayer2's Avatar
    Join Date
    Aug 2013
    Gender
    male
    Location
    Dancing with my kawaii friend
    Posts
    588
    Reputation
    22
    Thanks
    1,984
    I know this is c++ but since you were really good in c# I guess you can translate it.

  4. #4
    Jim Morrison's Avatar
    Join Date
    Sep 2011
    Gender
    male
    Location
    Canterlot, Equestria
    Posts
    12,444
    Reputation
    1090
    Thanks
    3,336
    C++ really is the language for writing to memory, I just hate you can't make any nice forms with it. Anyways you would have to import the players' base address and see who is a teammate and whos an enemy.


    MPGH Staff History:
    Minion: 02-12-2013 - 6-28-2013
    Former Staff: 6-28-2013 - 7-14-2014
    Minion: 7-14-2014 - 1-3-2015
    Minion+: 1-3-2015 - 6-1-2015
    Moderator: 6-1-2015 - 10-2-2016
    Global Moderator: 10-2-2016 - Current

    Current Sections:
    DayZ Mod & Standalone Hacks & Cheats
    BattleOn Games Hacks, Cheats & Trainers
    Minecraft Hacks
    Other Semi-Popular First Person Shooter Hacks
    Blackshot Hacks & Cheats
    Need For Speed World Hacks
    Other First Person Shooter Hacks
    CounterStrike: Global Offensive Hacks
    Garry's Mod Hacks & Cheats


    Donating:
    If you want to donate money to me I take Bitcoin & Paypal, PM me for either of these if you're interested and thanks.
    Top Donators: (Awesome People)
    FanticSteal $75.00
    smurf_master $58.00 <- Best DayZ Gear Seller
    Fujiyama $25.00
    [MPGH]Black $10.00
    [MPGH]Hova $10.00
    xJudgez $4.54
    [MPGH]Normen's Sheep $3.50
    eminemlover $1.50


    Brony?
    https://www.mpgh.net/forum/groups/1728-mpgh-bronies.html

  5. #5
    ERGaergaergaergaergearg's Avatar
    Join Date
    Apr 2011
    Gender
    male
    Posts
    172
    Reputation
    19
    Thanks
    30
    My Mood
    Amazed
    Quote Originally Posted by NormenJaydenFBI View Post
    C++ really is the language for writing to memory, I just hate you can't make any nice forms with it. Anyways you would have to import the players' base address and see who is a teammate and whos an enemy.
    You can make nice forms with C++. Even without making in decompilable.

    If you are using Visual Studio, you can use MFC Application. Even though it is ALOT harder you can still make it.
    A lil training will probably do the job.

  6. #6
    Jim Morrison's Avatar
    Join Date
    Sep 2011
    Gender
    male
    Location
    Canterlot, Equestria
    Posts
    12,444
    Reputation
    1090
    Thanks
    3,336
    Quote Originally Posted by gresan6 View Post
    You can make nice forms with C++. Even without making in decompilable.

    If you are using Visual Studio, you can use MFC Application. Even though it is ALOT harder you can still make it.
    A lil training will probably do the job.
    ^This
    I started learning them and they're very nice, just doing everything is different and takes a bit more.


    MPGH Staff History:
    Minion: 02-12-2013 - 6-28-2013
    Former Staff: 6-28-2013 - 7-14-2014
    Minion: 7-14-2014 - 1-3-2015
    Minion+: 1-3-2015 - 6-1-2015
    Moderator: 6-1-2015 - 10-2-2016
    Global Moderator: 10-2-2016 - Current

    Current Sections:
    DayZ Mod & Standalone Hacks & Cheats
    BattleOn Games Hacks, Cheats & Trainers
    Minecraft Hacks
    Other Semi-Popular First Person Shooter Hacks
    Blackshot Hacks & Cheats
    Need For Speed World Hacks
    Other First Person Shooter Hacks
    CounterStrike: Global Offensive Hacks
    Garry's Mod Hacks & Cheats


    Donating:
    If you want to donate money to me I take Bitcoin & Paypal, PM me for either of these if you're interested and thanks.
    Top Donators: (Awesome People)
    FanticSteal $75.00
    smurf_master $58.00 <- Best DayZ Gear Seller
    Fujiyama $25.00
    [MPGH]Black $10.00
    [MPGH]Hova $10.00
    xJudgez $4.54
    [MPGH]Normen's Sheep $3.50
    eminemlover $1.50


    Brony?
    https://www.mpgh.net/forum/groups/1728-mpgh-bronies.html

  7. #7
    ZER0MEM0RY's Avatar
    Join Date
    Feb 2015
    Gender
    male
    Location
    \\\\.\\PhysicalDrive0
    Posts
    94
    Reputation
    10
    Thanks
    4,218
    My Mood
    Cold
    it's possible with C#, but using Pinvoke is very unpleasant and C# is way slower language than C++. Also with game hacking you have to use WinAPI instead of .net libraries so just go for C++. Way faster, cannot be decompiled EASILY back to source, easier since you have to work with winAPI.

Similar Threads

  1. [Help Request] Hack Help
    By Versa in forum Combat Arms Help
    Replies: 29
    Last Post: 06-30-2011, 05:40 AM
  2. [Help Request] Black Cipher / Flamesworth hack help.
    By GoGrandma in forum Combat Arms Help
    Replies: 7
    Last Post: 06-29-2011, 05:50 AM
  3. [Help Request] G-force hack help closes down
    By Paradox in forum CrossFire Help
    Replies: 9
    Last Post: 06-18-2011, 06:22 AM
  4. [Help Request] hacks help
    By x8xbcdhx8x in forum Combat Arms Help
    Replies: 9
    Last Post: 06-11-2011, 10:06 PM
  5. [Help Request] Making a hack help
    By elcamu987 in forum Combat Arms Help
    Replies: 5
    Last Post: 06-08-2011, 11:37 PM