• 大小: 7.89M
    文件类型: .rar
    金币: 1
    下载: 0 次
    发布日期: 2024-04-19
  • 语言: C/C++
  • 标签: Engine  EA  en  源码  

资源简介


资源截图

代码片段和文件信息

/*
 * api.c
 *
 *  Created on: Jul 20 2011
 *      Author: erich
 *
 *      This unit will implement the api‘s CE uses
 *      This will be the main point of interest when porting to another system
 */

//#define _XOPEN_SOURCE 500

//todo for in the far future: Hook syscalls

#define _FILE_OFFSET_BITS 64
#define _LARGEFILE64_SOURCE

#include 
#include 

#include 


#include 
#include 
#include 
#include 

#include 
#include 
#include 
#include 
#include 
#include 
#include 
#include 

#include 

#include 
#include 
#include 
#include 
#include 

#ifndef __x86_64__
//#include 
#endif


#include 

#include 

#include 
#include 
#include 

#include 

#ifndef __x86_64__
#include 
//#include 
#endif


#ifdef __arm__
  #ifndef __ANDROID__
    #include 
  #endif
#endif

//blatantly stolen from the kernel source
#define PTRACE_GETHBPREGS 29
#define PTRACE_SETHBPREGS 30

/* Breakpoint */
#define ARM_BREAKPOINT_EXECUTE  0

/* Watchpoints */
#define ARM_BREAKPOINT_LOAD     1
#define ARM_BREAKPOINT_STORE    2

/* Privilege Levels */
#define ARM_BREAKPOINT_PRIV     1
#define ARM_BREAKPOINT_USER     2

/* Lengths */
#define ARM_BREAKPOINT_LEN_1    0x1
#define ARM_BREAKPOINT_LEN_2    0x3
#define ARM_BREAKPOINT_LEN_4    0xf
#define ARM_BREAKPOINT_LEN_8    0xff

static inline unsigned int encode_ctrl_reg(int mismatch int len int type int privilege int enabled)
{
        return (mismatch << 22) | (len << 5) | (type << 3) | (privilege << 1) | enabled;
}

#ifndef __ANDROID__
  #if defined(__i386__) || defined(__x86_64__)
    #include 
  #endif
#endif



#include “api.h“
#include “porthelp.h“
#include “ceserver.h“
#include “threads.h“
#include “symbols.h“
#include “context.h“

//#include 
sem_t sem_DebugThreadEvent;

pthread_mutex_t memorymutex;
pthread_mutex_t debugsocketmutex;
//pthread_mutex_t mut_RPM;

typedef struct
{
  int ReferenceCount;
  int processListIterator;
  int processCount;
  PProcessListEntry processList;
} ProcessList *PProcessList;

typedef struct
{
  int ReferenceCount;
  int moduleListIterator;
  int moduleCount;
  PModuleListEntry moduleList;
} ModuleList *PModuleList;

int VerboseLevel=0;

int MEMORY_SEARCH_OPTION = 0;
int ATTACH_PID = 0;
unsigned char SPECIFIED_ARCH = 9;

//Implementation for shared library version ceserver.
int debug_log(const char * format  ...)
{
  va_list list;
  va_start(listformat);
  int ret = vprintf(formatlist);

  #ifdef __ANDROID__
    LOGD(formatlist);
  #endif
  va_end(list);
  return ret;
}

//Implementation for consistency with Android Studio.
long safe_ptrace(int request pid_t pid void * addr void * data)
{
  int result

 属性            大小     日期    时间   名称
----------- ---------  ---------- -----  ----

     文件        151  2021-01-08 14:59  cheat-engine-master\Cheat Engine\lua53\lua53\README

     文件        972  2021-01-08 14:59  cheat-engine-master\lua\etc\README

     文件       1378  2021-01-08 14:59  cheat-engine-master\lua\README

     文件       3125  2021-01-08 14:59  cheat-engine-master\README.md

     文件         36  2021-01-08 14:59  cheat-engine-master\Cheat Engine\plugin\QWS\Output\Readme.txt

     文件         58  2021-01-08 14:59  cheat-engine-master\Cheat Engine\help\Readme.txt

     文件         98  2021-01-08 14:59  cheat-engine-master\Cheat Engine\debuggertest\readme.txt

     文件        598  2021-01-08 14:59  cheat-engine-master\dbvm\docs\readme.txt

     文件       1305  2021-01-08 14:59  cheat-engine-master\Cheat Engine\Direct x mess\CED3D9Hook\ReadMe.txt

     文件       1773  2021-01-08 14:59  cheat-engine-master\Cheat Engine\Direct x mess\DXHookbase\ReadMe.txt

     文件       1779  2021-01-08 14:59  cheat-engine-master\Cheat Engine\Direct x mess\CED3D10Hook\ReadMe.txt

     文件       1779  2021-01-08 14:59  cheat-engine-master\Cheat Engine\Direct x mess\CED3D11Hook\ReadMe.txt

     文件       5293  2021-01-08 14:59  cheat-engine-master\Cheat Engine\release\readme.txt

     文件     184913  2021-01-08 14:59  cheat-engine-master\Cheat Engine\bin\celua.txt

     文件       5987  2021-01-08 14:59  cheat-engine-master\Cheat Engine\docs\ceshare.txt

     文件       1882  2021-01-08 14:59  cheat-engine-master\Cheat Engine\bin\commonmodulelist.txt

     文件        130  2021-01-08 14:59  cheat-engine-master\DBKKernel\compileinfo.txt

     文件        364  2021-01-08 14:59  cheat-engine-master\Cheat Engine\designerimagelist.txt

     文件        104  2021-01-08 14:59  cheat-engine-master\Cheat Engine\bin\donottrace.txt

     文件       1767  2021-01-08 14:59  cheat-engine-master\Cheat Engine\bin\languages\How to add languages.txt

     文件       6036  2021-01-08 14:59  cheat-engine-master\Cheat Engine\release\License.txt

     文件         11  2021-01-08 14:59  cheat-engine-master\Cheat Engine\Direct x mess\DXHookbase\log.txt

     文件          0  2021-01-08 14:59  cheat-engine-master\Cheat Engine\bin\autorun\Lua files in this folder get executed automatically.txt

     文件          7  2021-01-08 14:59  cheat-engine-master\Cheat Engine\bin\languages\ru_RU\name.txt

     文件         97  2021-01-08 14:59  cheat-engine-master\Cheat Engine\bin\languages\it_IT\name.txt

     文件       1980  2021-01-08 14:59  cheat-engine-master\Cheat Engine\docs\todo.txt

     文件       6855  2021-01-08 14:59  cheat-engine-master\dbvm\vmm\docs\vmcall.txt

     文件         80  2021-01-08 14:59  cheat-engine-master\Cheat Engine\sfx\level1\Why.txt

     文件       1762  2021-01-08 14:59  cheat-engine-master\Cheat Engine\ceserver\extension\.settings\language.settings.xml

     文件        283  2021-01-08 14:59  cheat-engine-master\Cheat Engine\bin\languages\language.ini

............此处省略2022个文件信息

评论

共有 条评论