• 大小: 4.79M
    文件类型: .zip
    金币: 1
    下载: 0 次
    发布日期: 2024-04-19
  • 语言: C/C++
  • 标签: 搜索  源码  内存  

资源简介

CrySearch内存搜索器源码

资源截图

代码片段和文件信息

#include “AddressTable.h“
#include “BackendGlobalDef.h“

// Address table xml serialization logic.
void AddressTable::xmlize(xmlIO& s)
{
// Retrieve CrySearch‘s major and minor version number to flush into the file.
WORD major;
WORD minor;
CrySearchGetMajorMinorVersion(&major &minor);

const DWORD appname[] = {0x53797243 0x63726165 0x68}; //“CrySearch“
String appnameStr = (char*)appname;

String procName = mMemoryScanner->GetProcessName();

// Write the address table to the xml serializer.
s
(appnameStr + “Version“ Format(“%i.%i“ major minor))
(“ProcessName“ procName)
(“Entries“ this->mEntries)
(“MemoryDissections“ this->mDissections)
;
}

AddressTable::AddressTable()
{

}

AddressTable::~AddressTable()
{

}

// Removes a set of entries from the address table.
void AddressTable::Remove(const Vector& entries)
{
this->mEntries.Remove(entries);
}

// Removes all address table entries from the address table.
void AddressTable::Clear()
{
this->mEntries.Clear();
}

// Finds an entry in the table.
#ifdef _WIN64
const int AddressTable::Find(const __int64 address const CCryDataType valueType) const
{
const int count = this->mEntries.GetCount();
for (int i = 0; i < count; ++i)
{
if ((this->mEntries[i].Address == address) && this->mEntries[i].ValueType == valueType)
{
return i;
}
}

return -1;
}
#else
const int AddressTable::Find(const int address const CCryDataType valueType) const
{
const int count = this->mEntries.GetCount();
for (int i = 0; i < count; ++i)
{
if ((this->mEntries[i].Address == address) && this->mEntries[i].ValueType == valueType)
{
return i;
}
}

return -1;
}

#endif

// Returns the amount of address table entries in the table.
const int AddressTable::GetCount() const
{
return this->mEntries.GetCount();
}

// Returns the filename that the address table will save the file to.
const String& AddressTable::GetFileName() const
{
return this->mSavedFileName;
}

// Sets the filename that the address table file will save the file to.
void AddressTable::SetFileName(const char* str)
{
this->mSavedFileName = str;
}

// Retrieves a memory dissection entry at the specified index.
MemoryDissectionEntry* const AddressTable::GetDissection(const int index)
{
return &this->mDissections[index];
}

// Gets the amount of dissection entries currently in the address table.
const int AddressTable::GetDissectionCount() const
{
return this->mDissections.GetCount();
}

// Adds a new memory dissection entry to the address table.
void AddressTable::AddDissection(const char* pFriendlyName const SIZE_T baseAddress const DWORD memorySize)
{
this->mDissections.Add(MemoryDissectionEntry(pFriendlyName baseAddress memorySize));
}

// Removes a memory dissection entry from the address table and destroys associated resources.
void AddressTable::RemoveDissection(const int index)
{
// Remove the dissection entry from the list.
this->mDissections.Remove(index);
}

// Retr

 属性            大小     日期    时间   名称
----------- ---------  ---------- -----  ----
     目录           0  2019-05-05 08:02  evolution536-crysearch-memory-scanner-b9999bbc51b3\
     文件        2518  2019-05-05 08:02  evolution536-crysearch-memory-scanner-b9999bbc51b3\.gitattributes
     文件         958  2019-05-05 08:02  evolution536-crysearch-memory-scanner-b9999bbc51b3\.gitignore
     文件        9025  2019-05-05 08:02  evolution536-crysearch-memory-scanner-b9999bbc51b3\AddressTable.cpp
     文件        7387  2019-05-05 08:02  evolution536-crysearch-memory-scanner-b9999bbc51b3\AddressTable.h
     文件        3279  2019-05-05 08:02  evolution536-crysearch-memory-scanner-b9999bbc51b3\AsyncDisassembler.cpp
     文件         861  2019-05-05 08:02  evolution536-crysearch-memory-scanner-b9999bbc51b3\AsyncDisassembler.h
     文件        4978  2019-05-05 08:02  evolution536-crysearch-memory-scanner-b9999bbc51b3\BackendGlobalDef.h
     目录           0  2019-05-05 08:02  evolution536-crysearch-memory-scanner-b9999bbc51b3\Capstone\
     目录           0  2019-05-05 08:02  evolution536-crysearch-memory-scanner-b9999bbc51b3\Capstone\include\
     目录           0  2019-05-05 08:02  evolution536-crysearch-memory-scanner-b9999bbc51b3\Capstone\include\capstone\
     文件       18795  2019-05-05 08:02  evolution536-crysearch-memory-scanner-b9999bbc51b3\Capstone\include\capstone\arm.h
     文件       28542  2019-05-05 08:02  evolution536-crysearch-memory-scanner-b9999bbc51b3\Capstone\include\capstone\arm64.h
     文件       29510  2019-05-05 08:02  evolution536-crysearch-memory-scanner-b9999bbc51b3\Capstone\include\capstone\capstone.h
     文件        4386  2019-05-05 08:02  evolution536-crysearch-memory-scanner-b9999bbc51b3\Capstone\include\capstone\evm.h
     文件       12320  2019-05-05 08:02  evolution536-crysearch-memory-scanner-b9999bbc51b3\Capstone\include\capstone\m680x.h
     文件       13762  2019-05-05 08:02  evolution536-crysearch-memory-scanner-b9999bbc51b3\Capstone\include\capstone\m68k.h
     文件       17047  2019-05-05 08:02  evolution536-crysearch-memory-scanner-b9999bbc51b3\Capstone\include\capstone\mips.h
     文件        4010  2019-05-05 08:02  evolution536-crysearch-memory-scanner-b9999bbc51b3\Capstone\include\capstone\platform.h
     文件       25638  2019-05-05 08:02  evolution536-crysearch-memory-scanner-b9999bbc51b3\Capstone\include\capstone\ppc.h
     文件       11297  2019-05-05 08:02  evolution536-crysearch-memory-scanner-b9999bbc51b3\Capstone\include\capstone\sparc.h
     文件       14335  2019-05-05 08:02  evolution536-crysearch-memory-scanner-b9999bbc51b3\Capstone\include\capstone\systemz.h
     文件        8262  2019-05-05 08:02  evolution536-crysearch-memory-scanner-b9999bbc51b3\Capstone\include\capstone\tms320c64x.h
     文件       42841  2019-05-05 08:02  evolution536-crysearch-memory-scanner-b9999bbc51b3\Capstone\include\capstone\x86.h
     文件        4919  2019-05-05 08:02  evolution536-crysearch-memory-scanner-b9999bbc51b3\Capstone\include\capstone\xcore.h
     文件        3212  2019-05-05 08:02  evolution536-crysearch-memory-scanner-b9999bbc51b3\Capstone\include\platform.h
     目录           0  2019-05-05 08:02  evolution536-crysearch-memory-scanner-b9999bbc51b3\Capstone\include\windowsce\
     文件         303  2019-05-05 08:02  evolution536-crysearch-memory-scanner-b9999bbc51b3\Capstone\include\windowsce\intrin.h
     文件        3020  2019-05-05 08:02  evolution536-crysearch-memory-scanner-b9999bbc51b3\Capstone\include\windowsce\stdint.h
     目录           0  2019-05-05 08:02  evolution536-crysearch-memory-scanner-b9999bbc51b3\Capstone\lib\
     目录           0  2019-05-05 08:02  evolution536-crysearch-memory-scanner-b9999bbc51b3\Capstone\lib\x64\
............此处省略239个文件信息

评论

共有 条评论