Skip to content

Commit

Permalink
[BUGFIX] Fixed simultanous matching of patterns and stats for shellco…
Browse files Browse the repository at this point in the history
…de (shellc B)
  • Loading branch information
hasherezade committed Jul 10, 2023
1 parent 4f10849 commit 05cc926
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions scanners/workingset_scanner.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,11 @@ bool pesieve::WorkingSetScanner::checkAreaContent(IN MemPageData& memPage, OUT W
if (codeMatcher.findMatches(my_report->stats, my_report->area_info)) {
code = true;
}
else {
if (this->args.shellcode == SHELLC_PATTERNS_AND_STATS) {
code = false; //nullify the previous detection, because both should match
}
}

if (!code && (this->args.obfuscated != OBFUSC_NONE)) {
int rules = 0;
Expand Down

0 comments on commit 05cc926

Please sign in to comment.