Wednesday, October 13, 2010

All Command Of Command Prompt

A
   ADDUSERS:
Add or list users to/from a CSV file
   ARP:AddressResolution Protocol
   ASSOC:Change file extension associations
   ASSOCIAT:One step file association
   ATTRIB:Change file attributes
   ANSI.SYS:Defines functions that change display graphics
   APPEND:Causes MS-DOS to look in other directories when editing a file
   ARP:Displays, adds, and removes arp information from network devices
   ASSIGN:Assign a drive letter to an alternate letter
   ATMADM:Lists connections and addresses seen by Windows ATM call manage

B
   BATCH:
Recovery console command that executes a series of commands in a file
   BOOTCFG:Edit Windows boot settings
   BROWSTAT:Get domain, browser and PDC info
   BREAK:Enable / disable CTRL + C feature

C
   CHCP:
Supplement the International keyboard and character set information
   CACLS:Change file permissions
   CALL:Call one batch program from another
   COMMAND:Opens the command interpreter
   CD:Change Directory - move to a specific Folder
   CHANGE:Change Terminal Server Session properties
   CHKDSK:Check Disk - check and repair disk problems
   CHKNTFS:Check the NTFS file system
   CHOICE:Accept keyboard input to a batch file
   CIPHER:Encrypt or Decrypt files/folders
   CleanMgr:Automated cleanup of Temp files, recycle bin
   CLEARMEM:Clear memory leaks
   CLIP:Copy STDIN to the Windows clipboard.
   CLS:Clear the screen
   CLUSTER:Windows Clustering
   CMD:Start a new CMD shell
   CMDKEY:Manage stored usernames/passwords
   COLOR:Change colors of the CMD window
   COMP:Compare the contents of two files or sets of files
   COMPACT:Compress files or folders on an NTFS partition
   COMPRESS:Compress individual files on an NTFS partition
   CON2PRT:Connect or disconnect a Printer
   CONTROL:Open Control Panel icons from the MS-DOS prompt
   CONVERT:Convert a FAT drive to NTFS.
   COPY:Copy one or more files to another location
   CSC:Client-side caching (Offline Files)
   CSVDE:Import or Export Active Directory data
   CTTY:Change the computers input/output devices
   CHDIR:Changes directories

D
   DATE:Display or set the date
   DEBUG:Debug utility to create assembly programs to modify hardware settings
   DEFRAG:Defragment hard drive
   DEL:Delete one or more files
   DELPROF:Delete NT user profiles
   DELTREE:Delete a folder and all subfolders
   DEVCON:Device Manager Command Line Utility
   DIR:Display a list of files and folders
   DIRUSE:Display disk usage
   DISABLE:Recovery console command that disables Windows system services or drivers
   DISKCOMP:Compare the contents of two floppy disks
   DISKCOPY:Copy the contents of one floppy disk to another
   DISKPART:Disk Administration
   DNSSTAT:DNS Statistics
   DRIVPARM:Enables overwrite of original device drivers
   DOSSHELL:A GUI to help with early MS-DOS users
   DOSKEY:Edit command line, recall commands, and create macros
   DSACLS:Active Directory ACLs
   DSADD:Add items to active directory (user group computer)
   DSGET:View items in active directory (user group computer)
   DSQUERY:Search for items in active directory (user group computer)
   DSMOD:Modify items in active directory (user group computer)
   DSMOVE:Move an Active directory Object
   DSRM:Remove items from Active Directory

E
   ECHO:Display message on screen
   EDIT:View and edit files
   EDLIN:View and edit files
   EMM386:Load extended Memory Manager
   ENAME:Recovery console command to enable a disable service or driver
   ENDLOCAL:End localisation of environment changes in a batch file
   ERASE:Delete one or more files
   EVENTCREATE:Add a message to the Windows event log
   EXIT:Quit the current script/routine and set an errorlevel
   EXPAND:Uncompress files
   EXTRACT:Uncompress CAB files

F
   FC:Compare two files
   FDISK:Utility used to create partitions on the hard disk drive
   FIND:Search for a text string in a file
   FINDSTR:Search for strings in files
   FIXBOOT:Writes a new boot sector. Recovery
   FIXMBR:Writes a new boot record to a disk drive
   FOR /F:Loop command: against a set of file
   FOR /F:Loop command: against the results of another command
   FOR:Loop command: all options Files, Directory, List
   FORFILES:Batch process multiple files
   FORMAT:Format a disk
   FREEDISK:Check free disk space (in bytes)
   FSUTIL:File and Volume utilities
   FTP: File Transfer Protocol
   FTYPE:Display or modify file types used in file extension associations

G
   GLOBAL:Display membership of global groups
   GOTO:Direct a batch program to jump to a labelled line
   GPUPDATE:Update Group Policy settings
   GRAFTABL:Show extended characters in graphics mode

H
   HELP:Online Help

I
   ICACLS:Change file and folder permissions
   IF:Conditionally perform a command
   IFMEMBER:Is the current user in an NT Workgroup
   IFSHLP.SYS:32-bit file manager
   IPCONFIG:Configure IP

K
   KEYB:Change layout of keyboard
   KILL:Remove a program from memory

L
   LABEL:Edit a disk label
   LH:Load a device driver in to high memory
   LISTSVC:Recovery console command that displays the services and drivers
   LOADFIX:Load a program above the first 64k
   LOADHIGH:Load a device driver in to high memory
   LOCK:Lock the hard disk drive
   LOCAL:Display membership of local groups
   LOGEVENT:Write text to the NT event viewer
   LOGMAN:Manage Performance Monitor
   LOGOFF:Log a user off
   LOGON:Recovery console command to list installations and enable admin login
   LOGTIME:Log the date and time in a file

M
   MAP:Displays the device name of a drive
   MAPISEND:Send email from the command line
   MBSACLI:Baseline Security Analyzer
   MEM:Display memory usage
   MD:Create new folders
   MKLINK:Create a symbolic link (linkd)
   MODE:Configure a system device
   MORE:Display output, one screen at a time
   MOUNTVOL:Manage a volume mount point
   MOVE:Move files from one folder to another
   MOVEUSER:Move a user from one domain to another
   MSAV:Early Microsoft Virus scanner
   MSD:Diagnostics utility
   MSDEX:Utility used to load and provide access to the CD-ROM
   MSG:Send a message
   MSIEXEC:Microsoft Windows Installer
   MSINFO:Windows NT diagnostics
   MSTSC:Terminal Server Connection (Remote Desktop Protocol)
   MUNGE:Find and Replace text within file(s)
   MV:Copy in-use files

N
   NET:Manage network resources
   NETDOM:Domain Manager
   NETSH:Configure Network Interfaces, Windows Firewall & Remote access
   NETSVC:Command-line Service Controller
   NBTSTAT:Display networking statistics (NetBIOS over TCP/IP)
   NETSTAT:Display networking statistics (TCP/IP)
   NOW:Display the current Date and Time
   NLSFUNC:Load country specific information
   NSLOOKUP:Name server lookup
   NTBACKUP:Backup folders to tape
   NTRIGHTS:Edit user account rights

O
   OPENFILES:Query or display open files

P
   PATH:Display or set a search path for executable files
   PATHPING:Trace route plus network latency and packet loss
   PAUSE:Suspend processing of a batch file and display a message
   PERMS:Show permissions for a user
   PERFMON:Performance Monitor
   PING:Test a network connection
   POPD:Restore the previous value of the current directory saved by PUSHD
   PORTQRY:Display the status of ports and services
   POWERCFG:Configure power settings
   PRINT:Print a text file
   PRINTBRM:Print queue Backup/Recovery
   PRNCNFG:Display, configure or rename a printer
   PRNMNGR:Add, delete, list printers set the default printer
   PROMPT:Change the command prompt
   PSEXEC:Execute process remotely
   PSFILE:Show files opened remotely
   PSGETSID:Display the SID of a computer or a user
   PSINFO:List information about a system
   PSKILL:Kill processes by name or process ID
   PSLIST:List detailed information about processes
   PSLOGEEDON:Who's logged on (locally or via resource sharing)
   PSLOGLIST:Event log records
   PSPASSWD:Change account password
  PSSERVICE:View and control services
  PSSHUTDOWN:Shutdown or reboot a computer
   PSSUSPEND:Suspend processes
   PUSHD:Save and then change the current directory

Q
   QBASIC:Open the QBasic
   QGREP:Search file(s) for lines that match a given pattern

R
   RASDIAL:Manage RAS connections
   RASPHONE:Manage RAS connections
   RECOVER:Recover a damaged file from a defective disk
   REG:Registry: Read, Set, Export, Delete keys and values
   REGEDIT:Import or export registry settings
   REGSVR32:Register or unregister a DLL
   REGINI:Change Registry Permissions
   REM:Record comments (remarks) in a batch file
   REN:Rename a file or files
   REPLACE:Replace or update one file with another
   RD:Delete folder(s)
   RMTSHARE:Share a folder or a printer
   ROBOCOPY:Robust File and Folder Copy
   ROUTE:Manipulate network routing tables
   RUNAS:Execute a program under a different user account
   RUNDLL32:Run a DLL command (add/remove print connections)

S
   SCANDISK:Run the scandisk utility
   SCANREG:Scan registry and recover registry from errors
   SC:Service Control
   SCHTASKS:Schedule a command to run at a specific time
   SCLIST:Display NT Services
   SET:Display, set, or remove environment variables
   SETLOCAL:Control the visibility of environment variables
   SETX:Set environment variables permanentl
   SFC:System File Checker
   SHARE:List or edit a file share or print share
   SHIFT:Shift the position of replaceable parameters in a batch file
   SHORTCUT:Create a windows shortcut (.LNK file)
   SHOWGRPS: List the NT Workgroups a user has joined
   SHOWMBRS:List the Users who are members of a Workgroup
   SHUTDOWN:Shutdown the computer
   SLEEP:Wait for x seconds
   SLMGR:Software Licensing Management (Vista/2008)
   SOON:Schedule a command to run in the near future
   SORT:Sort input
   START:Start a program or command in a separate window
   SU:Switch User
   SUBINACL:Edit file and folder Permissions, Ownership and Domain
   SUBST:Associate a path with a drive letter
   SYSTEMINFO:List system configuration

T
   TASKLIST:
List running applications and services
   TASKKILL:Remove a running process from memory
   TELNET:Telnet to another computer / device from the prompt
   TIME:Display or set the system time
   TIMEOUT:Delay processing of a batch file
   TITLE:Set the window title for a CMD.EXE session
   TLIST:Task list with full path
   TOUCH:Change file timestamps  
   TRACERT :Trace route to a remote host
   TREE:Graphical display of folder structure
   TYPE:Display the contents of a text file
   TypePerf:Write performance data to a log file

U
   UNDELETE:
Undelete a file that has been deleted
   UNFORMAT:Unformat a hard disk drive
   UNLOCK:Unlock a disk drive
   USRSTAT:List domain usernames and last login

V
   VER:
Display version information
   VERIFY:Verify that files have been saved
   VOL:Display a disk label

W
   WHERE:Locate and display files in a directory tree
   WHOAMI:Output the current UserName and domain
   WINDIFF:Compare the contents of two files or sets of files
   WINMSD:Windows system diagnostics
   WINMSDP:Windows system diagnostics II
   WINRM:Windows Remote Management
   WINRS:Windows Remote Shell
   WMIC:WMI Commands

X
   XCACLS:Change file and folder permissions
   XCOPY:Copy files and folders
  

Sunday, October 10, 2010

Windows Registry Tutorial

The Registry is a database used to store settimg and options for the 32 bit versions of Microsoft Windows including Windows 95,98,ME and NT/2000. It contains information  and setting for all the hardware, software, users and preference of the PC. Whenever a user makes changes to a control panel setting or File Associations, System Policies or installed software the changes are reflected and stored in the Registry.

Some Important Registry
1. Disabling Drivers in My Computers


this modification will remove all drives, local and network, from Explorer's view.

1. Go to run and type regedit and click ok.
2. You have reached registry editor.
3. Now navigate the following entries in the registry

HKey_Current_User\Software\ Microsoft\Windows\Currrent Version\Policies\Explorer

4. Create a DWORD item and name it "NoDrives"(without the quotes)
5. Modify it's value of "3FFFFFF".
6. Restart the system for changes to take place.

2. Changing the tips of the day trick

1. Go to run and type regedit and click ok.
2. You have reached registry editor.
3. Now navigate the following entries in the registry

HKey_LOCAL_MACHINE \ SOFTWARE \ Microsoft \ windows \Current Version \ Explorer\

4. Now enter the tips you want to add or edit.
5. Restart the system for changes to take place.

3. Changing registered owners name trick

1. Go to run and type regedit and click ok.
2. You have reached registry editor.

3. Now navigate the following entries in the registry

HKey_LOCAL_MACHINE \ SOFTWARE \ Microsoft \ windows \Current Version

4. Modify the data for the 'Registered Owner' key or for ' Registered Organization.
5. Restart the system for changes to take place.

4. Adding items to the context menu of the start button trick

1. Go to run and type regedit and click ok.
2.  You have reached registry editor.
3. Now navigate the following entries in the registry

HKey_Classes_Root/Directory/Shell

4. Create a new key in the 'Shell' folder.
5. Type in a name for the key, does not matter what you call it.
6. Modify the data for 'Default' and give it name of whatever you would like to appear on the context menu.
7. Create another new key named 'Command' (without the quotes)inside of the key you just created in step 2.

8. For the 'Default' value data of 'Command', enter the full path and program you want to execute.
9. Now when you right click on the Start Button, your new program will show up.

5. Best copy and move shortcut trick

1. Go to run and type regedit and click ok.
2. . You have reached registry editor.
3. Now navigate the following entries in the registry

HKEY_CLASSES_ROOT \*\ Shellex \ ContextMenuHandlers

4. Right click the ContextMenuHandlers key and choose new>key
5. Name the key as "Copy to" (without quotes)
6. Repeat step 4 and this time name the key as "Move to" (without quotes)
7. Both these keys will have a default ih their right hand panel.
8. Double click the panel and enter the clsid value as 
{C2FBB630-2971-11D1-A18C-00C04FD75D13} for copy to and moveto both.

9. now navigate the following entries in the registry

HKEY_CLASSES_ROOT \ Directory \ Shellex \ ContextMenuHandlers

10. Right click the ContextMenuHandlers key and choose new>Key
11. Name the key as"Copy to"(without quotes)
12. Repeat step 4 and this time name the key as"Move to"(without quotes)
13. Both these keys will have a default in their right hand panel.
14. Double click the panel and enter the clsid value as

{C2FBB630-2971-11D1-A18C-00C04FD75D13} for Copy to and Move to both

15. now exit the registry you are done.
16. Restart the system

6. Safe n quick shutdown trick 
     
1. Go to run and type regedit and click ok.
2. . You have reached registry editor.
3. Now navigate the following entries in the registry

 HKEY_CURRENT_USER \ CONTROLPANEL \ DESKTOP \

4. Now look at the right  side window for AutoEndTasks.
     Assign its value to be . its default value is 0

7. Speeding Boot sequence trick

     Speedup boot up sequence by defragmeting all key doot files

1. Go to run and type regedit and click ok.
2. . You have reached registry editor.
3. Now navigate the following entries in the registry

       HKEY_LOCAL_MACHINE \ SOFTWARE \ Miceosoft \ Dfrg | BootoptimizerFunction

4. In the right hand panel look for enable. Right click on it and set it to y for enable.
    This will speed up boot time.......

Friday, October 8, 2010

Shutdown Computer with command prompt

Here is a trick to shutdown your computer  at a specific time. You might be thinking what great about it, well you can shutdown your computer without the use of any software. Just shutdown your computer at specific time from RUN Command. For example if you wish to shutdown at 09:45 am. Type this in
Start=>Run
Type Code:        at 11:35 shutdown -s
To cancel or Abort the shutdown:
Type Code:                   shutdown -a

Type  Code:  “shutdown –s –m\\computername –t60”. This command will shutdown the computer on network if you have administrative access.  Here computername needs to be replaced by the exact computer name of the computer on the network to work.

Alternative method to create a shutdown timer or simply computer shutdown shortcut

Step 1: Right click on your desktop and choose “New=>shortcuts”.

Step 2: In the box that says “Type the location of the shortcut”,
type in “shutdown -s -t 3600” without the quotation marks and click next.
Note: 3600 are the amount of seconds before your computer shuts down. So , this means 3600 seconds = 60 mints (1 hour). You can change the value in the above code. You can even create multiple shutdown shortcuts. For example a computer shutdown shortcut for 30 minutes, 1 hour, 2 hours, 5 hours etc.,

Step 3: Make up a name for the shortcut and you’re done.

Optional Step 4 : You can change the icon by right clicking=>properities=>change icon=>browse
To abort or cancel the shutdown:
To make an abort key to stop the shutdown timer just create another shortcut and make
the “location of the shortcut” to ” shutdown -a” without the quotes.

Tracing a website using a command prompt

Tracing or Routing a website using command prompt. This tip is only meant for educational purpose. I mainly use this trick to find out the hosting provider where a particular domain is hosted.
Follow the below steps:
1.   Start->Run->CMD  ie; open Command prompt
2.  Type the following command and press enter.
tracert www.websitename.com


in the above command, enter the desired website name.
Once you press enter, it tell you where a particular domain is hosted, Location, Country and some details of that domain.

Disclaimer: I am not responsible for this trick if this is used in a wrong way. I didn’t invent this method rather I myself found it somewhere else. Do not use this for Hacking purpose.