#include <cstdlib>
#include <stdio.h>
#include <unistd.h>
#include <stdlib.h>
#include <fcntl.h>
#include <dirent.h>
#include "KittyMemory/obfuscate.h"
#include "KittyMemory/MemoryPatch.h"
#include "KittyMemory/KittyScanner.h"
#include "MemoryTools.h"
using namespace std;
typedef char PACKAGENAME;
void KONTOLODON()
{
	system("su -c setenforce 0");
}
bool isDebug = true;			// ubah false buat hide printf
void doPatch(uintptr_t offset, string replace)
{
	MemoryPatch doPatch =
		MemoryPatch::createWithHex(oxorany("libUE4.so"), offset, std::move(replace));
	if (doPatch.isValid())
	{
		doPatch.Modify();
		if (isDebug)
			printf("Target address: %p\n", doPatch.get_TargetAddress());
	}
}
void doBypass(uintptr_t offset, string replace)
{
	MemoryPatch doBypassAnogs =
		MemoryPatch::createWithHex(oxorany("libanogs.so"), offset, std::move(replace));
	if (doBypassAnogs.isValid())
	{
		doBypassAnogs.Modify();
		if (isDebug)
			printf("Target address: %p\n", doBypassAnogs.get_TargetAddress());
	}
}
void doBypassCrashSight(uintptr_t offset, string replace)
{
	MemoryPatch doBypassCrashSight =
		MemoryPatch::createWithHex(oxorany("libCrashSight.so"), offset, std::move(replace));
	if (doBypassCrashSight.isValid())
	{
		doBypassCrashSight.Modify();
		if (isDebug)
			printf("Target address: %p\n", doBypassCrashSight.get_TargetAddress());
	}
}
void doBypasstprt(uintptr_t offset, string replace)
{
	MemoryPatch doBypasstprt =
		MemoryPatch::createWithHex(oxorany("libtprt.so"), offset, std::move(replace));
	if (doBypasstprt.isValid())
	{
		doBypasstprt.Modify();
		if (isDebug)
			printf("Target address: %p\n", doBypasstprt.get_TargetAddress());
	}
}
void doBypasstgpa(uintptr_t offset, string replace)
{
	MemoryPatch doBypasstgpa = MemoryPatch::createWithHex(oxorany("libtgpa.so"), offset,
														  std::move(replace));
	if (doBypasstgpa.isValid())
	{
		doBypasstgpa.Modify();
		if (isDebug)
			printf("Target address: %p\n", doBypasstgpa.get_TargetAddress());
	}
}
void doBypassTDataMaster(uintptr_t offset, string replace)
{
	MemoryPatch doBypassTDataMaster =
		MemoryPatch::createWithHex(oxorany("libTDataMaster.so"), offset, std::move(replace));
	if (doBypassTDataMaster.isValid())
	{
		doBypassTDataMaster.Modify();
		if (isDebug)
			printf("Target address: %p\n", doBypassTDataMaster.get_TargetAddress());
	}
}
void doBypassgcloudcore(uintptr_t offset, string replace)
{
	MemoryPatch doBypassgcloudcore =
		MemoryPatch::createWithHex(oxorany("libgcloudcore.so"), offset, std::move(replace));
	if (doBypassgcloudcore.isValid())
	{
		doBypassgcloudcore.Modify();
		if (isDebug)
			printf("Target address: %p\n", doBypassgcloudcore.get_TargetAddress());
	}
}
void doBypassGcloud(uintptr_t offset, string replace)
{
	MemoryPatch doBypassGcloud =
		MemoryPatch::createWithHex(oxorany("libgcloud.so"), offset, std::move(replace));
	if (doBypassGcloud.isValid())
	{
		doBypassGcloud.Modify();
		if (isDebug)
			printf("Target address: %p\n", doBypassGcloud.get_TargetAddress());
	}
}
void doBypassAnort(uintptr_t offset, string replace)
{
	MemoryPatch doBypassAnort =
		MemoryPatch::createWithHex(oxorany("libanort.so"), offset, std::move(replace));
	if (doBypassAnort.isValid())
	{
		doBypassAnort.Modify();
		if (isDebug)
			printf("Target address: %p\n", doBypassAnort.get_TargetAddress());
	}
}
int main(int argc, char *argv[]) {
    FILE *fp;
    ProcMap il2cppMap;
    auto game = string(argv[1]);
    KittyMemory::getPid(std::string(game).c_str());
    KONTOLODON();
		do {
                        il2cppMap = KittyMemory::getLibraryMap(oxorany("libUE4.so"));
                    } while (!il2cppMap.isValid());
                    doPatch(oxorany(0x7917bdc), oxorany("00 00 A0 E3 1E FF 2F E1"));
					doPatch(oxorany(0x7918854), oxorany("00 00 A0 E3 1E FF 2F E1"));
					doPatch(oxorany(0x7918b9c), oxorany("00 00 A0 E3 1E FF 2F E1"));
					doPatch(oxorany(0x7918bc0), oxorany("00 00 A0 E3 1E FF 2F E1"));
					doPatch(oxorany(0x7917f30), oxorany("00 00 A0 E3 1E FF 2F E1"));
   do {
                        il2cppMap = KittyMemory::getLibraryMap(oxorany("libanogs.so"));
                    } while (!il2cppMap.isValid());
                    doBypass(oxorany(0x3a9fb4), oxorany("00 00 A0 E3 1E FF 2F E1"));
					doBypass(oxorany(0x3a9fb0), oxorany("00 00 A0 E3 1E FF 2F E1"));
					doBypass(oxorany(0x3a9fac), oxorany("00 00 A0 E3 1E FF 2F E1"));
					doBypass(oxorany(0x3a9fa4), oxorany("00 00 A0 E3 1E FF 2F E1"));
					doBypass(oxorany(0x3a9f98), oxorany("00 00 A0 E3 1E FF 2F E1"));
					doBypass(oxorany(0x3a9f94), oxorany("00 00 A0 E3 1E FF 2F E1"));
					doBypass(oxorany(0x3a9f90), oxorany("00 00 A0 E3 1E FF 2F E1"));
					doBypass(oxorany(0x3a9f88), oxorany("00 00 A0 E3 1E FF 2F E1"));
					doBypass(oxorany(0x3a9f80), oxorany("00 00 A0 E3 1E FF 2F E1"));
					doBypass(oxorany(0x3a9f78), oxorany("00 00 A0 E3 1E FF 2F E1"));
					doBypass(oxorany(0x3a9de4), oxorany("00 00 A0 E3 1E FF 2F E1"));
					doBypass(oxorany(0x3a9de0), oxorany("00 00 A0 E3 1E FF 2F E1"));
					doBypass(oxorany(0x3a9ddc), oxorany("00 00 A0 E3 1E FF 2F E1"));
					doBypass(oxorany(0x3a9dd8), oxorany("00 00 A0 E3 1E FF 2F E1"));
					doBypass(oxorany(0x3a9dd0), oxorany("00 00 A0 E3 1E FF 2F E1"));
					doBypass(oxorany(0x3a9dc4), oxorany("00 00 A0 E3 1E FF 2F E1"));
					doBypass(oxorany(0x3a9e0c), oxorany("00 00 A0 E3 1E FF 2F E1"));
					doBypass(oxorany(0x3a9dfc), oxorany("00 00 A0 E3 1E FF 2F E1"));
					puts("  LOGO BYPASS [✓] | Telegram: Wis");
		            puts("Channel: @wisxHax ");
	return 0;
}
 Write, Run & Share C++ code online using OneCompiler's C++ online compiler for free. It's one of the robust, feature-rich online compilers for C++ language, running on the latest version 17. Getting started with the OneCompiler's C++ compiler is simple and pretty fast. The editor shows sample boilerplate code  when you choose language as C++ and start coding!
OneCompiler's C++ online compiler supports stdin and users can give inputs to programs using the STDIN textbox under the I/O tab. Following is a sample program which takes name as input and print your name with hello.
#include <iostream>
#include <string>
using namespace std;
int main() 
{
    string name;
    cout << "Enter name:";
    getline (cin, name);
    cout << "Hello " << name;
    return 0;
}
C++ is a widely used middle-level programming language.
When ever you want to perform a set of operations based on a condition If-Else is used.
if(conditional-expression) {
   //code
}
else {
   //code
}
You can also use if-else for nested Ifs and If-Else-If ladder when multiple conditions are to be performed on a single variable.
Switch is an alternative to If-Else-If ladder.
switch(conditional-expression){    
case value1:    
 // code    
 break;  // optional  
case value2:    
 // code    
 break;  // optional  
......    
    
default:     
 code to be executed when all the above cases are not matched;    
} 
For loop is used to iterate a set of statements based on a condition.
for(Initialization; Condition; Increment/decrement){  
  //code  
} 
While is also used to iterate a set of statements based on a condition. Usually while is preferred when number of iterations are not known in advance.
while (condition) {  
// code 
}  
Do-while is also used to iterate a set of statements based on a condition. It is mostly used when you need to execute the statements atleast once.
do {  
 // code 
} while (condition); 
Function is a sub-routine which contains set of statements. Usually functions are written when multiple calls are required to same set of statements which increases re-usuability and modularity. Function gets run only when it is called.
return_type function_name(parameters);
function_name (parameters)
return_type function_name(parameters) {  
 // code
}