From 4b220313c8cf84fbbcb5984845b8668b263719d6 Mon Sep 17 00:00:00 2001
From: hasherezade
Date: Thu, 12 Sep 2024 00:34:31 +0000
Subject: [PATCH] deploy: e2cad9312a81075757e5b88e01a102071e77424a
---
classpesieve_1_1_thread_scanner.html | 2 +-
scanner_8cpp_source.html | 2 +-
thread__scanner_8cpp_source.html | 137 ++++++++++++++-------------
thread__scanner_8h_source.html | 2 +-
4 files changed, 73 insertions(+), 70 deletions(-)
diff --git a/classpesieve_1_1_thread_scanner.html b/classpesieve_1_1_thread_scanner.html
index 07881e0ee..bb07d7027 100644
--- a/classpesieve_1_1_thread_scanner.html
+++ b/classpesieve_1_1_thread_scanner.html
@@ -657,7 +657,7 @@
-
diff --git a/scanner_8cpp_source.html b/scanner_8cpp_source.html
index d18532b3f..1e219e412 100644
--- a/scanner_8cpp_source.html
+++ b/scanner_8cpp_source.html
@@ -733,7 +733,7 @@
A report from the thread scan, generated by ThreadScanner.
-
virtual ThreadScanReport * scanRemote()
+
virtual ThreadScanReport * scanRemote()
A report from the working set scan, generated by WorkingSetScanner.
diff --git a/thread__scanner_8cpp_source.html b/thread__scanner_8cpp_source.html
index 59084cfa4..907e0919f 100644
--- a/thread__scanner_8cpp_source.html
+++ b/thread__scanner_8cpp_source.html
@@ -678,74 +678,77 @@
-
-
-
-
550 bool isStackCorrupt =
false;
-
-
-
-
554 isStackCorrupt =
true;
-
-
-
-
-
559 && this->info.is_extended &&
info.ext.state == Waiting &&
info.ext.wait_reason == UserRequest)
-
-
561 isStackCorrupt =
true;
-
-
-
564 if (isStackCorrupt) {
-
-
-
-
-
-
-
-
+
+
+
549 bool isStackCorrupt =
false;
+
+
+
+
553 isStackCorrupt =
true;
+
+
+
+
+
558 && this->info.is_extended &&
info.ext.state == Waiting &&
info.ext.wait_reason == UserRequest)
+
+
560 isStackCorrupt =
true;
+
+
+
563 if (isStackCorrupt) {
+
+
+
+
+
+
+
+
+
-
-
-
-
578 if (!my_report)
return nullptr;
-
-
580#ifdef _SHOW_THREAD_INFO
-
581 printThreadInfo(
info);
-
-
-
584 bool is_shc = isAddrInShellcode(
info.start_addr);
-
-
586 if (reportSuspiciousAddr(my_report,
info.start_addr)) {
-
-
-
-
-
-
-
-
-
-
-
597 HANDLE hThread = OpenThread(
-
598 THREAD_GET_CONTEXT | THREAD_QUERY_INFORMATION | SYNCHRONIZE,
-
-
-
-
-
-
604 std::cerr <<
"[-] Could not OpenThread. Error: " << GetLastError() << std::endl;
-
-
-
-
-
609 scanRemoteThreadCtx(hThread, my_report);
-
610 CloseHandle(hThread);
-
-
+
+
+
+
576 if (GetCurrentThreadId() ==
info.tid) {
+
+
+
+
+
+
+
583#ifdef _SHOW_THREAD_INFO
+
584 printThreadInfo(
info);
+
+
+
587 bool is_shc = isAddrInShellcode(
info.start_addr);
+
+
589 if (reportSuspiciousAddr(my_report,
info.start_addr)) {
+
+
+
+
+
+
+
+
+
+
+
600 HANDLE hThread = OpenThread(
+
601 THREAD_GET_CONTEXT | THREAD_QUERY_INFORMATION | SYNCHRONIZE,
+
+
+
+
+
+
607 std::cerr <<
"[-] Could not OpenThread. Error: " << GetLastError() << std::endl;
+
+
+
+
+
612 scanRemoteThreadCtx(hThread, my_report);
+
613 CloseHandle(hThread);
+
+
A class responsible for filling in the statistics with the data from the particular buffer.
@@ -769,7 +772,7 @@
static std::string translate_thread_state(DWORD thread_state)
-
virtual ThreadScanReport * scanRemote()
+
virtual ThreadScanReport * scanRemote()
bool reportSuspiciousAddr(ThreadScanReport *my_report, ULONGLONG susp_addr)
size_t fillCallStackInfo(IN HANDLE hProcess, IN HANDLE hThread, IN LPVOID ctx, IN OUT ctx_details &cDetails)
void printThreadInfo(const util::thread_info &threadi)
diff --git a/thread__scanner_8h_source.html b/thread__scanner_8h_source.html
index 87c7b241e..9155499ca 100644
--- a/thread__scanner_8h_source.html
+++ b/thread__scanner_8h_source.html
@@ -295,7 +295,7 @@
ThreadScanner(HANDLE hProc, bool _isReflection, const util::thread_info &_info, ModulesInfo &_modulesInfo, peconv::ExportsMapper *_exportsMap, ProcessSymbolsManager *_symbols)
-
virtual ThreadScanReport * scanRemote()
+
virtual ThreadScanReport * scanRemote()
bool reportSuspiciousAddr(ThreadScanReport *my_report, ULONGLONG susp_addr)
size_t fillCallStackInfo(IN HANDLE hProcess, IN HANDLE hThread, IN LPVOID ctx, IN OUT ctx_details &cDetails)
void printThreadInfo(const util::thread_info &threadi)