Skip to content

Commit

Permalink
Correcting typos, including one preventing a regexp from working as i…
Browse files Browse the repository at this point in the history
…ntended (fixes #33).
  • Loading branch information
JusticeRage committed Jun 29, 2018
1 parent b95f460 commit fd45274
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions manape/pe.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -468,7 +468,7 @@ unsigned int PE::rva_to_offset(boost::uint64_t rva) const

// Special case: PE with no sections
if (_sections.size() == 0) {
return rva & 0xFFFFFFFF; // If the file is bigger than 4Go, this assumption may not be true.
return rva & 0xFFFFFFFF; // If the file is bigger than 4GB, this assumption may not be true.
}

// Find the corresponding section.
Expand Down Expand Up @@ -1033,7 +1033,7 @@ bool PE::_parse_rich_header()
return false;
}

// Star searching for the RICH header at offset 0, but before the PE header.
// Start searching for the RICH header at offset 0, but before the PE header.
if (fseek(_file_handle.get(), 0, SEEK_SET)) {
return true;
}
Expand Down
2 changes: 1 addition & 1 deletion plugins/plugin_imports.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ enum REQUIREMENT { AT_LEAST_ONE = 1, AT_LEAST_TWO = 2, AT_LEAST_THREE = 3 };
std::string anti_debug =
"FindWindow(A|W)|(Zw|Nt)QuerySystemInformation|DbgBreakPoint|DbgPrint|"
"CheckRemoteDebuggerPresent|CreateToolhelp32Snapshot|Toolhelp32ReadProcessMemory|"
"OutputDebugString|SwitchToThread|NtQueryInformationProcess" // Standard anti-debug API calls
"OutputDebugString|SwitchToThread|NtQueryInformationProcess|" // Standard anti-debug API calls
"QueryPerformanceCounter"; // Techniques based on timing. GetTickCount ignored (too many false positives)

std::string vanilla_injection = "VirtualAlloc.*|WriteProcessMemory|CreateRemoteThread(Ex)?|OpenProcess";
Expand Down

0 comments on commit fd45274

Please sign in to comment.