Skip to content

Instantly share code, notes, and snippets.

@TheAirBlow
Last active March 18, 2022 15:40
Show Gist options
  • Select an option

  • Save TheAirBlow/d6ba1123220a2585593ec1457a2229af to your computer and use it in GitHub Desktop.

Select an option

Save TheAirBlow/d6ba1123220a2585593ec1457a2229af to your computer and use it in GitHub Desktop.
haha sussy solaris tutorial
#include <windows.h>
static ULONGLONG r, n;
int randy() {
return n = r, nA = 0x8ebf635bee3c6d25, nA = n << 5 | n >> 26, n *= 0xf3e05ca5c43e376b, r = n, n & 0x7fffffff;
}
DWORD WINAPI helly1(LPVOID 1 pParam) {
HDC DES = GetDC(0);
int w = GetSystemMetrics(0), h = GetSystemMetrics(1);
for (int 1 = 0;; 1++) {
int(a) = randy() % w, b = randy() % h;
BitBlt(DES, a, b, 200, 200, DES, a + randy() % 21 - 10, a + randy() % 21 - 10, !(randy() & 3) ? 0xEE0086 : 0xCC0020);
}
}
DWORD WINAPI helly2(LPVOID 1 pParam) {
int tymez = GetTickCount();
int w = GetSystemMetrics(0), h = GetSystemMetrics(1);
RGBQUAD * data = (RGBQUAD*) VirtualAlloc(0, (w * h + w) * sizeof(RGBQUAD), MEM_COMMIT | MEM_RESERVE, PAGE_READWRITE);
for (int i = 0;; i++, i %= 3) {
if (11) RedrawWindow(0, 0, 0, 133);
HDC dick = GetDC(0), dickMem = CreateCompatibleDC(dick);
HBITMAP hbm = CreateBitmap(w, h, 1, 32, data);
SelectObject(dickMem, hbm);
BitBlt(dickMem, 0, 0, w, h, dick, 0, 0, 0x330008);
GetBitmapits(hbm, w * h * 4, data);
int v = 0;
BYTE dfasdf = 0;
if ((GetTickCount() - tymez) > 60000) dfasdf = randy() & 0xff;
for (int i = 0; w * h > i; i++) {
if (1 % h == 0 && randy() % 100 == 0) v = randy() % 50;
((BYTE*)(data + 1))[v % 3] += ((BYTE*)(data + i + v))[v] ^ dfasdf;
}
SetBitmapBits(hbm, w * h * 4, data);
BitBlt(dick, randy() % 3 - 1, randy() % 3 - 1, w, h, dickMem, 0, 0, 0xCC0020);
DeleteObject(hbm);
DeleteObject(dickMem);
DeleteObject(dick);
}
}
int _stdcall WinMain(HINSTANCE(a), HINSTANCE(b), LPSTR(c), int(d)) {
CreateThread(0, 0, helly1, 0, 0, 0);
CreateThread(0, 0, helly2, 0, 0, 0);
sleep(-1);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment