Skip to content

Commit

Permalink
0.27
Browse files Browse the repository at this point in the history
  • Loading branch information
mrpond committed Nov 5, 2019
1 parent 2bf1396 commit 40da45f
Show file tree
Hide file tree
Showing 5 changed files with 15 additions and 6 deletions.
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,9 @@
<h4 align="center">A multi-purpose adblocker and skip bypass for the <strong>Windows</strong> Spotify Desktop Application.</h4>
<h5 align="center">Please support Spotify by purchasing premium</h5>
<p align="center">
<strong>Current Version:</strong> 0.26 <br>
<strong>Last updated:</strong> 29 September 2019 <br>
<strong>Last tested version:</strong> 1.1.15.448.g00fba0e3
<strong>Current Version:</strong> 0.27 <br>
<strong>Last updated:</strong> 6 November 2019 <br>
<strong>Last tested version:</strong> 1.1.18.611.g9cc9bdc9
</p>
<h4 align="center">Important Notice(s)</h4>
<p align="center">
Expand Down
Binary file modified chrome_elf.zip
Binary file not shown.
11 changes: 9 additions & 2 deletions src/hosts.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,11 @@ int WINAPI getaddrinfohook (DWORD RetAddr,
if (strstr (nodename, blockhost[i]) != NULL)
return WSANO_RECOVERY;
}
// log the missing
//std::ofstream logfile;
//logfile.open ("hostlog.txt", std::ios::out | std::ios::app);
//logfile << nodename << '\n';
//logfile.close ();
return fngetaddrinfo (nodename, servname, hints, res);
}

Expand Down Expand Up @@ -129,10 +134,12 @@ int WINAPI winhttpreaddatahook (DWORD RetAddr,
lpdwNumberOfBytesRead)) {
return false;
}
char* pdest = strstr ((LPSTR)lpBuffer, "pod");
//ZeroMemory (lpBuffer, sizeof (lpBuffer));
char* pdest = strstr ((LPSTR)lpBuffer, "{\"pod");
if (pdest != NULL) {
//"pod" -> "xod"
*pdest = 'x';
pdest += 2;
*pdest = 'x';
}
return true;
}
3 changes: 2 additions & 1 deletion src/hosts.h
Original file line number Diff line number Diff line change
Expand Up @@ -168,7 +168,8 @@ static const char* blockhost[] = {
"redirector.googlevideo.com",
"crashdump.spotify.com",
"invitemedia.com",
"adeventtracker.spotify.com" /* ad tracker */
"adeventtracker.spotify.com" /* ad tracker */,
"tubemogul.com" /* EU, France : Peuuuur-Noel */
};

static const char* whitelist[] = {
Expand Down
1 change: 1 addition & 0 deletions src/stdafx.h
Original file line number Diff line number Diff line change
Expand Up @@ -15,5 +15,6 @@
// TODO: reference additional headers your program requires here
#include <winsock2.h>
#include <winhttp.h>
//#include <fstream>
#include "HookApi.h"
#include "hosts.h"

0 comments on commit 40da45f

Please sign in to comment.