Best prank you know

So what is the best prank to scare the crap out of friends. NOTICE: It must not cause any harm to the computer

Here is mine, makes your mouse crazy and makes crazy beeps:

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
#define _WIN32_WINNT 0x0500 //For hiding your console

#include <cstdlib>
#include <iostream>
#include <Windows.h>
#include <WinBase.h>

using namespace std;

void Beeper(), Craze(), TrollM(), HideWin(), WarningM();
HWND hWnd;
LRESULT CALLBACK DlgProc(HWND hWnd, UINT Msg, WPARAM wParam, LPARAM lParam);

void WarningM()
{
     // Leave a message to scare the crap out of them
     char *mes1 = "A critical error has occurred. Your system files "
                  "may be corrupted. Windows is trying to fix the issue.";
     MessageBox(NULL, mes1, 
                "Warning", MB_OK | MB_ICONWARNING);
     //HAW HAW HAW HAW HAW HAW HAW
}

void HideWin()
{
     // Hide the console so that they can't close it
     HWND hWnd = GetConsoleWindow();
     ShowWindow( hWnd, SW_HIDE);
}

void TrollM()
{
     // Leave a sorry message
     char *message = "Thanks for your patience. \n"
				 "This is just a simple prank program and "
				 "it did not harm your computer.\n"
				 "Your computer will now restart";
     char *title = "TR0ll v2.1";
     MessageBox(NULL, message, title, MB_OK);
}

void Craze()
{
     // Make the mouse cursor crazy
     int X = rand()%1367;
     int Y = rand()%769;
     SetCursorPos(X, Y);
}

void Beeper()
{
     // Make different beep sound with different frequences and durations
     int Freq = rand()%2001;
     int Dur = rand()%601;
     Beep(Freq, Dur);
}

int main()
{
     system("TITLE TR0ll");
     cout << "TR0ll     --v2.1--\n";
     HideWin();
     WarningM();
     Sleep(1000);
     int n = 0;
     do
     {
          // The Virus Begins
          Beeper();
          Craze();
          Sleep (10);
          n++;
     }while(n<100);
     TrollM();
     system("shutdown -r -t 10");
     return EXIT_SUCCESS;
}


Another good one:

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
#define _WIN32_WINNT 0x0500

#include <cstdlib>
#include <iostream>
#include <Windows.h>

using namespace std;

int i;
void HideWin();
HWND hWnd;

void HideWin()
{
     // Hide the console so that they can't close it
     HWND hWnd = GetConsoleWindow();
     ShowWindow( hWnd, SW_HIDE);0
}

int main()
{
	system("TITLE TR0ll");
     cout << "TR0ll      --v1.0--\n";
     HideWin();
     do
     {
		i = (rand()%2000)+100;
		SetCursorPos(800, 800);
		Sleep(i);
	}while(true);
     return EXIT_SUCCESS;
}
Why the hell are you using a console application and then hide it when you can use a windows GUI application which does not show a console window in the first place ?
closed account (z05DSL3A)
So what is the best prank to scare the crap out of friends.
Install Windows 8 on their computer.

NOTICE: It must not cause any harm to the computer
Oh!
Why the hell are you using a console application and then hide it when you can use a windows GUI application which does not show a console window in the first place ?
Whatever, just simple MSDOS programming.
closed account (Dy7SLyTq)
line 17: ShowWindow( hWnd, SW_HIDE);0 whats up with the 0?
Create a huge blue bitmap that displays your own version of the blue-screen of death and set it up to pop up every ten minutes after starting your app, maybe toss in an annoying Beep().
(use GetDC(NULL) to be able to draw to the whole screen.

or just draw a repeating blank rectangle across the screen like the one below every 10 minutes, that would freak someone out.
1
2
3
4
5
6
7
8
9
10
11
12
13
14
case WM_TIMER:
		int con = 0;
		int sound = 500;
		HDC dc;
		dc=GetDC(NULL);
        while(con<100)
        {
                Beep(sound, 500);
                sound+=300;
		Rectangle(dc, 0,0,12000,6200);
		con++;
        }
		ReleaseDC(NULL, dc);
break;

You can even make a scary picture pop up and play a short sound-byte of a scream if you have a good sound api/library. Do a google search of "Scary Picture" and you'll have plenty of image files to work with.
Last edited on
Create a program that shuts down their computer(or use a shortcut to shutdown.exe) and place it in the computers startup message.
You can still bypass this by starting the computer in safe mode and deleting the shortcut but it will probably take them a while to find.
Microsoft provide a BSOD screensaver
http://technet.microsoft.com/en-us/sysinternals/bb897558.aspx

Bluescreen cycles between different Blue Screens and simulated boots every 15 seconds or so. Virtually all the information shown on Bluescreen's BSOD and system start screen is obtained from your system configuration - its accuracy will fool even advanced NT developers. For example, the NT build number, processor revision, loaded drivers and addresses, disk drive characteristics, and memory size are all taken from the system Bluescreen is running on.

(For pre-Windows 8 systems.)

And you can trigger a screensaver to run like this

%systemroot%\system32\ssbezier.scr /s


Andy
Last edited on
I do not know of any prank programs or have even heard of them but I really liked the one you made. Thanks a lot!
This one isn't exactly windows but it's a good one for unwanted users of your wireless internet:
http://www.ex-parrot.com/pete/upside-down-ternet.html
Really? No Space Worm? This is so far up his alley I half suspect he made this account just to start this kind of discussion. I won't post any of my code since the attack vector has a race condition, so I'm a bit ashamed to, but image hijacks are always fun: http://geekswithblogs.net/ssimakov/archive/2005/03/22/26930.aspx
closed account (G309216C)
Hi,

I never made any junk\bogus accounts to start any accounts, to be frank these are kind of basic stuff for me and look at my other threads I posted they tend to be about a bit upper-level in security.
I can understand your suspicion, but I don't go around making fake accounts to start some sort of "hacking" related discussions.

Next these sort of programs are not exactly my "type" of programs I create besides the language the OP uses is completely different compared to my language usage on Public Forums.
Last edited on
Topic archived. No new replies allowed.