Malware "Потёкший экран"

Malware "Потёкший экран"

https://t.me/hackportru


Источник: t.me/hackportru


Решил накодить что-то типо плывущего экрана. Ну вообщем накодил я по быстрому на плюсах и ещё решил добавить мелодию Beep'ами()

 По моему получилось довольно здорово. -> Exe <- -> VirusTotal <- 

Видео работы:

 https://drive.google.com/file/d/1mvIC8VItiD1Dl36xXnejBtVYC61jyPF1/view?usp=sharing 


А кому интересен код , то он ниже:

#include <Windows.h>

#include <iostream>

#include <thread>

int ScreenWidth, ScreenHeight;

int Interval = 56;


void music()

{

int a = 750;

while (true)

{

Beep(392, a);

Beep(392, a);

Beep(392, a);

Beep(311, a*0.75);

Beep(466, a*0.25);


Beep(392, a);

Beep(311, a*0.75);

Beep(466, a*0.25);

Beep(392, a * 2);


Beep(587, a);

Beep(587, a);

Beep(587, a);

Beep(622, a*0.75);

Beep(466, a*0.25);


Beep(369, a);

Beep(311, a*0.75);

Beep(466, a*0.25);

Beep(392, a * 2);

}


}


LRESULT CALLBACK Melter(HWND hWnd, UINT Msg, WPARAM wParam, LPARAM lParam)

{

switch (Msg)

{

case WM_CREATE:

{

HDC Desktop = GetDC(HWND_DESKTOP);

HDC Window = GetDC(hWnd);


BitBlt(Window, 0, 0, ScreenWidth, ScreenHeight, Desktop, 0, 0, SRCCOPY);

ReleaseDC(hWnd, Window);

ReleaseDC(HWND_DESKTOP, Desktop);


SetTimer(hWnd, 0, Interval, 0);

ShowWindow(hWnd, SW_SHOW);

break;

}

case WM_PAINT:

{

ValidateRect(hWnd, 0);

break;

}

case WM_TIMER:

{

HDC Window = GetDC(hWnd);

int X = (rand() % ScreenWidth) - (100 / 2), Y = (rand() % 15), Width = (rand() % 50);

BitBlt(Window, X, Y, Width, ScreenHeight, Window, X, 0, SRCCOPY);

ReleaseDC(hWnd, Window);

break;

}

case WM_DESTROY:

{

KillTimer(hWnd, 0);

PostQuitMessage(0);

break;

}

return 0;

}

return DefWindowProc(hWnd, Msg, wParam, lParam);

}


int main(HINSTANCE Inst, HINSTANCE Prev, LPSTR Cmd, int showcmd)


HANDLE console = GetStdHandle(STD_OUTPUT_HANDLE);

SetConsoleTextAttribute(console, 11);

char b[1];

SetConsoleTextAttribute(console, 2);

std::cout << "~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~" << "Created by MaminBandit"<<"~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~"<<"\n";

SetConsoleTextAttribute(console, 7);

std::cout << "Do you wanna play with me?Y/N\n";

std::cin >> b[0];

if (b[0] == 'Y')

{

std::thread func_thread(music);

SetConsoleTextAttribute(console, 4);

std::cout << "Good Luck";

// Get the width & height of current display

ScreenWidth = GetSystemMetrics(SM_CXSCREEN);

ScreenHeight = GetSystemMetrics(SM_CYSCREEN);


WNDCLASS wndClass = { 0, Melter, 0,0, Inst, 0, LoadCursorA(0, IDC_ARROW), 0, 0, "ScreenMelter" };

if (RegisterClass(&wndClass))

{

// Create the "melter" overlapping window.

HWND hWnd = CreateWindowExA(WS_EX_TOPMOST, "ScreenMelter", 0, WS_POPUP, 0, 0, ScreenWidth, ScreenHeight, HWND_DESKTOP, 0, Inst, 0);

if (hWnd)

{


// seed for randomization

srand(GetTickCount());

MSG Msg = { 0 };

// Run the melter loop

while (Msg.message != WM_QUIT)


{


//music();

if (PeekMessage(&Msg, 0, 0, 0, PM_REMOVE))

{


TranslateMessage(&Msg);

DispatchMessage(&Msg);

}

}


}

}

return 0;


}

}


КАНАЛ: t.me/hackportru - ПОДПИШИСЬ

САЙТ: http://hack-port.ru

Report Page