Git Product home page Git Product logo

maecry / asphyxia-cs2 Goto Github PK

View Code? Open in Web Editor NEW
103.0 14.0 26.0 10.94 MB

open-source game hack/base/template for Counter-Strike 2 (somewhat of low-quality maybe as I don't care)

Home Page: https://www.unknowncheats.me/forum/counter-strike-2-releases/605507-asphyxia-cs2-internal-base.html#post3881474

License: MIT License

C++ 99.83% Lua 0.17%
counter-strike cpp cs2 cs2-cheat dll game-hacking internal reverse-engineering source2 source2-engine

asphyxia-cs2's Introduction

ASPHYXIA: CS2

Table of Contents πŸ“œ

About ℹ️

  • Asphyxia is a base that was intended to be a starting point. It is not a cheat itself, but rather a framework for building your own cheat.
  • C++ version: 20

Credits

Reminder

  • this project is for educational purposes only.

  • it will now be more focus on the 'base' rather than the 'cheat' itself.

    [βœ“] ESP - basic esp feature like: name, hp, armor... (comes with interactive menu preview, not draggable)

    [βœ“] CHAMS - basic chams system

    [x] AIMBOT - none...

License

asphyxia-cs2's People

Contributors

exlodium avatar jojofailure avatar maecry 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

Watchers

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

asphyxia-cs2's Issues

CUserCmd

Cheat crashes when entering match / enabling bhop

CUserCmd is probably outdated

chams alpha

idk if thats intended to be like that but chams alpha(transparency) doesnt work
also chams dont work through walls

Adding a variable makes 146 errors in Dbghelp.h

After adding a variable using C_ADD_VARIABLE on build the code starts returning 146 errors from windbg.h in the windows 10 sdk.

To Reproduce
Steps to reproduce the behavior:

  • Add a boolean variable with any name using C_ADD_VARIABLE in variables.h
  • Use C_GET in an if statement
  • Build code

Expected behavior
Not getting errors

Additional context
VS2022, c++20

doesn't work

Describe the bug
nothing appears/happens when injecting

To Reproduce
use injector https://github.com/adamhlt/DLL-Injector (loadlibrary) to inject built dll into cs2.exe

Expected behavior
base loads

Screenshots
image

Additional context
used multiple other loadlibrary injectors and same thing. i used debug and release builds, unmodified

nButtons &= ~IN_ATTACK stuck

Hi, im trying to fix my aimbot cause pistols shots only 1 shoot.

When i do nButtons |= IN_ATTACK it shoot but i cant unset in_attack cause if i did it my game not shoot.
And if i dont clear in_attack, it shoot and still holding...

In unknowncheats told me "change CMD to 0x54" but i dont understand at all.... anyone can help me to fix it and fix in base too?

Thanks!

dont work

I implement a cheat through the extreme injector method of manual punishment or the usual loading of the library, I also tried smokeinjector and process hacker , all injectors implement dll , but nothing happens in the game, the menu does not open, I use windows 10, the -insecure parameter is enabled in the cs

Crash On inject

I pasted the new update but it still crashes. I even downloaded from github itself and tried to inject but it crashes in lobby without giving any errors

Render target view destroyed

Describe the bug
Render target view has been destroyed after changing the game resolution.

To Reproduce

  1. Inject.
  2. Change the game resolution.

Expected behavior
The render target view should persist after changing the game resolution.

Screenshots
No

Additional context
This issue likely stems from the render target view not being properly re-initialized or updated after the resolution change. Consider implementing a solution to recreate or update the render target view when the resolution changes to ensure its persistence.

Pattern Error

[memory.cpp:220] [error] export not found: UnDecorateSymbolName
[memory.cpp:220] [error] export not found: SDL_SetRelativeMouseMode
[memory.cpp:220] [error] export not found: SDL_SetWindowGrab
[memory.cpp:220] [error] export not found: SDL_WarpMouseInWindow
[memory.cpp:220] [error] export not found: ?LoadKV3@@YA_NPEAVKeyValues3@@PEAVCUtlString@@PEBDAEBUKV3ID_t@@2@Z
[memory.cpp:356] [error] pattern not found: "48 89 5C 24 00 48 89 6C 24 00 56 57 41 56 48 81 EC 00 00 00 00 48 8B 05"

crashes

Describe the bug
the cheat crashes on inject i havent changed anything, i just installed and built and injected but it crashes. Probably something is outdated

Expected behavior
fix

set offset values

I am trying to add a feature such as "No Flash" and I need to change a offset value called "m_flFlashBangTime" but I don't know how to do that I'd appreciate it if someone gave me a snippet of a code to help.

What injector to use?

Used manual map and got vacation, only made minor changes so not blaming anything but wondering if it was the manual map injector that caused it or not, also your discord doesnt work in README

Legitbot

Make an legitbot with good aimbot and all that stuff you know smoothing and stuff. Can you add offsets from aimstar so It will be easier to add features.

Im not able to join matches?

Im not able to join matches with the cheat injected? I know that its bannable i don't care about that. What can i change for the build to able to be used in cs2? and my launch options is empty.

image

"Crash" of cheat

Since the last update, you have changed the logic of operation CORE::GetWorkingPath, and
GetModuleFileNameW always returns false, after that the hack is closed, to fix it is enough to go back to the previous version and everything works as before again.
OS: Windows 11 23H2 (22631.3447)

Possible Aimbot using this base

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

Its not really a bug, and because your discord link isn't working i was going to ask here how would it be possible to make an aimbot using this base, like getting view angles, bones, world to screen functions etc.
Im relatively new to CS2 cheats and i believe your base is really good, but also really complex xD.
Thanks for the help in adnvance!

Crash error

Game crashes when you enter into a game when injected. Error:

[schema.cpp:111] [error] failed to find offset for field with hash: 0x9241B8778DD136BD

** Outdated patterns **

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

To Reproduce
Steps to reproduce the behavior:

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

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

Additional context
Add any other context about the problem here.

SCHEMA::Setup not work

Describe the bug
SCHEMA::Setup not work, after latest update

To Reproduce

for (int i = 0; i < nElements; i++)
	{
		const UtlTSHashHandle_t hElement = pElements[i];

		if (hElement == 0)
			continue;

		CSchemaClassBinding* pClassBinding = pTypeScope->hashClasses[hElement];
		if (pClassBinding == nullptr)
			continue;

		SchemaClassInfoData_t* pDeclaredClassInfo;
		pTypeScope->FindDeclaredClass(&pDeclaredClassInfo, pClassBinding->szBinaryName);

		if (pDeclaredClassInfo == nullptr)
			continue;

		if (pDeclaredClassInfo->nFieldSize == 0)
			continue;

		CRT::String_t<MAX_PATH> szClassBuffer(CS_XOR("class %s\n"), pDeclaredClassInfo->szName);
		::WriteFile(hOutFile, szClassBuffer.Data(), szClassBuffer.Length(), nullptr, nullptr);

		for (auto j = 0; j < pDeclaredClassInfo->nFieldSize; j++)
		{
			SchemaClassFieldData_t* pFields = pDeclaredClassInfo->pFields;
			CRT::String_t<MAX_PATH> szFieldClassBuffer(CS_XOR("%s->%s"), pClassBinding->szBinaryName, pFields[j].szName);
			// store field info
			vecSchemaData.emplace_back(FNV1A::Hash(szFieldClassBuffer.Data()), pFields[j].nSingleInheritanceOffset);
			
			CRT::String_t<MAX_PATH> szFieldBuffer(CS_XOR("    %s %s = 0x%X\n"), pFields[j].pSchemaType->szName, pFields[j].szName, pFields[j].nSingleInheritanceOffset);
			// write field info
			::WriteFile(hOutFile, szFieldBuffer.Data(), szFieldBuffer.Length(), nullptr, nullptr);
		}

		//L_PRINT(LOG_INFO) << CS_XOR("dumped \"") << pDeclaredClassInfo->szName << CS_XOR("\" (total: ") << pDeclaredClassInfo->nFieldSize << CS_XOR(" fields)");
	}

This step not work, maybe nElements is null

SetViewAngle is crashing

unable to find pattern: F2 41 0F 10 00 4C 63 CA

void SetViewAngle(QAngle_t& angView)
	{
		// @ida: this got called before GetMatricesForView
		using fnSetViewAngle = std::int64_t(CS_FASTCALL*)(void*, std::int32_t, QAngle_t&);
		//static auto oSetViewAngle = reinterpret_cast<fnSetViewAngle>(MEM::FindPattern(CLIENT_DLL, CS_XOR("F2 41 0F 10 00 4C 63 CA")));
		static auto oSetViewAngle = reinterpret_cast<fnSetViewAngle>(MEM::FindPattern(CLIENT_DLL, CS_XOR("F2 41 0F 10 00 4C 63 CA")));

#ifdef CS_PARANOID
		CS_ASSERT(oSetViewAngle != nullptr);
#endif
		oSetViewAngle(this, 0, std::ref(angView));
	}

possibily crashing at this code block, any fix?

cusercmd

cusercmd seems to be weird, it reads the memory of class, for example using an assigment operator as IN_JUMP doesn't do anything in game even though the value is set

Chams colors not changing

I noticed that when overriding the matierals in OverrideMaterial the colors don't applay to the new material.
One question, what other materials can i use instead of primary_white.vmat or debug_wireframe.vmat?

crash on map load

base is crashing when loading into a map

its crashing here:

void CS_FASTCALL H::FrameStageNotify(void* rcx, int nFrameStage)
{
const auto oFrameStageNotify = hkFrameStageNotify.GetOriginal();
F::OnFrameStageNotify(nFrameStage);

return oFrameStageNotify(rcx, nFrameStage);

}

crashing after a few seconds

the menu seems unstable and is bugging and the base itself is crashing after a few seconds without an error output. please fix this because you cant use something as a base which doesnt work in the first place lol

[QUESTION] Base updates

Any plans to add new functions to the base? something like Trace ray function? or more world functions like item esp. ( not asking for features, just more functions to the base like said above "Trace ray/Ray")

Injection Crash

Describe the bug
When trying to inject (manual map) the cmd prompt does its thing then crashes
To Reproduce
Just try to inject when the current GitHub version

Expected behavior
Unhandled exception at 0x0000000000000000 in cs2.exe: 0xC0000005: Access violation executing location 0x0000000000000000.

I'm sure you are aware of this.

doesnt work :(

After the last update, when I inject the cheat in default mode nothing happens (I tried to open the menu on insert), in debug mode it crashes and the console is empty.
please help

question: Where is cs2 schema field

Since the 2 last updates, I think you removed the schema dump. Now there is only offsets. Does asphyxia still dump the cs2 schema? if no than is there a place to get it?

bug?

I am question after updating the offset.
Thanks for the source.
However, it doesn't seem to move at all.
After compiling, I injected it with potato injector, but when I press insert, the menu does not appear.
I see in the source that the menu is displayed using VK_insert, but why isn't it displayed? (potato injector is normal)

READ BEFORE MAKING NEW ISSUES

If you have like 0 experience/knowledge in the programming field and just want a fully functional cheat/hack for CS2 then sorry this is not for you, please don't create an issue and learn what is programming first, same apply to people experiencing issue from there pasting as normally they don't even know what they are doing

Please specify what the issue is, those that have like: "crashed, doesn't work" without providing the error will instantly get closed.

Please provide details about the error/issue you are facing including the debug console log showing the error, call stack, and ofc show the trace where you crashed of course.

If you are using a manual map injector, it won't work until you change some settings (check out premake5.lua to enable '/Zc:threadSafeInit-'), these kinds of issues will get closed instantly

Lastly after the 04/02 update, please pull the latest code, reclone the repo, or paste the schema fix into your repo, etc, and stop opening new issues about crashes relating to this because this is your end if you don't even update the base as I updated it

Note that anything outside of this base scope will get closed without further question (ex: aimbot, adding features) as the word 'base' describes itself

How does obtaining bone data work?

I had asked a question but forgot to include it in another issue.

Anyway, I'm curious how the data structure for bone data is made and constructed.

I saw some information in another issue and wanted to test it and understand how it was done, but I couldn't understand some things (I'm a beginner at some things)

I used this to test:

struct CBoneData
{
	Vector_t Location;
	float Scale;
	Quaternion_t Rotation;
};

class CModelState
{
public:
	CS_CLASS_NO_INITIALIZER(CModelState);

	SCHEMA_ADD_FIELD(CBoneData*, GetBoneArray, "CModelState->m_boneArray");

	Vector_t GetBoneLocation(int index)
	{
		if (GetBoneArray() && index < 0)
			return nullptr;
		Vector_t pos = GetBoneArray()[index].Location;
		return pos;
	}
};

class CSkeletonInstance : public CGameSceneNode
{
public:
	CS_CLASS_NO_INITIALIZER(CSkeletonInstance);
	SCHEMA_ADD_FIELD(CModelState, GetModelState, "CSkeletonInstance->m_modelState");
};

from this : Issue-40

What I don't understand is how the CBoneData data is saved and what is the difference between getting data like this or with a bone data matrix?

Why I have a doubt about how the CBoneData data is taken is because I tested as you said in Issue-40 to increase or decrease the pointer, the pointer 7 works and the CSkeletonInstance does not return null, but the CBoneData data is null

CSkeletonInstance* GetSkeletonInstance() { return MEM::CallVFunc<CSkeletonInstance*, 7U>(this); }

Well, these are my questions... thx!

broken chams

Chams don't work properly, invisible chams don't work at all

Console crash when injecting

I am currently using extreme injector v3 and injected the built with manual map (nothing modified). The console opens up, and loads up and then crashes the entire game, the last line the console said was:
[31-01-2024 14:50:08] [core.cpp:121] renderer backend initialization completed

That's what happens when using the debug build, the release build just crashes my game, no console showing up.
Screenshot 2024-01-31 145515

I am on win11 and AMD, does this change anything?

SkeletonInstance

Hello, i would like to know how to get boneArray from this source, i'm trying to do that for 6 hours but i found nothing.
Can someone help me pls ?

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.