fix makefile
This commit is contained in:
parent
c78b4bce1c
commit
8d28470e00
@ -35,7 +35,7 @@
|
||||
<folderInfo id="cdt.managedbuild.config.gnu.exe.debug.1168214098." name="/" resourcePath="">
|
||||
<toolChain id="cdt.managedbuild.toolchain.gnu.exe.debug.965909756" name="Linux GCC" nonInternalBuilderId="cdt.managedbuild.target.gnu.builder.exe.debug" superClass="cdt.managedbuild.toolchain.gnu.exe.debug">
|
||||
<targetPlatform id="cdt.managedbuild.target.gnu.platform.exe.debug.1799148153" name="Debug Platform" superClass="cdt.managedbuild.target.gnu.platform.exe.debug"/>
|
||||
<builder arguments="-e GAME=tf2 BUILD_DEBUG=1 NO_WARNINGS=1" buildPath="${workspace_loc:/cathook}" command="make" id="cdt.managedbuild.target.gnu.builder.exe.debug.1548213350" keepEnvironmentInBuildfile="false" managedBuildOn="false" name="Gnu Make Builder" parallelBuildOn="true" parallelizationNumber="optimal" superClass="cdt.managedbuild.target.gnu.builder.exe.debug"/>
|
||||
<builder arguments="" buildPath="${workspace_loc:/cathook}" command="make" id="cdt.managedbuild.target.gnu.builder.exe.debug.1548213350" keepEnvironmentInBuildfile="false" managedBuildOn="false" name="Gnu Make Builder" parallelBuildOn="true" parallelizationNumber="optimal" superClass="cdt.managedbuild.target.gnu.builder.exe.debug"/>
|
||||
<tool id="cdt.managedbuild.tool.gnu.archiver.base.782611349" name="GCC Archiver" superClass="cdt.managedbuild.tool.gnu.archiver.base"/>
|
||||
<tool command="g++" id="cdt.managedbuild.tool.gnu.cpp.compiler.exe.debug.883030293" name="GCC C++ Compiler" superClass="cdt.managedbuild.tool.gnu.cpp.compiler.exe.debug">
|
||||
<option id="gnu.cpp.compiler.exe.debug.option.optimization.level.908662295" name="Optimization Level" superClass="gnu.cpp.compiler.exe.debug.option.optimization.level" useByScannerDiscovery="false" value="gnu.cpp.compiler.optimization.level.none" valueType="enumerated"/>
|
||||
@ -133,10 +133,10 @@
|
||||
</storageModule>
|
||||
<storageModule moduleId="org.eclipse.cdt.core.LanguageSettingsProviders"/>
|
||||
<storageModule moduleId="refreshScope" versionNumber="2">
|
||||
<configuration configurationName="Default">
|
||||
<configuration configurationName="Main">
|
||||
<resource resourceType="PROJECT" workspacePath="/cathook"/>
|
||||
</configuration>
|
||||
<configuration configurationName="Main">
|
||||
<configuration configurationName="Default">
|
||||
<resource resourceType="PROJECT" workspacePath="/cathook"/>
|
||||
</configuration>
|
||||
</storageModule>
|
||||
|
5
makefile
5
makefile
@ -98,7 +98,7 @@ CXXFLAGS+=$(WARNING_FLAGS)
|
||||
endif
|
||||
|
||||
ifeq ($(ENABLE_VISUALS),1)
|
||||
INCLUDES+=-isystemsrc/freetype-gl -isystemsrc/imgui -isystem/usr/local/include/freetype2 -isystem/usr/include/freetype2 -I$(SIPC_DIR)
|
||||
INCLUDES+=-isystemsrc/freetype-gl -isystemsrc/imgui -isystem/usr/local/include/freetype2 -isystem/usr/include/freetype2
|
||||
LDLIBS+=-lssl -l:libSDL2-2.0.so.0 -l:libGLEW.so -l:libfreetype.so
|
||||
CXXFLAGS+=$(shell sdl2-config --cflags)
|
||||
CFLAGS+=$(shell sdl2-config --cflags)
|
||||
@ -123,7 +123,8 @@ GIT_COMMIT_DATE=$(shell git log -1 --pretty="%ai")
|
||||
DEFINES+=GIT_COMMIT_HASH="\"$(GIT_COMMIT_HASH)\"" GIT_COMMIT_DATE="\"$(GIT_COMMIT_DATE)\""
|
||||
|
||||
ifeq ($(ENABLE_IPC),1)
|
||||
SOURCES += $(shell find $(SIPC_DIR) -name "*.cpp" -print)
|
||||
SOURCES+=$(shell find $(SIPC_DIR) -name "*.cpp" -print)
|
||||
INCLUDES+=-I$(SIPC_DIR)
|
||||
endif
|
||||
|
||||
CXXFLAGS+=$(addprefix -D,$(DEFINES))
|
||||
|
@ -44,8 +44,6 @@ void logging::Info(const char* fmt, ...) {
|
||||
if (console_logging.convar_parent && console_logging)
|
||||
g_ICvar->ConsolePrintf("%s", result);
|
||||
}
|
||||
#else
|
||||
printf("%s", result);
|
||||
#endif
|
||||
delete [] buffer;
|
||||
delete [] result;
|
||||
|
@ -53,6 +53,7 @@
|
||||
#include <engine/ivdebugoverlay.h>
|
||||
#include <iprediction.h>
|
||||
#include <engine/ICollideable.h>
|
||||
#include <icommandline.h>
|
||||
|
||||
#include "sdk/TFGCClientSystem.hpp"
|
||||
#include "sdk/in_buttons.h"
|
||||
|
@ -15,17 +15,22 @@
|
||||
|
||||
bool *allowSecureServers { nullptr };
|
||||
|
||||
// valve pls no ban
|
||||
|
||||
void EXPOSED_Epic_VACBypass_1337_DoNotSteal_xXx_$1_xXx_MLG() {
|
||||
// Does not work
|
||||
// ((ICommandLine*(*)(void))dlsym(sharedobj::tier0().lmap, "CommandLine_Tier0"))()->RemoveParm("-textmode");
|
||||
// ((ICommandLine*(*)(void))dlsym(sharedobj::tier0().lmap, "CommandLine_Tier0"))()->RemoveParm("-insecure");
|
||||
static unsigned char patch[] = { 0x55, 0x89, 0xE5, 0x83, 0xEC, 0x18, 0xB8, 0x01, 0x00, 0x00, 0x00, 0xC9, 0xC3 };
|
||||
uintptr_t Host_IsSecureServerAllowed_addr = gSignatures.GetEngineSignature("55 89 E5 83 EC 18 E8 ? ? ? ? 8B 10 C7 44 24 04 ? ? ? ? 89 04 24 FF 52 2C 85 C0 74 11 C6 05 90 43 88 00 00");
|
||||
// +0x21 = allowSecureServers
|
||||
logging::Info("1337 VAC bypass: 0x%08x", Host_IsSecureServerAllowed_addr);
|
||||
//logging::Info("1337 VAC bypass: 0x%08x", Host_IsSecureServerAllowed_addr);
|
||||
Patch((void*)Host_IsSecureServerAllowed_addr, (void*)patch, sizeof(patch));
|
||||
uintptr_t allowSecureServers_addr = Host_IsSecureServerAllowed_addr + 0x21;
|
||||
allowSecureServers = *(bool**)(allowSecureServers_addr);
|
||||
logging::Info("Allow Secure Servers: 0x%08x", allowSecureServers);
|
||||
*allowSecureServers = true;
|
||||
logging::Info("Done..?");
|
||||
logging::Info("Allow Secure Servers: %d", *allowSecureServers);
|
||||
}
|
||||
|
||||
CatCommand fixvac("fixvac", "Lemme in to secure servers", []() {
|
||||
|
Reference in New Issue
Block a user