• 大小: 66.36MB
    文件类型: .zip
    金币: 1
    下载: 0 次
    发布日期: 2022-06-28
  • 语言: 其他
  • 标签: 修改器  

资源简介

修改之后的CE可以获取进程,并对文件进行加密保存。层改了后缀

资源截图

代码片段和文件信息

/*
 * 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 

#ifndef __x86_64__
#include 
#endif


#include 

#include 

#include 
#include 
#include 

#include 

#ifndef __x86_64__
#include 
#include 
#endif


#ifdef __arm__
#include 

#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 WakeDebuggerThread()
{

  sem_post(&sem_DebugThreadEvent);
}

void mychildhandler(int signal struct siginfo *info void *context)
{
  //only call re-entrant functions

  int orig_errno = errno;
  WakeDebuggerThread();
  errno = orig_errno;


}

int GetDebugPort(HANDLE hProcess)
//return the debugserver fd
{
  if (GetHandleType(hProcess) == htProcesHandle )
  {
    PProcessData p=(PProcessData)GetPointerFromHandle(hProcess);
    if (p->isDebugged)
    {
      return p->debuggerServer;
    }
  }

  return -1;

}

int FindPaused

 属性            大小     日期    时间   名称
----------- ---------  ---------- -----  ----
     目录           0  2018-06-23 02:38  cheat-engine-6.8.1\
     文件          55  2018-06-23 02:38  cheat-engine-6.8.1\.gitignore
     目录           0  2019-03-15 15:56  cheat-engine-6.8.1\Cheat Engine\
     文件          51  2018-06-23 02:38  cheat-engine-6.8.1\Cheat Engine\aboutunit.ddp
     文件        6641  2019-03-15 15:54  cheat-engine-6.8.1\Cheat Engine\aboutunit.lfm
     文件         663  2019-03-15 15:54  cheat-engine-6.8.1\Cheat Engine\aboutunit.lrt
     文件        6509  2019-03-15 15:54  cheat-engine-6.8.1\Cheat Engine\aboutunit.pas
     文件        1511  2018-06-23 02:38  cheat-engine-6.8.1\Cheat Engine\AccessCheck.pas
     文件        6565  2018-06-23 02:38  cheat-engine-6.8.1\Cheat Engine\accessedmemory.lfm
     文件        1122  2018-06-23 02:38  cheat-engine-6.8.1\Cheat Engine\accessedmemory.lrt
     文件        6011  2018-06-23 02:38  cheat-engine-6.8.1\Cheat Engine\accessedmemory.pas
     文件          51  2018-06-23 02:38  cheat-engine-6.8.1\Cheat Engine\AddAddress.ddp
     文件         762  2018-06-23 02:38  cheat-engine-6.8.1\Cheat Engine\AddAddress.lrt
     文件        1266  2018-06-23 02:38  cheat-engine-6.8.1\Cheat Engine\addressedit.pas
     文件       67562  2018-06-23 02:38  cheat-engine-6.8.1\Cheat Engine\addresslist.pas
     文件        4890  2018-06-23 02:38  cheat-engine-6.8.1\Cheat Engine\addresslisteditor.pas
     文件        3350  2018-06-23 02:38  cheat-engine-6.8.1\Cheat Engine\addresslisthandlerunit.pas
     文件        9068  2018-06-23 02:38  cheat-engine-6.8.1\Cheat Engine\addressparser.pas
     文件          51  2018-06-23 02:38  cheat-engine-6.8.1\Cheat Engine\AdvancedOptionsUnit.ddp
     文件        8407  2018-06-23 02:38  cheat-engine-6.8.1\Cheat Engine\AdvancedOptionsUnit.lfm
     文件        1076  2018-06-23 02:38  cheat-engine-6.8.1\Cheat Engine\AdvancedOptionsUnit.lrt
     文件       25071  2018-06-23 02:38  cheat-engine-6.8.1\Cheat Engine\AdvancedOptionsUnit.pas
     目录           0  2018-06-23 02:38  cheat-engine-6.8.1\Cheat Engine\allochook\
     文件        1201  2018-06-23 02:38  cheat-engine-6.8.1\Cheat Engine\allochook\allochook.dpr
     文件        7772  2018-06-23 02:38  cheat-engine-6.8.1\Cheat Engine\allochook\allochook.lpi
     文件         590  2018-06-23 02:38  cheat-engine-6.8.1\Cheat Engine\allochook\allochook.lpr
     文件        9873  2018-06-23 02:38  cheat-engine-6.8.1\Cheat Engine\allochook\hookedfunctions.pas
     文件        4288  2018-06-23 02:38  cheat-engine-6.8.1\Cheat Engine\APIhooktemplatesettingsfrm.lfm
     文件         575  2018-06-23 02:38  cheat-engine-6.8.1\Cheat Engine\APIhooktemplatesettingsfrm.lrt
     文件        1152  2018-06-23 02:38  cheat-engine-6.8.1\Cheat Engine\APIhooktemplatesettingsfrm.pas
     文件       15438  2018-06-23 02:38  cheat-engine-6.8.1\Cheat Engine\asktorunluascript.lfm
............此处省略3735个文件信息

评论

共有 条评论