Skip to content

Commit

Permalink
add more bypass
Browse files Browse the repository at this point in the history
  • Loading branch information
iostream authored and iostream committed Jan 8, 2021
1 parent 1591e03 commit 2f8158a
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 3 deletions.
18 changes: 16 additions & 2 deletions src/Modify.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -51,10 +51,24 @@ DWORD WINAPI KillBanner (LPVOID conf)
VirtualProtect ((char*)skipPod + 6, 1, PAGE_EXECUTE_READWRITE, &oldProtect);
memset ((char*)skipPod + 6, 0xE9, 1);
VirtualProtect ((char*)skipPod + 6, 1, oldProtect, &oldProtect);
logger->Log ("main process - patch success!");
logger->Log ("main process - #1patch success!");
}
else {
logger->Log ("main process - patch failed!");
logger->Log ("main process - #1patch failed!");
}

skipPod = FindPattern ((uint8_t*)hModule, mInfo.SizeOfImage, (BYTE*)"\x00\x61\x64\x70\x6F\x64\x00", "xxxxxxx");
if (skipPod)
{
DWORD oldProtect;
VirtualProtect ((char*)skipPod + 5, 1, PAGE_EXECUTE_READWRITE, &oldProtect);
memset ((char*)skipPod + 5, 0x90, 1);
VirtualProtect ((char*)skipPod + 5, 1, oldProtect, &oldProtect);

logger->Log ("main process - #2patch success!");
}
else {
logger->Log ("main process - #2patch failed!");
}

}
Expand Down
2 changes: 1 addition & 1 deletion src/hosts.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@

_getaddrinfo getaddrinfo_orig;

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

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

0 comments on commit 2f8158a

Please sign in to comment.