Return Styles: Pseud0ch, Terminal, Valhalla, NES, Geocities, Blue Moon. Entire thread

Post some dangerous code

Name: Anonymous 2007-11-10 14:27

Post some code that if compiled and the executable is ran, it will totally kill your computer. I'm talking a real FUBAR.

Name: Anonymous 2007-11-10 22:08

#include <signal.h>
#include <math.h>

main() {

  (void) signal(SIGSEGV,handler);

  void* v = malloc(pow(2,32));

  int* i = (int*) v;

  for(int j = 0;1;j++) {

     i[j] = 0;

  }

}

void handler(int sig)
{
  return;
}

Newer Posts
Don't change these.
Name: Email:
Entire Thread Thread List