├── .gitignore ├── CaveiraShadow.cpp ├── CaveiraShadow.sln ├── CaveiraShadow.vcxproj ├── CaveiraShadow.vcxproj.filters ├── CaveiraShadow.vcxproj.user ├── Config.h ├── Json.h ├── LICENSE ├── Memory.cpp ├── Memory.h └── README.md /.gitignore: -------------------------------------------------------------------------------- 1 | # Prerequisites 2 | *.d 3 | 4 | # Compiled Object files 5 | *.slo 6 | *.lo 7 | *.o 8 | *.obj 9 | 10 | # Precompiled Headers 11 | *.gch 12 | *.pch 13 | 14 | # Compiled Dynamic libraries 15 | *.so 16 | *.dylib 17 | *.dll 18 | 19 | # Fortran module files 20 | *.mod 21 | *.smod 22 | 23 | # Compiled Static libraries 24 | *.lai 25 | *.la 26 | *.a 27 | *.lib 28 | 29 | # Executables 30 | *.exe 31 | *.out 32 | *.app 33 | -------------------------------------------------------------------------------- /CaveiraShadow.cpp: -------------------------------------------------------------------------------- 1 | #include 2 | #include 3 | 4 | #include "Memory.h" 5 | #include "Config.h" 6 | 7 | #include 8 | #include 9 | #include 10 | 11 | #include "Json.h" 12 | using namespace nlohmann; 13 | 14 | Memory* memory; 15 | 16 | std::string CurrentPath() 17 | { 18 | char* cwd = _getcwd(0, 0); 19 | std::string directory(cwd); 20 | std::free(cwd); 21 | return directory; 22 | 23 | } 24 | 25 | DWORD ProcessID = memory->GetProcessID(L"RainbowSix.exe"); 26 | HANDLE hProcess = OpenProcess(PROCESS_ALL_ACCESS, FALSE, ProcessID); 27 | unsigned long long base = memory->BaseAddress(ProcessID); 28 | 29 | class R6 { 30 | public: 31 | class Functions { 32 | public: 33 | uintptr_t GameManager(); 34 | uintptr_t RoundManager(); 35 | uintptr_t EntityList(); 36 | uintptr_t EntityCount(); 37 | uintptr_t EntityInfo(uintptr_t entity); 38 | bool GameState(); 39 | }; 40 | 41 | class Features { 42 | public: 43 | void CaveiraESP(bool active1); 44 | }; 45 | 46 | Functions* functions; 47 | Features* features; 48 | }; 49 | 50 | R6* r6; 51 | 52 | uintptr_t R6::Functions::GameManager() 53 | { 54 | return memory->Read(hProcess, base + Config::Offsets::pGameManager); 55 | } 56 | 57 | uintptr_t R6::Functions::RoundManager() 58 | { 59 | return memory->Read(hProcess, base + Config::Offsets::pRoundManager); 60 | } 61 | 62 | 63 | uintptr_t R6::Functions::EntityList() 64 | { 65 | uint64_t entityList = memory->Read(hProcess, base + Config::Offsets::pGameManager); 66 | entityList = memory->Read(hProcess, entityList + 0xE0); 67 | 68 | entityList ^= 0x53; 69 | entityList += 0xEEBD43B91E3D5D54; 70 | entityList ^= 0x1FEC13843E78A654; 71 | 72 | return entityList; 73 | } 74 | 75 | uintptr_t R6::Functions::EntityInfo(uintptr_t entity) 76 | { 77 | uint64_t info = memory->Read(hProcess, entity + 0x50); 78 | info = _rotl64(info, 1); 79 | info -= 0x53; 80 | info = info ^ 0x84B4E3BD4F9014AF; 81 | 82 | return info; 83 | } 84 | 85 | bool R6::Functions::GameState() 86 | { 87 | BYTE phase = memory->Read(hProcess, RoundManager() + 0x300); 88 | 89 | if (phase == 2 || phase == 3) 90 | { 91 | return true; 92 | } 93 | else 94 | { 95 | return false; 96 | } 97 | } 98 | 99 | uintptr_t R6::Functions::EntityCount() 100 | { 101 | uintptr_t entity_count = 0x0; 102 | 103 | entity_count = memory->Read(hProcess, r6->functions->GameManager() + 0xE8); 104 | 105 | entity_count ^= 0x53; 106 | entity_count += 0xEEBD43B91E3D5D54; 107 | entity_count ^= 0x1FEC13843E78A654; 108 | 109 | int countNumber = (int)(entity_count ^ 0x18C0000000); 110 | 111 | return countNumber; 112 | } 113 | 114 | void R6::Features::CaveiraESP(bool active) 115 | { 116 | 117 | int playerCount = r6->functions->EntityCount(); 118 | 119 | for (int player = 0; player < playerCount; player++) 120 | { 121 | auto entity_object = memory->Read(hProcess, r6->functions->EntityList() + (player * 0x8)); 122 | entity_object = r6->functions->EntityInfo(entity_object); 123 | 124 | auto entity_info = memory->Read(hProcess, entity_object + 0x18); 125 | entity_info = memory->Read(hProcess, entity_info + 0xD8); 126 | 127 | for (uint32_t current = 0x80; current < 0xF0; current += 4) 128 | { 129 | auto markerIcon = memory->Read(hProcess, entity_info + current); 130 | 131 | if (markerIcon == 0) 132 | continue; 133 | 134 | auto checkForInvalid = memory->Read(hProcess, markerIcon); 135 | if (checkForInvalid != (base + Config::Offsets::pVTable)) 136 | continue; 137 | 138 | bool game_state = r6->functions->GameState(); 139 | 140 | if(game_state && active) 141 | memory->Write(hProcess, markerIcon + 0x220, 0x85); 142 | else 143 | memory->Write(hProcess, markerIcon + 0x220, 0x84); 144 | } 145 | } 146 | 147 | return; 148 | 149 | } 150 | 151 | int main() 152 | { 153 | SetConsoleTitleA("R6 Caveira ESP | Shadow Legacy | InsideExploit[UC]"); 154 | 155 | json js; 156 | 157 | std::string configPath = CurrentPath() + "\\config.json"; 158 | 159 | std::ifstream configR(configPath); 160 | 161 | if (!configR) 162 | { 163 | 164 | std::cout << "[LOADING] Creating the json config file because is missing...\n"; 165 | 166 | Sleep(300); 167 | 168 | std::ofstream configW; 169 | configW.open(configPath); 170 | configW << "{\n"; 171 | configW << " \"Enable\": 112,\n"; 172 | configW << " \"Disable\": 113\n"; 173 | configW << "}"; 174 | 175 | configW.close(); 176 | 177 | Sleep(300); 178 | 179 | std::cout << "[SUCCESS] The json config file got created... please restart application.\n"; 180 | 181 | Sleep(300); 182 | exit(-0.1); 183 | } 184 | 185 | configR >> js; 186 | 187 | uintptr_t hotkeyEnable = js["Enable"]; 188 | uintptr_t hotkeyDisable = js["Disable"]; 189 | 190 | if (!ProcessID) 191 | { 192 | std::cout << "[ERROR] Could not get process id. [-1]\n"; 193 | Sleep(1500); 194 | exit(-1); 195 | } 196 | 197 | if (!hProcess) 198 | { 199 | std::cout << "[ERROR] Could not handle the process. [-2]\n"; 200 | Sleep(1500); 201 | exit(-2); 202 | } 203 | 204 | if (!base) 205 | { 206 | std::cout << "[ERROR] Could not get base address. [-3]\n"; 207 | Sleep(1500); 208 | exit(-3); 209 | } 210 | 211 | std::cout << "[INFO] Please use an command.\n\n"; 212 | std::cout << "[HOTKEY] F1: Enable ESP.\n"; 213 | std::cout << "[HOTKEY] F2: Disable ESP.\n"; 214 | 215 | std::cout << "\n[IMPORTANT] Remember, that one showed key are the default one.\n"; 216 | 217 | 218 | std::cout << "" << std::endl; 219 | 220 | while (1) 221 | { 222 | if (GetAsyncKeyState(hotkeyEnable) & 0x1) 223 | { 224 | std::cout << "[SUCCESS] Caveira ESP got enabled.\n"; 225 | r6->features->CaveiraESP(true); 226 | } 227 | 228 | if (GetAsyncKeyState(hotkeyDisable) & 0x1) 229 | { 230 | std::cout << "[SUCCESS] Caveira ESP got disabled.\n"; 231 | r6->features->CaveiraESP(false); 232 | } 233 | 234 | } 235 | 236 | } 237 | -------------------------------------------------------------------------------- /CaveiraShadow.sln: -------------------------------------------------------------------------------- 1 |  2 | Microsoft Visual Studio Solution File, Format Version 12.00 3 | # Visual Studio Version 16 4 | VisualStudioVersion = 16.0.30413.136 5 | MinimumVisualStudioVersion = 10.0.40219.1 6 | Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "CaveiraShadow", "CaveiraShadow.vcxproj", "{2377DB56-F099-4D44-8D60-015413ACCD15}" 7 | EndProject 8 | Global 9 | GlobalSection(SolutionConfigurationPlatforms) = preSolution 10 | Debug|x64 = Debug|x64 11 | Debug|x86 = Debug|x86 12 | Release|x64 = Release|x64 13 | Release|x86 = Release|x86 14 | EndGlobalSection 15 | GlobalSection(ProjectConfigurationPlatforms) = postSolution 16 | {2377DB56-F099-4D44-8D60-015413ACCD15}.Debug|x64.ActiveCfg = Debug|x64 17 | {2377DB56-F099-4D44-8D60-015413ACCD15}.Debug|x64.Build.0 = Debug|x64 18 | {2377DB56-F099-4D44-8D60-015413ACCD15}.Debug|x86.ActiveCfg = Debug|Win32 19 | {2377DB56-F099-4D44-8D60-015413ACCD15}.Debug|x86.Build.0 = Debug|Win32 20 | {2377DB56-F099-4D44-8D60-015413ACCD15}.Release|x64.ActiveCfg = Release|x64 21 | {2377DB56-F099-4D44-8D60-015413ACCD15}.Release|x64.Build.0 = Release|x64 22 | {2377DB56-F099-4D44-8D60-015413ACCD15}.Release|x86.ActiveCfg = Release|Win32 23 | {2377DB56-F099-4D44-8D60-015413ACCD15}.Release|x86.Build.0 = Release|Win32 24 | EndGlobalSection 25 | GlobalSection(SolutionProperties) = preSolution 26 | HideSolutionNode = FALSE 27 | EndGlobalSection 28 | GlobalSection(ExtensibilityGlobals) = postSolution 29 | SolutionGuid = {BD78D398-49CD-427D-8ABA-285D0115EBDB} 30 | EndGlobalSection 31 | EndGlobal 32 | -------------------------------------------------------------------------------- /CaveiraShadow.vcxproj: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | Debug 6 | Win32 7 | 8 | 9 | Release 10 | Win32 11 | 12 | 13 | Debug 14 | x64 15 | 16 | 17 | Release 18 | x64 19 | 20 | 21 | 22 | 16.0 23 | Win32Proj 24 | {2377db56-f099-4d44-8d60-015413accd15} 25 | CaveiraShadow 26 | 10.0.19041.0 27 | 28 | 29 | 30 | Application 31 | true 32 | v142 33 | Unicode 34 | 35 | 36 | Application 37 | false 38 | v142 39 | true 40 | Unicode 41 | 42 | 43 | Application 44 | true 45 | v142 46 | Unicode 47 | 48 | 49 | Application 50 | false 51 | v142 52 | true 53 | Unicode 54 | 55 | 56 | 57 | 58 | 59 | 60 | 61 | 62 | 63 | 64 | 65 | 66 | 67 | 68 | 69 | 70 | 71 | 72 | 73 | 74 | true 75 | 76 | 77 | false 78 | 79 | 80 | true 81 | 82 | 83 | false 84 | 85 | 86 | 87 | Level3 88 | true 89 | WIN32;_DEBUG;_CONSOLE;%(PreprocessorDefinitions) 90 | true 91 | 92 | 93 | Console 94 | true 95 | 96 | 97 | 98 | 99 | Level3 100 | true 101 | true 102 | true 103 | WIN32;NDEBUG;_CONSOLE;%(PreprocessorDefinitions) 104 | true 105 | 106 | 107 | Console 108 | true 109 | true 110 | true 111 | 112 | 113 | 114 | 115 | Level3 116 | true 117 | _DEBUG;_CONSOLE;%(PreprocessorDefinitions) 118 | true 119 | 120 | 121 | Console 122 | true 123 | 124 | 125 | 126 | 127 | Level3 128 | true 129 | true 130 | true 131 | NDEBUG;_CONSOLE;%(PreprocessorDefinitions) 132 | true 133 | stdcpp17 134 | 135 | 136 | Console 137 | true 138 | true 139 | true 140 | 141 | 142 | 143 | 144 | 145 | 146 | 147 | 148 | 149 | 150 | 151 | 152 | 153 | 154 | -------------------------------------------------------------------------------- /CaveiraShadow.vcxproj.filters: -------------------------------------------------------------------------------- 1 |  2 | 3 | 4 | 5 | {4FC737F1-C7A5-4376-A066-2A32D752A2FF} 6 | cpp;c;cc;cxx;c++;cppm;ixx;def;odl;idl;hpj;bat;asm;asmx 7 | 8 | 9 | {93995380-89BD-4b04-88EB-625FBE52EBFB} 10 | h;hh;hpp;hxx;h++;hm;inl;inc;ipp;xsd 11 | 12 | 13 | {67DA6AB6-F800-4c08-8B7A-83BB121AAD01} 14 | rc;ico;cur;bmp;dlg;rc2;rct;bin;rgs;gif;jpg;jpeg;jpe;resx;tiff;tif;png;wav;mfcribbon-ms 15 | 16 | 17 | {c084f8b8-d604-4df2-bbe1-807c2c7d4317} 18 | 19 | 20 | {e91b8200-b7bc-4b98-91d7-28971c7c74e8} 21 | 22 | 23 | 24 | 25 | File di origine 26 | 27 | 28 | File di intestazione\Memory 29 | 30 | 31 | 32 | 33 | File di intestazione\Json 34 | 35 | 36 | File di intestazione\Memory 37 | 38 | 39 | File di intestazione 40 | 41 | 42 | -------------------------------------------------------------------------------- /CaveiraShadow.vcxproj.user: -------------------------------------------------------------------------------- 1 |  2 | 3 | 4 | -------------------------------------------------------------------------------- /Config.h: -------------------------------------------------------------------------------- 1 | namespace Config { 2 | namespace Offsets { 3 | constexpr auto pGameManager = 0x5DEC028; 4 | constexpr auto pRoundManager = 0x708BE38; 5 | constexpr auto pVTable = 0x52C71F0; 6 | } 7 | } 8 | -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- 1 | GNU GENERAL PUBLIC LICENSE 2 | Version 2, June 1991 3 | 4 | Copyright (C) 1989, 1991 Free Software Foundation, Inc., 5 | 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA 6 | Everyone is permitted to copy and distribute verbatim copies 7 | of this license document, but changing it is not allowed. 8 | 9 | Preamble 10 | 11 | The licenses for most software are designed to take away your 12 | freedom to share and change it. By contrast, the GNU General Public 13 | License is intended to guarantee your freedom to share and change free 14 | software--to make sure the software is free for all its users. This 15 | General Public License applies to most of the Free Software 16 | Foundation's software and to any other program whose authors commit to 17 | using it. (Some other Free Software Foundation software is covered by 18 | the GNU Lesser General Public License instead.) You can apply it to 19 | your programs, too. 20 | 21 | When we speak of free software, we are referring to freedom, not 22 | price. Our General Public Licenses are designed to make sure that you 23 | have the freedom to distribute copies of free software (and charge for 24 | this service if you wish), that you receive source code or can get it 25 | if you want it, that you can change the software or use pieces of it 26 | in new free programs; and that you know you can do these things. 27 | 28 | To protect your rights, we need to make restrictions that forbid 29 | anyone to deny you these rights or to ask you to surrender the rights. 30 | These restrictions translate to certain responsibilities for you if you 31 | distribute copies of the software, or if you modify it. 32 | 33 | For example, if you distribute copies of such a program, whether 34 | gratis or for a fee, you must give the recipients all the rights that 35 | you have. You must make sure that they, too, receive or can get the 36 | source code. And you must show them these terms so they know their 37 | rights. 38 | 39 | We protect your rights with two steps: (1) copyright the software, and 40 | (2) offer you this license which gives you legal permission to copy, 41 | distribute and/or modify the software. 42 | 43 | Also, for each author's protection and ours, we want to make certain 44 | that everyone understands that there is no warranty for this free 45 | software. If the software is modified by someone else and passed on, we 46 | want its recipients to know that what they have is not the original, so 47 | that any problems introduced by others will not reflect on the original 48 | authors' reputations. 49 | 50 | Finally, any free program is threatened constantly by software 51 | patents. We wish to avoid the danger that redistributors of a free 52 | program will individually obtain patent licenses, in effect making the 53 | program proprietary. To prevent this, we have made it clear that any 54 | patent must be licensed for everyone's free use or not licensed at all. 55 | 56 | The precise terms and conditions for copying, distribution and 57 | modification follow. 58 | 59 | GNU GENERAL PUBLIC LICENSE 60 | TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION 61 | 62 | 0. This License applies to any program or other work which contains 63 | a notice placed by the copyright holder saying it may be distributed 64 | under the terms of this General Public License. The "Program", below, 65 | refers to any such program or work, and a "work based on the Program" 66 | means either the Program or any derivative work under copyright law: 67 | that is to say, a work containing the Program or a portion of it, 68 | either verbatim or with modifications and/or translated into another 69 | language. (Hereinafter, translation is included without limitation in 70 | the term "modification".) Each licensee is addressed as "you". 71 | 72 | Activities other than copying, distribution and modification are not 73 | covered by this License; they are outside its scope. The act of 74 | running the Program is not restricted, and the output from the Program 75 | is covered only if its contents constitute a work based on the 76 | Program (independent of having been made by running the Program). 77 | Whether that is true depends on what the Program does. 78 | 79 | 1. You may copy and distribute verbatim copies of the Program's 80 | source code as you receive it, in any medium, provided that you 81 | conspicuously and appropriately publish on each copy an appropriate 82 | copyright notice and disclaimer of warranty; keep intact all the 83 | notices that refer to this License and to the absence of any warranty; 84 | and give any other recipients of the Program a copy of this License 85 | along with the Program. 86 | 87 | You may charge a fee for the physical act of transferring a copy, and 88 | you may at your option offer warranty protection in exchange for a fee. 89 | 90 | 2. You may modify your copy or copies of the Program or any portion 91 | of it, thus forming a work based on the Program, and copy and 92 | distribute such modifications or work under the terms of Section 1 93 | above, provided that you also meet all of these conditions: 94 | 95 | a) You must cause the modified files to carry prominent notices 96 | stating that you changed the files and the date of any change. 97 | 98 | b) You must cause any work that you distribute or publish, that in 99 | whole or in part contains or is derived from the Program or any 100 | part thereof, to be licensed as a whole at no charge to all third 101 | parties under the terms of this License. 102 | 103 | c) If the modified program normally reads commands interactively 104 | when run, you must cause it, when started running for such 105 | interactive use in the most ordinary way, to print or display an 106 | announcement including an appropriate copyright notice and a 107 | notice that there is no warranty (or else, saying that you provide 108 | a warranty) and that users may redistribute the program under 109 | these conditions, and telling the user how to view a copy of this 110 | License. (Exception: if the Program itself is interactive but 111 | does not normally print such an announcement, your work based on 112 | the Program is not required to print an announcement.) 113 | 114 | These requirements apply to the modified work as a whole. If 115 | identifiable sections of that work are not derived from the Program, 116 | and can be reasonably considered independent and separate works in 117 | themselves, then this License, and its terms, do not apply to those 118 | sections when you distribute them as separate works. But when you 119 | distribute the same sections as part of a whole which is a work based 120 | on the Program, the distribution of the whole must be on the terms of 121 | this License, whose permissions for other licensees extend to the 122 | entire whole, and thus to each and every part regardless of who wrote it. 123 | 124 | Thus, it is not the intent of this section to claim rights or contest 125 | your rights to work written entirely by you; rather, the intent is to 126 | exercise the right to control the distribution of derivative or 127 | collective works based on the Program. 128 | 129 | In addition, mere aggregation of another work not based on the Program 130 | with the Program (or with a work based on the Program) on a volume of 131 | a storage or distribution medium does not bring the other work under 132 | the scope of this License. 133 | 134 | 3. You may copy and distribute the Program (or a work based on it, 135 | under Section 2) in object code or executable form under the terms of 136 | Sections 1 and 2 above provided that you also do one of the following: 137 | 138 | a) Accompany it with the complete corresponding machine-readable 139 | source code, which must be distributed under the terms of Sections 140 | 1 and 2 above on a medium customarily used for software interchange; or, 141 | 142 | b) Accompany it with a written offer, valid for at least three 143 | years, to give any third party, for a charge no more than your 144 | cost of physically performing source distribution, a complete 145 | machine-readable copy of the corresponding source code, to be 146 | distributed under the terms of Sections 1 and 2 above on a medium 147 | customarily used for software interchange; or, 148 | 149 | c) Accompany it with the information you received as to the offer 150 | to distribute corresponding source code. (This alternative is 151 | allowed only for noncommercial distribution and only if you 152 | received the program in object code or executable form with such 153 | an offer, in accord with Subsection b above.) 154 | 155 | The source code for a work means the preferred form of the work for 156 | making modifications to it. For an executable work, complete source 157 | code means all the source code for all modules it contains, plus any 158 | associated interface definition files, plus the scripts used to 159 | control compilation and installation of the executable. However, as a 160 | special exception, the source code distributed need not include 161 | anything that is normally distributed (in either source or binary 162 | form) with the major components (compiler, kernel, and so on) of the 163 | operating system on which the executable runs, unless that component 164 | itself accompanies the executable. 165 | 166 | If distribution of executable or object code is made by offering 167 | access to copy from a designated place, then offering equivalent 168 | access to copy the source code from the same place counts as 169 | distribution of the source code, even though third parties are not 170 | compelled to copy the source along with the object code. 171 | 172 | 4. You may not copy, modify, sublicense, or distribute the Program 173 | except as expressly provided under this License. Any attempt 174 | otherwise to copy, modify, sublicense or distribute the Program is 175 | void, and will automatically terminate your rights under this License. 176 | However, parties who have received copies, or rights, from you under 177 | this License will not have their licenses terminated so long as such 178 | parties remain in full compliance. 179 | 180 | 5. You are not required to accept this License, since you have not 181 | signed it. However, nothing else grants you permission to modify or 182 | distribute the Program or its derivative works. These actions are 183 | prohibited by law if you do not accept this License. Therefore, by 184 | modifying or distributing the Program (or any work based on the 185 | Program), you indicate your acceptance of this License to do so, and 186 | all its terms and conditions for copying, distributing or modifying 187 | the Program or works based on it. 188 | 189 | 6. Each time you redistribute the Program (or any work based on the 190 | Program), the recipient automatically receives a license from the 191 | original licensor to copy, distribute or modify the Program subject to 192 | these terms and conditions. You may not impose any further 193 | restrictions on the recipients' exercise of the rights granted herein. 194 | You are not responsible for enforcing compliance by third parties to 195 | this License. 196 | 197 | 7. If, as a consequence of a court judgment or allegation of patent 198 | infringement or for any other reason (not limited to patent issues), 199 | conditions are imposed on you (whether by court order, agreement or 200 | otherwise) that contradict the conditions of this License, they do not 201 | excuse you from the conditions of this License. If you cannot 202 | distribute so as to satisfy simultaneously your obligations under this 203 | License and any other pertinent obligations, then as a consequence you 204 | may not distribute the Program at all. For example, if a patent 205 | license would not permit royalty-free redistribution of the Program by 206 | all those who receive copies directly or indirectly through you, then 207 | the only way you could satisfy both it and this License would be to 208 | refrain entirely from distribution of the Program. 209 | 210 | If any portion of this section is held invalid or unenforceable under 211 | any particular circumstance, the balance of the section is intended to 212 | apply and the section as a whole is intended to apply in other 213 | circumstances. 214 | 215 | It is not the purpose of this section to induce you to infringe any 216 | patents or other property right claims or to contest validity of any 217 | such claims; this section has the sole purpose of protecting the 218 | integrity of the free software distribution system, which is 219 | implemented by public license practices. Many people have made 220 | generous contributions to the wide range of software distributed 221 | through that system in reliance on consistent application of that 222 | system; it is up to the author/donor to decide if he or she is willing 223 | to distribute software through any other system and a licensee cannot 224 | impose that choice. 225 | 226 | This section is intended to make thoroughly clear what is believed to 227 | be a consequence of the rest of this License. 228 | 229 | 8. If the distribution and/or use of the Program is restricted in 230 | certain countries either by patents or by copyrighted interfaces, the 231 | original copyright holder who places the Program under this License 232 | may add an explicit geographical distribution limitation excluding 233 | those countries, so that distribution is permitted only in or among 234 | countries not thus excluded. In such case, this License incorporates 235 | the limitation as if written in the body of this License. 236 | 237 | 9. The Free Software Foundation may publish revised and/or new versions 238 | of the General Public License from time to time. Such new versions will 239 | be similar in spirit to the present version, but may differ in detail to 240 | address new problems or concerns. 241 | 242 | Each version is given a distinguishing version number. If the Program 243 | specifies a version number of this License which applies to it and "any 244 | later version", you have the option of following the terms and conditions 245 | either of that version or of any later version published by the Free 246 | Software Foundation. If the Program does not specify a version number of 247 | this License, you may choose any version ever published by the Free Software 248 | Foundation. 249 | 250 | 10. If you wish to incorporate parts of the Program into other free 251 | programs whose distribution conditions are different, write to the author 252 | to ask for permission. For software which is copyrighted by the Free 253 | Software Foundation, write to the Free Software Foundation; we sometimes 254 | make exceptions for this. Our decision will be guided by the two goals 255 | of preserving the free status of all derivatives of our free software and 256 | of promoting the sharing and reuse of software generally. 257 | 258 | NO WARRANTY 259 | 260 | 11. BECAUSE THE PROGRAM IS LICENSED FREE OF CHARGE, THERE IS NO WARRANTY 261 | FOR THE PROGRAM, TO THE EXTENT PERMITTED BY APPLICABLE LAW. EXCEPT WHEN 262 | OTHERWISE STATED IN WRITING THE COPYRIGHT HOLDERS AND/OR OTHER PARTIES 263 | PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED 264 | OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF 265 | MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. THE ENTIRE RISK AS 266 | TO THE QUALITY AND PERFORMANCE OF THE PROGRAM IS WITH YOU. SHOULD THE 267 | PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF ALL NECESSARY SERVICING, 268 | REPAIR OR CORRECTION. 269 | 270 | 12. IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING 271 | WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MAY MODIFY AND/OR 272 | REDISTRIBUTE THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, 273 | INCLUDING ANY GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING 274 | OUT OF THE USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED 275 | TO LOSS OF DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY 276 | YOU OR THIRD PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER 277 | PROGRAMS), EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE 278 | POSSIBILITY OF SUCH DAMAGES. 279 | 280 | END OF TERMS AND CONDITIONS 281 | 282 | How to Apply These Terms to Your New Programs 283 | 284 | If you develop a new program, and you want it to be of the greatest 285 | possible use to the public, the best way to achieve this is to make it 286 | free software which everyone can redistribute and change under these terms. 287 | 288 | To do so, attach the following notices to the program. It is safest 289 | to attach them to the start of each source file to most effectively 290 | convey the exclusion of warranty; and each file should have at least 291 | the "copyright" line and a pointer to where the full notice is found. 292 | 293 | 294 | Copyright (C) 295 | 296 | This program is free software; you can redistribute it and/or modify 297 | it under the terms of the GNU General Public License as published by 298 | the Free Software Foundation; either version 2 of the License, or 299 | (at your option) any later version. 300 | 301 | This program is distributed in the hope that it will be useful, 302 | but WITHOUT ANY WARRANTY; without even the implied warranty of 303 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 304 | GNU General Public License for more details. 305 | 306 | You should have received a copy of the GNU General Public License along 307 | with this program; if not, write to the Free Software Foundation, Inc., 308 | 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. 309 | 310 | Also add information on how to contact you by electronic and paper mail. 311 | 312 | If the program is interactive, make it output a short notice like this 313 | when it starts in an interactive mode: 314 | 315 | Gnomovision version 69, Copyright (C) year name of author 316 | Gnomovision comes with ABSOLUTELY NO WARRANTY; for details type `show w'. 317 | This is free software, and you are welcome to redistribute it 318 | under certain conditions; type `show c' for details. 319 | 320 | The hypothetical commands `show w' and `show c' should show the appropriate 321 | parts of the General Public License. Of course, the commands you use may 322 | be called something other than `show w' and `show c'; they could even be 323 | mouse-clicks or menu items--whatever suits your program. 324 | 325 | You should also get your employer (if you work as a programmer) or your 326 | school, if any, to sign a "copyright disclaimer" for the program, if 327 | necessary. Here is a sample; alter the names: 328 | 329 | Yoyodyne, Inc., hereby disclaims all copyright interest in the program 330 | `Gnomovision' (which makes passes at compilers) written by James Hacker. 331 | 332 | , 1 April 1989 333 | Ty Coon, President of Vice 334 | 335 | This General Public License does not permit incorporating your program into 336 | proprietary programs. If your program is a subroutine library, you may 337 | consider it more useful to permit linking proprietary applications with the 338 | library. If this is what you want to do, use the GNU Lesser General 339 | Public License instead of this License. 340 | -------------------------------------------------------------------------------- /Memory.cpp: -------------------------------------------------------------------------------- 1 | #include "Memory.h" 2 | 3 | unsigned long long Memory::BaseAddress(DWORD processID) 4 | { 5 | 6 | unsigned long long baseAddress = 0; 7 | HANDLE processHandle = OpenProcess(PROCESS_ALL_ACCESS, FALSE, processID); 8 | HMODULE* moduleArray; 9 | LPBYTE moduleArrayBytes; 10 | DWORD bytesRequired; 11 | 12 | if (processHandle) 13 | { 14 | if (EnumProcessModules(processHandle, NULL, 0, &bytesRequired)) 15 | { 16 | if (bytesRequired) 17 | { 18 | moduleArrayBytes = (LPBYTE)LocalAlloc(LPTR, bytesRequired); 19 | 20 | if (moduleArrayBytes) 21 | { 22 | unsigned int moduleCount; 23 | 24 | moduleCount = bytesRequired / sizeof(HMODULE); 25 | moduleArray = (HMODULE*)moduleArrayBytes; 26 | 27 | if (EnumProcessModules(processHandle, moduleArray, bytesRequired, &bytesRequired)) 28 | { 29 | baseAddress = (unsigned long long)moduleArray[0]; 30 | } 31 | 32 | LocalFree(moduleArrayBytes); 33 | } 34 | } 35 | } 36 | 37 | CloseHandle(processHandle); 38 | } 39 | 40 | return baseAddress; 41 | } 42 | 43 | DWORD Memory::GetProcessID(const std::wstring& pName) 44 | { 45 | PROCESSENTRY32 processInfo; 46 | processInfo.dwSize = sizeof(processInfo); 47 | 48 | HANDLE processesSnapshot = CreateToolhelp32Snapshot(TH32CS_SNAPPROCESS, NULL); 49 | if (processesSnapshot == INVALID_HANDLE_VALUE) { 50 | return 0; 51 | } 52 | 53 | Process32First(processesSnapshot, &processInfo); 54 | if (!pName.compare(processInfo.szExeFile)) 55 | { 56 | CloseHandle(processesSnapshot); 57 | return processInfo.th32ProcessID; 58 | } 59 | 60 | while (Process32Next(processesSnapshot, &processInfo)) 61 | { 62 | if (!pName.compare(processInfo.szExeFile)) 63 | { 64 | CloseHandle(processesSnapshot); 65 | return processInfo.th32ProcessID; 66 | } 67 | } 68 | 69 | CloseHandle(processesSnapshot); 70 | return 0; 71 | } -------------------------------------------------------------------------------- /Memory.h: -------------------------------------------------------------------------------- 1 | #include 2 | #include 3 | #include 4 | #include 5 | 6 | class Memory 7 | { 8 | public: 9 | unsigned long long BaseAddress(DWORD pid); 10 | DWORD GetProcessID(const std::wstring& pName); 11 | 12 | template 13 | T Read(HANDLE hProcess, uintptr_t address) 14 | { 15 | T buffer; 16 | ReadProcessMemory(hProcess, (LPCVOID)address, &buffer, sizeof(T), NULL); 17 | return buffer; 18 | } 19 | 20 | template 21 | void Write(HANDLE hProcess, uintptr_t address, T buffer) 22 | { 23 | WriteProcessMemory(hProcess, (LPVOID)address, &buffer, sizeof(buffer), NULL); 24 | } 25 | }; -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | # CaveiraESP-Shadow 2 | CaveiraESP for the latest update of CaveiraESP-Shadow, official unknowncheats thread: https://www.unknowncheats.me/forum/rainbow-six-siege/412672-caveira-esp-patchless.html 3 | 4 | ```c++ 5 | 6 | /* 7 | ██╗ ██╗ ██████╗ ████████╗██╗ ██╗███████╗██╗ ██╗███████╗ 8 | ██║ ██║██╔═══██╗╚══██╔══╝██║ ██╔╝██╔════╝╚██╗ ██╔╝██╔════╝ 9 | ███████║██║ ██║ ██║ █████╔╝ █████╗ ╚████╔╝ ███████╗ 10 | ██╔══██║██║ ██║ ██║ ██╔═██╗ ██╔══╝ ╚██╔╝ ╚════██║ 11 | ██║ ██║╚██████╔╝ ██║ ██║ ██╗███████╗ ██║ ███████║ 12 | ╚═╝ ╚═╝ ╚═════╝ ╚═╝ ╚═╝ ╚═╝╚══════╝ ╚═╝ ╚══════╝ 13 | 14 | Please change the current hotkey in the config.json if you 15 | need with hotkey you want use in game for activate cheats, 16 | the hotkey must be in a decimal code and you can get it from 17 | a big virtual key code list website. 18 | 19 | VKC Website -> https://help.mjtnet.com/article/262-virtual-key-codes 20 | */ 21 | ``` 22 | --------------------------------------------------------------------------------