changed name to vmemu

merge-requests/1/head
_xeroxz 4 years ago
parent 7598920355
commit 3e28fedf4d

3
.gitmodules vendored

@ -1,3 +1,6 @@
[submodule "dependencies/unicorn"] [submodule "dependencies/unicorn"]
path = dependencies/unicorn path = dependencies/unicorn
url = https://github.com/unicorn-engine/unicorn.git url = https://github.com/unicorn-engine/unicorn.git
[submodule "dependencies/cli-parser"]
path = dependencies/cli-parser
url = https://githacks.org/_xeroxz/cli-parser.git

@ -0,0 +1 @@
Subproject commit 1aedaf8bb7f383f54b7cd498767611535526da85

@ -1,35 +0,0 @@

Microsoft Visual Studio Solution File, Format Version 12.00
# Visual Studio Version 16
VisualStudioVersion = 16.0.30907.101
MinimumVisualStudioVersion = 10.0.40219.1
Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "uc-tracer", "uc-tracer\uc-tracer.vcxproj", "{B94A9F63-113F-4F80-A962-2E949A0D4826}"
EndProject
Global
GlobalSection(SolutionConfigurationPlatforms) = preSolution
Debug|Win32 = Debug|Win32
Debug|x64 = Debug|x64
Debug|x86 = Debug|x86
Release|Win32 = Release|Win32
Release|x64 = Release|x64
Release|x86 = Release|x86
EndGlobalSection
GlobalSection(ProjectConfigurationPlatforms) = postSolution
{B94A9F63-113F-4F80-A962-2E949A0D4826}.Debug|Win32.ActiveCfg = Release|x64
{B94A9F63-113F-4F80-A962-2E949A0D4826}.Debug|Win32.Build.0 = Release|x64
{B94A9F63-113F-4F80-A962-2E949A0D4826}.Debug|x64.ActiveCfg = Release|x64
{B94A9F63-113F-4F80-A962-2E949A0D4826}.Debug|x64.Build.0 = Release|x64
{B94A9F63-113F-4F80-A962-2E949A0D4826}.Debug|x86.ActiveCfg = Release|x64
{B94A9F63-113F-4F80-A962-2E949A0D4826}.Debug|x86.Build.0 = Release|x64
{B94A9F63-113F-4F80-A962-2E949A0D4826}.Release|Win32.ActiveCfg = Release|x64
{B94A9F63-113F-4F80-A962-2E949A0D4826}.Release|x64.ActiveCfg = Release|x64
{B94A9F63-113F-4F80-A962-2E949A0D4826}.Release|x64.Build.0 = Release|x64
{B94A9F63-113F-4F80-A962-2E949A0D4826}.Release|x86.ActiveCfg = Release|x64
EndGlobalSection
GlobalSection(SolutionProperties) = preSolution
HideSolutionNode = FALSE
EndGlobalSection
GlobalSection(ExtensibilityGlobals) = postSolution
SolutionGuid = {E29AF102-41DF-4103-9BBF-D88331E8BF11}
EndGlobalSection
EndGlobal

@ -1,16 +0,0 @@
#include <iostream>
#include <unicorn/unicorn.h>
int __cdecl main(int argc, const char* argv[])
{
uc_err err;
uc_engine* uc;
err = uc_open(UC_ARCH_X86, UC_MODE_64, &uc);
if (err)
{
std::printf("[!] uc open failed with: %u\n", err);
return -1;
}
}

@ -0,0 +1,22 @@

Microsoft Visual Studio Solution File, Format Version 12.00
# Visual Studio Version 16
VisualStudioVersion = 16.0.30907.101
MinimumVisualStudioVersion = 10.0.40219.1
Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "vmemu", "vmemu\vmemu.vcxproj", "{B94A9F63-113F-4F80-A962-2E949A0D4826}"
EndProject
Global
GlobalSection(SolutionConfigurationPlatforms) = preSolution
Release|x64 = Release|x64
EndGlobalSection
GlobalSection(ProjectConfigurationPlatforms) = postSolution
{B94A9F63-113F-4F80-A962-2E949A0D4826}.Release|x64.ActiveCfg = Release|x64
{B94A9F63-113F-4F80-A962-2E949A0D4826}.Release|x64.Build.0 = Release|x64
EndGlobalSection
GlobalSection(SolutionProperties) = preSolution
HideSolutionNode = FALSE
EndGlobalSection
GlobalSection(ExtensibilityGlobals) = postSolution
SolutionGuid = {E29AF102-41DF-4103-9BBF-D88331E8BF11}
EndGlobalSection
EndGlobal

@ -0,0 +1,31 @@
#include <iostream>
#include <unicorn/unicorn.h>
#include <cli-parser.hpp>
int __cdecl main(int argc, const char* argv[])
{
argparse::argument_parser_t parser("uc-tracer",
"VMProtect 2 Virtual Instruction Tracer Using Unicorn");
parser.add_argument()
.name("--vmentry").required(true)
.description("relative virtual address to a vm entry...");
parser.add_argument()
.name("--vmpbin").required(true)
.description("path to unpacked virtualized binary...");
parser.add_argument()
.name("--imagebase").required("true")
.description("image base from optional PE header...");
auto result = parser.parse(argc, argv);
if (result)
{
std::printf("[!] error parsing commandline arguments... reason = %s\n",
result.what().c_str());
return -1;
}
}

@ -12,6 +12,7 @@
<ProjectGuid>{b94a9f63-113f-4f80-a962-2e949a0d4826}</ProjectGuid> <ProjectGuid>{b94a9f63-113f-4f80-a962-2e949a0d4826}</ProjectGuid>
<RootNamespace>uctracer</RootNamespace> <RootNamespace>uctracer</RootNamespace>
<WindowsTargetPlatformVersion>10.0</WindowsTargetPlatformVersion> <WindowsTargetPlatformVersion>10.0</WindowsTargetPlatformVersion>
<ProjectName>vmemu</ProjectName>
</PropertyGroup> </PropertyGroup>
<Import Project="$(VCTargetsPath)\Microsoft.Cpp.Default.props" /> <Import Project="$(VCTargetsPath)\Microsoft.Cpp.Default.props" />
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|x64'" Label="Configuration"> <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|x64'" Label="Configuration">
@ -32,7 +33,7 @@
<PropertyGroup Label="UserMacros" /> <PropertyGroup Label="UserMacros" />
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|x64'"> <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|x64'">
<LinkIncremental>false</LinkIncremental> <LinkIncremental>false</LinkIncremental>
<IncludePath>$(Project)..\dependencies\unicorn\include;$(IncludePath)</IncludePath> <IncludePath>$(Project)..\dependencies\cli-parser;$(Project)..\dependencies\unicorn\include;$(IncludePath)</IncludePath>
</PropertyGroup> </PropertyGroup>
<ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Release|x64'"> <ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Release|x64'">
<ClCompile> <ClCompile>
@ -42,6 +43,7 @@
<SDLCheck>true</SDLCheck> <SDLCheck>true</SDLCheck>
<PreprocessorDefinitions>NDEBUG;_CONSOLE;_CRT_SECURE_NO_WARNINGS;%(PreprocessorDefinitions)</PreprocessorDefinitions> <PreprocessorDefinitions>NDEBUG;_CONSOLE;_CRT_SECURE_NO_WARNINGS;%(PreprocessorDefinitions)</PreprocessorDefinitions>
<ConformanceMode>true</ConformanceMode> <ConformanceMode>true</ConformanceMode>
<LanguageStandard>stdcpp17</LanguageStandard>
</ClCompile> </ClCompile>
<Link> <Link>
<SubSystem>Console</SubSystem> <SubSystem>Console</SubSystem>
@ -55,6 +57,7 @@
<ClCompile Include="main.cpp" /> <ClCompile Include="main.cpp" />
</ItemGroup> </ItemGroup>
<ItemGroup> <ItemGroup>
<ClInclude Include="..\dependencies\cli-parser\cli-parser.hpp" />
<ClInclude Include="..\dependencies\unicorn\include\list.h" /> <ClInclude Include="..\dependencies\unicorn\include\list.h" />
<ClInclude Include="..\dependencies\unicorn\include\qemu.h" /> <ClInclude Include="..\dependencies\unicorn\include\qemu.h" />
<ClInclude Include="..\dependencies\unicorn\include\uc_priv.h" /> <ClInclude Include="..\dependencies\unicorn\include\uc_priv.h" />

@ -55,5 +55,8 @@
<ClInclude Include="..\dependencies\unicorn\include\unicorn\x86.h"> <ClInclude Include="..\dependencies\unicorn\include\unicorn\x86.h">
<Filter>Header Files\unicorn\unicorn</Filter> <Filter>Header Files\unicorn\unicorn</Filter>
</ClInclude> </ClInclude>
<ClInclude Include="..\dependencies\cli-parser\cli-parser.hpp">
<Filter>Header Files</Filter>
</ClInclude>
</ItemGroup> </ItemGroup>
</Project> </Project>
Loading…
Cancel
Save