Skip to content

Commit

Permalink
add x64 amd x86 subfolders under SymEx Dir
Browse files Browse the repository at this point in the history
  • Loading branch information
Lasha Khasaia committed Feb 15, 2019
1 parent a0116c8 commit 1ed8cef
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 0 deletions.
8 changes: 8 additions & 0 deletions idenLib/idenLib.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -91,15 +91,23 @@ void ProcessArchiveFile(const fs::path& sPath)
if (lib.isx64)
{
sigExt = L".sig64";
subFolder = L"x64";
}
else
{
sigExt = L".sig";
subFolder = L"x86";
}

const auto fileName = sPath.filename();
auto sigPath{symExPath};
sigPath += L"\\";
sigPath += subFolder;
if (!fs::exists(sigPath))
{
fs::create_directories(sigPath);
}
sigPath += L"\\";
sigPath += fileName;
sigPath += sigExt;

Expand Down
1 change: 1 addition & 0 deletions idenLib/utils.h
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@ namespace fs = std::filesystem;


inline auto sigExt = L".sig";
inline auto subFolder = L"x86";
inline auto zydisMode = ZYDIS_MACHINE_MODE_LEGACY_32;
inline auto zydisWidth = ZYDIS_ADDRESS_WIDTH_32;

Expand Down

0 comments on commit 1ed8cef

Please sign in to comment.