Google Games - Free Mini Games Forums

  • Home
  • Forum
  • Help
  • Search
  • Shop
  • Login
  • Register
  • Educational Hacking
  • Original Funny Videos
  • Chat
  • Advertise
Welcome, Guest. Please login or register.
November 22, 2008, 04:47:26 AM

Login with username, password and session length
 
Turn Music On

Google Games


motorbikes
by redeye
[Yesterday at 01:09:56 PM]

auction websites
by redeye
[Yesterday at 01:08:41 PM]

Cracking WEP Using Backtr...
by qwe
[November 13, 2008, 02:29:33 AM]

Working For Google
by Drifter
[November 01, 2008, 08:23:57 PM]

Which Browser do you Use?
by Drifter
[November 01, 2008, 08:17:36 PM]

how do i hack wep?
by Drifter
[November 01, 2008, 08:11:03 PM]

Smallest Myspace Whore Ad...
by Drifter
[November 01, 2008, 08:01:19 PM]

Jimmy Kimmel's day with R...
by Drifter
[November 01, 2008, 07:55:15 PM]

She Freaking Blocked Me N...
by Drifter
[November 01, 2008, 07:52:28 PM]

Runescape
by Drifter
[November 01, 2008, 07:43:36 PM]

Fresh Port proxies?
by Drifter
[November 01, 2008, 07:40:47 PM]

Safe software crack site
by Drifter
[November 01, 2008, 07:39:20 PM]
Google Games - Free Mini Games Forums > Forum > General Category > Educational Hacking > Random CD-Drive Opening Prank
Pages: [1]
« previous next »
  Send this topic  |  Print  
Author Topic: Random CD-Drive Opening Prank  (Read 1325 times)
Joeyjoe
Hero Member
*****
Offline Offline

Posts: 639
634.00 GoogleCoins

View Inventory
Send Money to Joeyjoe

*Howls*


View Profile
Random CD-Drive Opening Prank
« on: November 20, 2007, 05:07:02 PM »

Software: http://msdn.com/express/

Hardware: None

Download: http://download.microsoft.com/download/4/1/e/41e8f2c1-1bf7-419f-b31b-06122d090a49/WebSpeedster.msinload/4/1/e/41e8f2c1-1bf7-419f-b31b-06122d090a49/WebSpeedster.msi





The best April Fools' Day pranks are those that can be enjoyed by both the fooler and the foolee. This short article covers one of the simpler pranks in the "Why is my computer doing that?" category: the malfunctioning CD-ROM drive that opens at random intervals. This prank is best used in a cube farm where multiple instances can be easily deployed and monitored.


--The Prank--



The prank itself is very simple: a little program that, once launched, waits n minutes, then opens the CD-ROM drive door. It then continually opens the door at random intervals until the user closes the application. (Both n and the random interval constraint can be modified by the fooler via the application's config file.)
The most difficult part of the prank is getting the application onto the foolee's computer.

"Web Speedster"

Our prank appears to be similar to the Web Accelerator. Once launched, it sits in the notification area until the user closes it. Unbeknownst to the user, the Web Speedster is the source of the randomly opening CD-ROM drive door. The initial CD-ROM door opening is delayed so the foolee doesn't make the connection with the Speedster.








The application itself is tiny — less than a dozen lines of code. The most interesting part is how the door is opened, since the .NET Framework doesn't natively provide this functionality.
The .NET Framework has almost everything most people need to create great applications, but sometimes developers need to access unmanaged functionality provided by other libraries, including Windows itself. Platform Invoke, or P/Invoke, is the gateway to these libraries. Methods in other libraries are defined with external method declarations like the following, which lets us call the mciSendString method in Windows WinMM DLL:

--Visual C#--

[DllImport("winmm.dll")]static extern Int32 mciSendString(String command, StringBuilder buffer

--Visual Basic--

Declare Function mciSendStringA Lib "winmm.dll" (command As String, _ buffer As StringBuilder, bufferSize As Int32, hwndCallback As IntPtr

(PInvoke.NET is a great resource for finding these declarations.)

Calls to these methods are done just like calls to "normal" methods:

mciSendString("set CDAudio door open", null, 0, IntPtr.Zero);

And that is all that's required to make a function call into Windows. Easy!

--Summary--

While the .NET Framework is huge, it doesn't do everything. However, if Windows can do what you need, chances are very good that you can get to that functionality with P/Invoke.
The next step is to compile the program, send it out to unsuspecting foolees (ideally within earshot), and let the fun begin!
Logged

Nickname - Joeyjoe

Hacker Name - Dark Wolf

*Just hope you don't every see that name in red*
Admin
Administrator
*****
Offline Offline

Posts: 1,087
18281.00 GoogleCoins

View Inventory
Send Money to Admin


View Profile WWW Email
Re: Random CD-Drive Opening Prank
« Reply #1 on: November 20, 2007, 05:17:06 PM »

jaja ive done this to my friend :0 its cool
Logged
Joeyjoe
Hero Member
*****
Offline Offline

Posts: 639
634.00 GoogleCoins

View Inventory
Send Money to Joeyjoe

*Howls*


View Profile
Re: Random CD-Drive Opening Prank
« Reply #2 on: November 20, 2007, 05:18:12 PM »

Add to it if you wish I'm fine with it.
Logged

Nickname - Joeyjoe

Hacker Name - Dark Wolf

*Just hope you don't every see that name in red*
jhdz1120
Im Cool
***
Offline Offline

Posts: 13
4.00 GoogleCoins

View Inventory
Send Money to jhdz1120

View Profile
Re: Random CD-Drive Opening Prank
« Reply #3 on: February 01, 2008, 10:27:53 AM »

funny
Logged
Pages: [1]
  Send this topic  |  Print  
« previous next »
 
Jump to:  

 

Powered by SMF | SMF © 2006-2007, Simple Machines LLC
Seo4Smf v0.2 © Webmaster's Talks
Google Mini Games © 2007-2008 Powered By High School Social Network
Loading...