le crypteur build maintenant
This commit is contained in:
@@ -78,20 +78,20 @@
|
||||
</PropertyGroup>
|
||||
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">
|
||||
<LinkIncremental>true</LinkIncremental>
|
||||
<IncludePath>$(IncludePath)</IncludePath>
|
||||
<IncludePath>$(SolutionDir)Zydis;$(IncludePath)</IncludePath>
|
||||
<AllProjectIncludesArePublic>false</AllProjectIncludesArePublic>
|
||||
<LibraryPath>$(LibraryPath)</LibraryPath>
|
||||
<LibraryPath>$(LibraryPath);$(SolutionDir)lib</LibraryPath>
|
||||
</PropertyGroup>
|
||||
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|x64'">
|
||||
<LinkIncremental>false</LinkIncremental>
|
||||
<IncludePath>$(IncludePath)</IncludePath>
|
||||
<IncludePath>$(SolutionDir)Zydis;$(IncludePath)</IncludePath>
|
||||
<AllProjectIncludesArePublic>false</AllProjectIncludesArePublic>
|
||||
<LibraryPath>$(VC_LibraryPath_x64);$(WindowsSDK_LibraryPath_x64);</LibraryPath>
|
||||
<LibraryPath>$(VC_LibraryPath_x64);$(WindowsSDK_LibraryPath_x64);;$(SolutionDir)lib</LibraryPath>
|
||||
</PropertyGroup>
|
||||
<PropertyGroup Label="Vcpkg">
|
||||
<VcpkgEnabled>true</VcpkgEnabled>
|
||||
<VcpkgManifestInstall>true</VcpkgManifestInstall>
|
||||
<VcpkgAutoLink>true</VcpkgAutoLink>
|
||||
<VcpkgEnabled>false</VcpkgEnabled>
|
||||
<VcpkgManifestInstall>false</VcpkgManifestInstall>
|
||||
<VcpkgAutoLink>false</VcpkgAutoLink>
|
||||
</PropertyGroup>
|
||||
<ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">
|
||||
<ClCompile>
|
||||
@@ -127,12 +127,13 @@
|
||||
<SDLCheck>true</SDLCheck>
|
||||
<PreprocessorDefinitions>_DEBUG;_CONSOLE;%(PreprocessorDefinitions);_CRT_SECURE_NO_WARNINGS</PreprocessorDefinitions>
|
||||
<ConformanceMode>true</ConformanceMode>
|
||||
<LanguageStandard>stdcpp17</LanguageStandard>
|
||||
<LanguageStandard>stdcpplatest</LanguageStandard>
|
||||
<LanguageStandard_C>stdc17</LanguageStandard_C>
|
||||
</ClCompile>
|
||||
<Link>
|
||||
<SubSystem>Console</SubSystem>
|
||||
<GenerateDebugInformation>true</GenerateDebugInformation>
|
||||
<AdditionalDependencies>%(AdditionalDependencies)</AdditionalDependencies>
|
||||
<AdditionalDependencies>Zydis_debug.lib;%(AdditionalDependencies)</AdditionalDependencies>
|
||||
</Link>
|
||||
</ItemDefinitionGroup>
|
||||
<ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Release|x64'">
|
||||
@@ -143,7 +144,8 @@
|
||||
<SDLCheck>true</SDLCheck>
|
||||
<PreprocessorDefinitions>NDEBUG;_CONSOLE;%(PreprocessorDefinitions);_CRT_SECURE_NO_WARNINGS;TRIALDLL_EXPORT</PreprocessorDefinitions>
|
||||
<ConformanceMode>true</ConformanceMode>
|
||||
<LanguageStandard>stdcpp17</LanguageStandard>
|
||||
<LanguageStandard>stdcpplatest</LanguageStandard>
|
||||
<LanguageStandard_C>stdc17</LanguageStandard_C>
|
||||
</ClCompile>
|
||||
<Link>
|
||||
<SubSystem>Console</SubSystem>
|
||||
|
||||
54198
Crypter/Zydis/Zydis.c
Normal file
54198
Crypter/Zydis/Zydis.c
Normal file
File diff suppressed because one or more lines are too long
11883
Crypter/Zydis/Zydis.h
Normal file
11883
Crypter/Zydis/Zydis.h
Normal file
File diff suppressed because it is too large
Load Diff
BIN
Crypter/lib/Zydis_debug.lib
Normal file
BIN
Crypter/lib/Zydis_debug.lib
Normal file
Binary file not shown.
BIN
Crypter/lib/Zydis_release.lib
Normal file
BIN
Crypter/lib/Zydis_release.lib
Normal file
Binary file not shown.
@@ -7,9 +7,8 @@
|
||||
#include <filesystem>
|
||||
#include <inttypes.h>
|
||||
|
||||
#include <Zydis/Zydis.h>
|
||||
#include <Zycore/LibC.h>
|
||||
#include <Zycore/API/Memory.h>
|
||||
#define ZYDIS_STATIC_BUILD
|
||||
#include <Zydis.h>
|
||||
|
||||
#include "random.hpp"
|
||||
#include "utils.hpp"
|
||||
@@ -220,20 +219,19 @@ int main(int argc, char* argv[]) {
|
||||
|
||||
if (changed) {
|
||||
printf(" Instruction %s changed\n", buffer);
|
||||
// Encode the instruction back to raw bytes.
|
||||
uint8_t new_bytes[ZYDIS_MAX_INSTRUCTION_LENGTH];
|
||||
ZyanUSize new_instr_length = sizeof(new_bytes);
|
||||
ZydisEncoderEncodeInstruction(&enc_req, new_bytes, &new_instr_length);
|
||||
|
||||
// Decode and print the new instruction. We re-use the old buffers.
|
||||
ZydisDecoderDecodeFull(&decoder, new_bytes, new_instr_length, &instruction,
|
||||
operands);
|
||||
ZydisFormatterFormatInstruction(&formatter, &instruction, operands,
|
||||
instruction.operand_count_visible, buffer, sizeof(buffer), 0, NULL);
|
||||
printf(" New instruction: %s\n", buffer);
|
||||
}
|
||||
|
||||
// Encode the instruction back to raw bytes.
|
||||
uint8_t new_bytes[ZYDIS_MAX_INSTRUCTION_LENGTH];
|
||||
ZyanUSize new_instr_length = sizeof(new_bytes);
|
||||
ZydisEncoderEncodeInstruction(&enc_req, new_bytes, &new_instr_length);
|
||||
|
||||
// Decode and print the new instruction. We re-use the old buffers.
|
||||
ZydisDecoderDecodeFull(&decoder, new_bytes, new_instr_length, &instruction,
|
||||
operands);
|
||||
ZydisFormatterFormatInstruction(&formatter, &instruction, operands,
|
||||
instruction.operand_count_visible, buffer, sizeof(buffer), 0, NULL);
|
||||
printf(" New instruction: %s\n", buffer);
|
||||
|
||||
offset += instruction.length;
|
||||
runtime_address += instruction.length;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user