-
Notifications
You must be signed in to change notification settings - Fork 11
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix for last upd & additional ads removals
- Loading branch information
1 parent
72a0b36
commit 00024cb
Showing
9 changed files
with
286 additions
and
241 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,26 +1,24 @@ | ||
#include "features/features.h" | ||
|
||
int setup() | ||
{ | ||
SetConsoleTitleA(features::random_string(26).c_str()); | ||
int setup( ) { | ||
SetConsoleTitleA( features::random_string( 26 ).c_str( ) ); | ||
|
||
const DWORD process_id = features::get_process_id("Spotify.exe"); | ||
if (!process_id) | ||
features::error_log("[!] Spotify.exe not founded.\n"); | ||
const DWORD process_id = features::get_process_id( "Spotify.exe" ); | ||
if ( !process_id ) | ||
features::error_log( "[!] Spotify.exe not founded.\n" ); | ||
|
||
std::cout << "[+] Spotify.exe founded." << std::dec << process_id << std::endl; | ||
std::cout << "[+] Spotify.exe founded." << std::dec << process_id << std::endl; | ||
|
||
const HANDLE game = OpenProcess(PROCESS_ALL_ACCESS, FALSE, process_id); | ||
if (!game) | ||
features::error_log("OpenProcess error\n"); | ||
const HANDLE game = OpenProcess( PROCESS_ALL_ACCESS, FALSE, process_id ); | ||
if ( !game ) | ||
features::error_log( "OpenProcess error\n" ); | ||
|
||
features::error_log(features::inject(process_id, "patcher.dll") ? "[+] Injected.\n" : "[!] Injection Failed.\n"); | ||
features::error_log( features::inject( process_id, "patcher.dll" ) ? "[+] Injected.\n" : "[!] Injection Failed.\n" ); | ||
|
||
return 0; | ||
return 0; | ||
} | ||
|
||
int main() | ||
{ | ||
setup(); | ||
return 0; | ||
int main( ) { | ||
setup( ); | ||
return 0; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.