Giter VIP home page Giter VIP logo

garhal_csgo's Introduction

๐Ÿ‘‹ Hello, I'm DreTaX, a seasoned Software Engineer deeply passionate about reverse engineering and intricate aspects of software development.

๐Ÿ”ญ Currently, my focus revolves around kernel projects, researching bypasses, and crafting effective anti-cheat solutions. I excel in the realm of reversing games, developing undetected hacks for a myriad of anti-cheats.

๐Ÿ’ป In my professional journey, I've successfully managed and contributed to various projects, including modding platforms that enhance gaming experiences. My expertise extends to complex .NET projects. I also thrive and currently contribute as a full-time Security Engineer at Schoolyear.nl.

๐Ÿ‘ฏ My interests also extend to game development, particularly in Unity and Unreal Engine, where my extensive experience with mono proves beneficial.

๐Ÿ“ Proficient in creating user-mode anti-cheat solutions within the UnityEngine game environment, I continually push the boundaries of what's possible.

โšก As a respected member at GuidedHacking.com, I contribute valuable content through insightful videos and plan to release further anti-cheat bypasses and techniques in the future.

๐Ÿ“ง Feel free to reach out via email (you can find it in my profile description). I'm always open to collaborations, discussions, or inquiries about my work.

๐Ÿ’ก Committed to a pursuit of excellence, I approach challenges with a team-player mindset, fostering innovation through effective communication and collaboration.

๐ŸŒ Always learning, adapting, and evolving in the rapidly changing landscape of software engineering. My GitHub is a reflection of my dedication to the craft, showcasing projects that encapsulate my diverse skill set.

garhal_csgo's People

Contributors

4b4db4b3 avatar dretax avatar eurioin avatar jacckii avatar kaushikkumarbora avatar life45 avatar lufog avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

garhal_csgo's Issues

Why There is no memory Allocation

I think you can make this better by adding a simple memory allocation in your driver.
this may help in developing many more hacks.

CRITICAL_STRUCTURE_CORRUPTION

I got the cheat working with driver manual mapping and it's nice but after like 30 mins I'll get a BSOD for CRITICAL_STRUCTURE_CORRUPTION I have all the hiding and callbacks disabled. Do you know what could be happening?

Glow green if visible

I was trying to implement green glow, if enemy is visible using this code:

if (Wallhack)
{
  Entity ent = CreateEntity(EntityAddr);
  if (ent.isValidPlayer() && !ent.IsDormant())
  {
    Vector3 localPosition = LocalPlayerEnt.getHeadPosition();
    Vector3 entityPosition = ent.GetBonePosition(HEAD_BONE_ID);
    aim.parseMap();
    bool Visible = bspParser.is_visible(localPosition, entityPosition, true);
    //pass Visible=true flag to draw green glow
    ent.SetCorrectGlowStruct(OurTeam, GlowObject, Visible);
  }
}

The problem is that it shows green glow even behind the doors and on the edges of the walls. If it is behind a wall - it works OK. Is there an easy way to create is_truly_visible to include doors, smokes etc. ?

KDMAPPER cause ObRegisterCallbacks error: STATUS_ACCESS_DENIED

Hi, when I try to load the driver in test mode using "sc"cmd, driver works perfectly and user mode also works.
However when I try using the latest kdmapper , ObRegisterCallbacks failed, and cannot get the base address.

My setup checklist:
Rename the function inside garhal.c from DriverEntry to DriverInitialize
Uncomment the commented block to get new "DriverEntry "
Comment line pDriverObject->DriverUnload = UnloadDriver;
Comment block NTSTATUS UnloadDriver(PDRIVER_OBJECT pDriverObject) {...}
Add line #define _NO_CRT_STDIO_INLINE inside hide.h (don't know why but do as previous closed issue 99 said)
C++ -> Code Generation -> Security Check -> set to /GS-
Linker -> Command Line -> add /INTEGRITYCHECK
Inf2Cat -> Use Local Time -> set /uselocaltime
Successfully compiled the driver & copy the outputs to vmware

After all these setup, run cmd like ----> kamapper.exe Garhal.sys

debugview shows as :

======================================
Garhal is swimming as a manual mapped driver, system range start is FFFF800000000000, code mapped at FFFF908297EF0690
Garhal CSGO External hack By DreTaX
Starting...
Try ObRegisterCallbacks .
ObRegisterCallbacks error: STATUS_ACCESS_DENIED.
ObRegisterCallbacks Failed!

Process hiding feature is disabled.
Driver hiding feature is disabled.
Successfully started!
Created driver.

clearly, ObRegisterCallbacks failed and when I try use user mode, it can not get the base address of client and engine.

OS: win10 21h1 (VMware) and 1909 (real PC)
If anyone have any ideas, much appreciated!

Kernel_security_check_failure bsod

Hello I have OS build 19041.928 and I can't manual map the driver using KDmapper or UMAP, for some reason it instantly blue screens. The cheat works fine otherwise with testmode. All my build options are exactly the same as well with GS- security check disabled.

EDIT: I changed the DriverEntry point in the project linker settings to fix this

This is more of a question rather than feature request

I was wondering if this aimbot would be fine on faceit serverside AC. I think for writing viewangles this requires to check the mousedx and mousedy and make sure you are sending the correct positions for these. Does the cheat already do something like this?

VAC detection

VAC detection
Since CS:GO update in February 2022, CS:GO started to check cvars such as m_bSpotted, m_flFlashMaxAlpha, m_clrRender, and many more. This means most of the features of this cheat are by now detected. Tho the VAC ban may be delayed by 1 or more months. This may be due to many reasons as:

  • collecting and training AI using your data
  • to make it harder to analyze what's detected and what's not
  • many more...

To Reproduce
Turn only the radar feature in-game and normally play, ignore the extra radar info, within a few games you will start getting rage cheaters against you, which means you have moved into low trust factor games.

The trust factor is Valves' measure of how likely are you going to cheat, since you've played legit while reproducing this problem, your play style or reports shouldn't matter. That leaves you only with the detection factor. So they've detected you and successfully flagged you as a cheater and changed your trust factor accordingly.

I have personally tested this on a known good account with green trust with many hours on record. The driver was manually mapped into memory using a different signed driver.

Solutions
Those checks can be easily hooked, and therefore prevent CS:GO from detecting you.

For me, I rather chose a different path, such as only reading the memory of the game and rendering data collected from the game on WebRadar. But that may be too much paranoid approach.

I would just note in the README file in the VAC section, that everything except Aimbot, and Trigger bot may flag you as a cheater there for lowering your trust factor and possibly banning you in a few months.

Issue aimbot not sucess entity

Describe the issue
I use feature aimbot direct, but aim not success head, and when the enemy sits down.

Screenshots
image

**Help me **
How to fix bro :(

I got banned... (entire explanation and possible detection)

So, currently I'm converting the view_angles to mouse cords, and using my arduino, I never writed to meory game, and two/three month ago, I stopped to matchmaking because the game started giving me a error, "csgo settings were specified incorrectly", now i logged on my account and got a game ban, that was a untrusted ban, not overwatch, since they blocked me from matchmaking a time ago, my modified garhal don't have any function that write directly into the game, and i developed a poly engine, and i done some other ways of signature bypass (and I don't need it, since I'm on kernel and vac is as meme). So, what happened? Which detection vector they used to detect me? This don't make sense for me, and no, I never used any other cheat on that account. btw, I can bypass some league anti-cheats with an other cheat of mine, and I got game banned on VALVE, lol, that's really don't make sense for me

Has anyone ever got this working with kdmapper on 20H2?

My setup checklist:

  • Rename the function inside garhal.c from DriverEntry to DriverInitialize
  • Comment line pDriverObject->DriverUnload = UnloadDriver;
  • Comment block NTSTATUS UnloadDriver(PDRIVER_OBJECT pDriverObject) {...}
  • Add line #define _NO_CRT_STDIO_INLINE inside hide.h
  • C++ -> Code Generation -> Security Check -> set to /GS-
  • Linker -> Command Line -> add /INTEGRITYCHECK
  • Inf2Cat -> Use Local Time -> set /uselocaltime
  • Successfully compiled the driver & copy the outputs to vmware

Finally, in admin mode powershell, type .\kdmapper.exe .\Garhal.sys, BSOD immediately due to KERNEL_SECURITY_CHECK_FAILURE.

Minidump file: 062721-6078-01.zip

Another thing I noticed

This isn't anything major but I thought I should point it out.

https://github.com/dretax/GarHal_CSGO/blob/1150d94123d3cd6ded7a45a8a8a46a8bb33bad8c/GarhalController/Aimbot.cpp

line 120

for (int i = 0; i < 64; i++)

you could change it to this

for (int i = 0; i <= 64; ++i)

The reason behind this: In community servers there can be 64 players ergo the less than or equal to, and the reason you would put the two pluses in front if the i is because there's one less nop.

here is an article explaining the differences between i++ and ++i
https://medium.com/better-programming/stop-using-i-in-your-loops-1f906520d548

Drive compile error

Hello, sorry, I reported an error "suppose an int is returned from outside" when compiling the driver, what should I do? Wdm.h file, thank you very much.Have star

'all_of': identifier not found

1>------ Build started: Project: GarhalController, Configuration: Release x64 ------
1>Aimbot.cpp
1>BSPFile.cpp
1>BSPParser.cpp
1>config.cpp
1>Engine.cpp
1>Entity.cpp
1>GarhalController.cpp
1>TraceRay.cpp
1>C:\Users\Administrator\Desktop\GarHal_CSGO-master\GarhalController\Matrix.hpp(80): error C3861: 'all_of': identifier not found
1>C:\Users\Administrator\Desktop\GarHal_CSGO-master\GarhalController\Matrix.hpp(80): message : 'all_of': function was not declared in the template definition context and can be found only via argument-dependent lookup in the instantiation context
1>C:\Users\Administrator\Desktop\GarHal_CSGO-master\GarhalController\Matrix.hpp(76): message : while compiling class template member function 'bool Matrix<float,3,1>::empty(void) const'
1>C:\Users\Administrator\Desktop\GarHal_CSGO-master\GarhalController\TraceRay.cpp(276): message : see reference to function template instantiation 'bool Matrix<float,3,1>::empty(void) const' being compiled
1>C:\Users\Administrator\Desktop\GarHal_CSGO-master\GarhalController\BSPStructure.hpp(91): message : see reference to class template instantiation 'Matrix<float,3,1>' being compiled
1>Done building project "GarhalController.vcxproj" -- FAILED.
========== Build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped ==========

If someone can help me with this i would really aprieciate it.

ERROR

Severity Code Description Project File Line Suppression State
Error C1083 Cannot open include file: 'd3dx11tex.h': No such file or directory GarhalController C:\Users\Administrator\Desktop\csgo kernal\GarHal_CSGO-master\GarhalController\overlay.h 7

Driver started an error

C:\Users\Administrator>cd C:\Users\Administrator\Desktop\kdmapper-master\x64\Release

C:\Users\Administrator\Desktop\kdmapper-master\x64\Release>kdmapper.exe Garhal.sys
[<] Loading vulnerable driver
[-] Failed to get export gdi32full.NtGdiDdDDIReclaimAllocations2
[-] Failed to allocate remote image in kernel
[-] Failed to map Garhal.sys
[<] Unloading vulnerable driver

Garhal.sys is 64
kdmapper-1803-1903-master

Windows 10 version:

  • My version is.... [Example: 1803]

kdmapper bsod

im using updated kdmapper https://github.com/TheCruZ/kdmapper
Driver BSODS with SECURITY_CHECK_FAILED
Uncommented the code, renamed old function, even tried to remove the driver unload functions(as i saw on UC that its recommended) but still nothing. I guess somethings outdated?

Function detection

By "flagged" you mean that these functions are detected:

No flash (Flagged)
Displays enemies on the Radar (Flagged)
Bhop (Flagged)

All_Of Identifier Not Found

Describe the issue
When attempting to compile the GarhalController project, Matrix.hpp has an alleged error on line 80. The compiler cites C3861 with the description that 'all_of': identifier not found. When looking through the Matrix.hpp file for the declaration and definition of m_cValues, both are present.

To Reproduce
Steps to reproduce the behavior:

  1. Clone the repo, open in VS 2019.
  2. Right click the GarhalController project and select properties. Change to C++17 as both Default and C++14 both create many more errors.
  3. Set project to Win32 platform and the Release config.
  4. Attempt to build the GarhalController project; error will be shown.

Expected behavior
Expected that the project compiles without this error and produces an executable.

Screenshots
image

Windows 10 version:

  • My version is 2004, specifically 10.0.19041 Build 19041

Convert the project

Make a separate project that works as a manual mapped driver for fun.
Cache cleaning, and unloaded driver list cleaning will not be implemented, and will be left as a practice for the user.

ObRegisterCallbacks error

Describe the issue
ObRegisterCallbacks returns STATUS_ACCESS_DENIED

To Reproduce
Steps to reproduce the behavior:

  1. Change the Entryfunction like described for manualmapping
  2. Manualmap the driver with kdmapper
  3. NTSTATUS reg = RegisterOBCallback(); reg == STATUS_SUCCESS is false
  4. Further debugging shows reg = STATUS_ACCESS_DENIED

Expected behavior

STATUS_ACCESS_DENIED | The callback routines do not reside in a signed kernel binary image.

Behavior makes sense because it isn't in a signed kernel binary image, but is it supposed to fail this without creating a solution yourself or am I doing something wrong?

Windows 10 version:

  • My version is Windows 10 2020 October

Fix glow

Issue at csgo struct change, glow doesnt work.

GetCorrectOffset (19043)

int GetCorrectOffset(CHAR* Name, ULONG BuildNumber) only supports 19041 and 19042. It's outdated for BuildNumber 19043.
How can I find these offsets for the new version?

Mouse_event aimbot

I believe it's super secure work with kernel + read only memory, so, I belive if you add the option, or just tell me how to add a mouse_event, or how to convert the view angles to mouse coordinates, it will very good, since writing to memory can be detected one day, like the bhop feature, and you can add the bhop feature again just sending a mouse scroll instead of forcing jump ๐Ÿ˜ƒ

'ExAllocatePool': was declared deprecated

I am getting some warnings during compiling the driver to x64 platform.

Garhal/Garhal.inf

  • warning 1324: [Version] section should specify PnpLockdown=1.

Garhal/hide.c

  • error C2220: the following warning is treated as an error
  • warning C4996: 'ExAllocatePool': was declared deprecated

GarhalController/GarhalController.cpp

  • warning C4312: 'type cast': conversion from 'DWORD' to 'uintptr_t **' of greater size

After lowering the warning level to /W2, I successfully compiled the driver without any warnings on Garhal/hide.c. However, when the driver is loaded, launching CSGO will immediately crash the system.

##System info
Windows 10 OS build: 19041.264

Kernel Memory Management

if you try to read the cs2 memory
the kernel mmcopyvirtualmemory return 0 and the status is failure

Read Write Problem

Your Driver in my PC is Reading correctly sometime but in not able to write any memory any solution.
i am using your driver to read and write by my own c++ program.
i had already cheeked your driver was successfully loaded and working.
Screenshot (80)

controller disappears, file manager gets stuck in infinite loop

Describe the issue
When i try to load the controller with CSGO opened nothing happens and my file manager gets stuck loading infinitely unless i force it to restart through the task manager. If i dont have CSGO opened, it asks me to open CSGO but when i do the controller disappears and my file manager gets stuck in the same infinite loop

To Reproduce
Steps to reproduce the behavior:

  1. Load the driver like normal
  2. Open the controller
  3. Open CSGO
  4. See the controller disappear

Expected behavior
cheat to launch like normal, i honestly dont know what that looks like as i have never got it to launch regularly

Windows 10 version:

  • My version is 22H2

Getting stuck with csgo.exe pid

Hello,

Trying to set to work your project on my pc.

Got complied everything,created service,started it. But once im trying to start controller and get pid of csgo,it fails...

Where i could look up to debug it ?
Sounds like driver-client communition?
driverstuck

blue screen please

Describe the issue
A clear and concise description of what the bug/issue is.

To Reproduce
Steps to reproduce the behavior:

  1. Go to '...'
  2. Click on '....'
  3. Scroll down to '....'
  4. See error

Expected behavior
A clear and concise description of what you expected to happen.

Screenshots
If applicable, add screenshots to help explain your problem.

Windows 10 version:

  • My version is.... [Example: 2004]

Additional context
Add any other context about the problem here.

kdmapper.exe is blue screen win10 20h1

all_of issue

Hello,

any idea why this is happening? i managed to compile it in the past, but dont know why this occures now.

grafik

Greetings

i got bluescreen

i made load driver with .bat file
cd %~dp0
Mapper.exe Garhal.sys
pause

after running Garhal.sys got blue screen

any help !!??

Incorrect GameDirectory

The getGameDirectory() function in Aimbot class gives incorrect path. As a result the bsp file for the map fails to parse.

Definition in Aimbot.cpp

const char* Aimbot::getGameDirectory()
{
    uint32_t clientState = Driver.ReadVirtualMemory<uint32_t>(ProcessId, EngineAddress + hazedumper::signatures::dwClientState, sizeof(uint32_t));
    static std::array<char, 0x120> gameDirectory = Driver.ReadVirtualMemory<std::array<char, 0x120>>(ProcessId, clientState + hazedumper::signatures::dwGameDir, sizeof(std::array<char, 0x120>));
    return gameDirectory.data();
}

Corrected Definition

const char* Aimbot::getGameDirectory()
{
    static std::array<char, 0x120> gameDirectory = Driver.ReadVirtualMemory<std::array<char, 0x120>>(ProcessId, EngineAddress + hazedumper::signatures::dwGameDir, sizeof(std::array<char, 0x120>));
    return gameDirectory.data();
}

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.