Skip to content

Commit 2f8158a

Browse files
iostreamiostream
authored andcommitted
add more bypass
1 parent 1591e03 commit 2f8158a

File tree

2 files changed

+17
-3
lines changed

2 files changed

+17
-3
lines changed

src/Modify.cpp

Lines changed: 16 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -51,10 +51,24 @@ DWORD WINAPI KillBanner (LPVOID conf)
5151
VirtualProtect ((char*)skipPod + 6, 1, PAGE_EXECUTE_READWRITE, &oldProtect);
5252
memset ((char*)skipPod + 6, 0xE9, 1);
5353
VirtualProtect ((char*)skipPod + 6, 1, oldProtect, &oldProtect);
54-
logger->Log ("main process - patch success!");
54+
logger->Log ("main process - #1patch success!");
5555
}
5656
else {
57-
logger->Log ("main process - patch failed!");
57+
logger->Log ("main process - #1patch failed!");
58+
}
59+
60+
skipPod = FindPattern ((uint8_t*)hModule, mInfo.SizeOfImage, (BYTE*)"\x00\x61\x64\x70\x6F\x64\x00", "xxxxxxx");
61+
if (skipPod)
62+
{
63+
DWORD oldProtect;
64+
VirtualProtect ((char*)skipPod + 5, 1, PAGE_EXECUTE_READWRITE, &oldProtect);
65+
memset ((char*)skipPod + 5, 0x90, 1);
66+
VirtualProtect ((char*)skipPod + 5, 1, oldProtect, &oldProtect);
67+
68+
logger->Log ("main process - #2patch success!");
69+
}
70+
else {
71+
logger->Log ("main process - #2patch failed!");
5872
}
5973

6074
}

src/hosts.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77

88
_getaddrinfo getaddrinfo_orig;
99

10-
const std::vector<std::string_view> blockList = { "google", "doubleclick", "qualaroo.com", "fbsbx.com" };
10+
const std::vector<std::string_view> blockList = { "google", "doubleclick", "qualaroo.com", "fbsbx.com", "adeventtracker" };
1111

1212
// check if ads hostname
1313
bool is_blockhost (std::string_view nodename, Config* config) {

0 commit comments

Comments
 (0)