Skip to content

Commit b1579cb

Browse files
author
mrpond
committed
update new version
1 parent 5d5d5a5 commit b1579cb

File tree

2 files changed

+21
-4
lines changed

2 files changed

+21
-4
lines changed

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,8 @@
1111
<h4 align="center">A multi-purpose adblocker and skip-bypass for the <strong>Windows</strong> Spotify desktop application.</h4>
1212
<h5 align="center">Please support Spotify by purchasing premium</h5>
1313
<p align="center">
14-
<strong>Last updated:</strong> 1 August 2021<br>
15-
<strong>Last tested version:</strong> 1.1.65.643.g2d707698-a
14+
<strong>Last updated:</strong> 17 August 2021<br>
15+
<strong>Last tested version:</strong> 1.1.66.578.gc54d0f69-a
1616
</p>
1717
</center>
1818

src/Modify.cpp

Lines changed: 19 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ using _cef_urlrequest_create = cef_urlrequest_t * (*)(struct _cef_request_t* req
1919
2020
static _cef_urlrequest_create cef_urlrequest_create_orig;
2121
22-
static constexpr std::array<std::string_view, 3> blockList = { "/ads/", "/ad-logic/", "/gabo-receiver-service/" };
22+
static constexpr std::array<std::string_view, 3> block_list = { "/ads/", "/ad-logic/", "/gabo-receiver-service/" };
2323
2424
cef_urlrequest_t* cef_urlrequest_create_hook (struct _cef_request_t* request,
2525
struct _cef_urlrequest_client_t* client,
@@ -40,7 +40,7 @@ cef_urlrequest_t* cef_urlrequest_create_hook (struct _cef_request_t* request,
4040
delete[] c_url;
4141
cef_string_userfree_utf16_free (url_utf16);
4242
43-
for (auto blockurl : blockList) {
43+
for (const auto& blockurl : block_list) {
4444
if (std::string::npos != url.find (blockurl)) {
4545
g_Logger.Log ("blocked - " + url);
4646
return nullptr;
@@ -103,6 +103,23 @@ DWORD WINAPI KillBanner (LPVOID)
103103
}
104104
else {
105105
g_Logger.Log ("main process - patch failed!");
106+
107+
skipPod = FindPattern ((uint8_t*)hModule, mInfo.SizeOfImage, (BYTE*)"\x83\xC4\x08\x84\xC0\x0F\x84\xED\x03\x00\x00", "xxxxxxxxxxx");
108+
if (skipPod)
109+
{
110+
DWORD oldProtect;
111+
VirtualProtect ((char*)skipPod + 5, 1, PAGE_EXECUTE_READWRITE, &oldProtect);
112+
memset ((char*)skipPod + 5, 0x90, 1);
113+
VirtualProtect ((char*)skipPod + 5, 1, oldProtect, &oldProtect);
114+
115+
VirtualProtect ((char*)skipPod + 6, 1, PAGE_EXECUTE_READWRITE, &oldProtect);
116+
memset ((char*)skipPod + 6, 0xE9, 1);
117+
VirtualProtect ((char*)skipPod + 6, 1, oldProtect, &oldProtect);
118+
g_Logger.Log ("main process 1.1.66.578.gc54d0f69-a - patch success!");
119+
}
120+
else {
121+
g_Logger.Log ("main process 1.1.66.578.gc54d0f69-a - patch failed!");
122+
}
106123
}
107124

108125
}

0 commit comments

Comments
 (0)