Skip to content

Commit

Permalink
add: bypass server player limit, items/goats/demons/azael ESP
Browse files Browse the repository at this point in the history
  • Loading branch information
ALittlePatate committed Jun 15, 2024
1 parent 7aebbc2 commit ecb8841
Show file tree
Hide file tree
Showing 12 changed files with 1,697 additions and 6 deletions.
8 changes: 6 additions & 2 deletions IL2CppDLL.vcxproj
Original file line number Diff line number Diff line change
Expand Up @@ -90,6 +90,7 @@
<ClInclude Include="include\imgui\imstb_textedit.h" />
<ClInclude Include="include\imgui\imstb_truetype.h" />
<ClInclude Include="include\json.hpp" />
<ClInclude Include="include\magic_enum.hpp" />
<ClInclude Include="include\Minhook\include\MinHook.h" />
<ClInclude Include="include\Minhook\src\buffer.h" />
<ClInclude Include="include\Minhook\src\HDE\hde32.h" />
Expand Down Expand Up @@ -123,6 +124,7 @@
<ProjectGuid>{AFA414F5-355A-472E-822F-244F167E5B0D}</ProjectGuid>
<RootNamespace>Il2CppDLL</RootNamespace>
<ProjectName>DevourClient</ProjectName>
<WindowsTargetPlatformVersion>10.0</WindowsTargetPlatformVersion>
<!--<WindowsTargetPlatformVersion>10.0</WindowsTargetPlatformVersion>-->
</PropertyGroup>
<Import Project="$(VCTargetsPath)\Microsoft.Cpp.Default.props" />
Expand Down Expand Up @@ -232,12 +234,13 @@
<ClCompile>
<WarningLevel>Level3</WarningLevel>
<SDLCheck>true</SDLCheck>
<PreprocessorDefinitions>_DEBUG;IL2CPPDLL_EXPORTS;_WINDOWS;_USRDLL;%(PreprocessorDefinitions)</PreprocessorDefinitions>
<PreprocessorDefinitions>_DEBUG;IL2CPPDLL_EXPORTS;_WINDOWS;_USRDLL;%(PreprocessorDefinitions);_SILENCE_CXX17_CODECVT_HEADER_DEPRECATION_WARNING</PreprocessorDefinitions>
<ConformanceMode>true</ConformanceMode>
<PrecompiledHeader>Use</PrecompiledHeader>
<PrecompiledHeaderFile>pch-il2cpp.h</PrecompiledHeaderFile>
<MultiProcessorCompilation>true</MultiProcessorCompilation>
<AdditionalIncludeDirectories>$(ProjectDir)appdata;$(ProjectDir)framework;$(ProjectDir)user;$(ProjectDir)lib\public;</AdditionalIncludeDirectories>
<LanguageStandard>stdcpp17</LanguageStandard>
</ClCompile>
<Link>
<SubSystem>Windows</SubSystem>
Expand All @@ -251,12 +254,13 @@
<FunctionLevelLinking>true</FunctionLevelLinking>
<IntrinsicFunctions>true</IntrinsicFunctions>
<SDLCheck>true</SDLCheck>
<PreprocessorDefinitions>NDEBUG;IL2CPPDLL_EXPORTS;_WINDOWS;_USRDLL;%(PreprocessorDefinitions)</PreprocessorDefinitions>
<PreprocessorDefinitions>NDEBUG;IL2CPPDLL_EXPORTS;_WINDOWS;_USRDLL;%(PreprocessorDefinitions);_SILENCE_CXX17_CODECVT_HEADER_DEPRECATION_WARNING</PreprocessorDefinitions>
<ConformanceMode>true</ConformanceMode>
<PrecompiledHeader>Use</PrecompiledHeader>
<PrecompiledHeaderFile>pch-il2cpp.h</PrecompiledHeaderFile>
<MultiProcessorCompilation>true</MultiProcessorCompilation>
<AdditionalIncludeDirectories>$(ProjectDir)appdata;$(ProjectDir)framework;$(ProjectDir)user;$(ProjectDir)lib\public</AdditionalIncludeDirectories>
<LanguageStandard>stdcpp17</LanguageStandard>
</ClCompile>
<Link>
<SubSystem>Windows</SubSystem>
Expand Down
3 changes: 3 additions & 0 deletions IL2CppDLL.vcxproj.filters
Original file line number Diff line number Diff line change
Expand Up @@ -243,6 +243,9 @@
<ClInclude Include="lib\public\UnityEngine\Transform.h">
<Filter>lib\public\UnityEngine</Filter>
</ClInclude>
<ClInclude Include="include\magic_enum.hpp">
<Filter>include</Filter>
</ClInclude>
</ItemGroup>
<ItemGroup>
<Filter Include="appdata">
Expand Down
9 changes: 9 additions & 0 deletions framework/helpers.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,14 @@ void il2cpp_close_console() {
FreeConsole();
}

bool string_replace(std::string& str, const std::string& from, const std::string& to) {
size_t start_pos = str.find(from);
if (start_pos == std::string::npos)
return false;
str.replace(start_pos, from.length(), to);
return true;
}

#if _MSC_VER >= 1920
// Helper function to convert Il2CppString to std::string
std::string il2cppi_to_string(Il2CppString* str) {
Expand All @@ -52,6 +60,7 @@ std::string il2cppi_to_string(Il2CppString* str) {
std::string il2cppi_to_string(app::String* str) {
return il2cppi_to_string(reinterpret_cast<Il2CppString*>(str));
}

app::String* ConvertToSystemString(const char* str)
{
Il2CppString* il2cpp_str = il2cpp_string_new(str);
Expand Down
4 changes: 4 additions & 0 deletions framework/helpers.h
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,8 @@

#include "il2cpp-metadata-version.h"

#define il2cpp_object_get_field_value(object, type, field) *(type*)((uintptr_t)object + field->offset)

// Helper function to get the module base address
uintptr_t il2cppi_get_base_address();

Expand All @@ -20,6 +22,8 @@ void il2cppi_new_console();

void il2cpp_close_console();

bool string_replace(std::string& str, const std::string& from, const std::string& to);

#if _MSC_VER >= 1920
// Helper function to convert Il2CppString to std::string
std::string il2cppi_to_string(Il2CppString* str);
Expand Down
Loading

0 comments on commit ecb8841

Please sign in to comment.