Latest
Loading...

Python for Ethical Hacking

Command Prompt

Featured Post

#5 Jarvis

Jarvis      Now we are going to create some functions. With the help of this functions we are going to make our Play music Open website...

All Command prompt commands

All Command prompt commands

Command Prompt Commands

Hello Friends 
                 In this post you will able to see all the commands with its definitions. Every computer users must have to know about the basic commands commands for that we are providing this table.




Commands Definitions
append Sets the path in which files will be searched for.
arp Displays and edits entries in the Address Resolution
Protocol cache.
assoc Changes the program that’s linked with a particular
file ending.
at Starts commands and programs at a particular time.
With the parameter /every:date[,…] you can also set
regular appointments.
atmadm Displays information on asynchronous transfer mode
(ATM).
attrib Changes attributes of specified files. With the parameter
+R you can protect a file from changes.
auditpol Displays current monitoring policies.
backup Creates backups of files. These can be recovered with
restore (replaced by msbackup).
bcdboot Creates and repairs start files.
bcdedit Allows users to make changes to start configuration
data storage (the command is a new version of bootcfq)
bdehdcfg Prepares a hard drive for BitLocker Drive Encryption.
bitsadmin Creates and monitors downloads and uploads.
bootcfg Creates, edits, or displays the content of boot.ini
(although it’s still included in the Windows 7 CMD, it
has lost its
function since boot.ini is no longer used for startup options,
instead you should use bcdedit).
bootsect Modifies the master boot code sot that it’s compatible with
the Windows Boot Manager or NT Loader (can only be started
via system restore in Windows 7 and Vista).
break Interrupts Ctrl + C checking in DOS, allowing you to stop
processes in the old operating system. Only available for
compatibility reasons in Windows.
cacls Edits and displays the access control list. This sets access
rights (outdated – replaced by icacls in newer Windows versions).
call Calls a batch file within another batch file. The command has
no effect if entered directly into CMD instead of in a batch file.
cd Displays the current directory and lets you switch to other
directories. With the parameter /D plus drive and path
specification, you can
also switch drives. Use cd.. to switch to a
higher directory (has the same function as
the chdir command).
certreq Manages and creates certificate registration
requirements for certification authorities.
certutil Manages services related to certificate
authentication.
change Changes the settings of a terminal server
and can be used together with the parameters
logon, port, or user (replaces the commands
chglogon, chgport, and chgusr).
chcp Changes the current code page (character set
table) or shows the page count of the current 
code page.
chdir Displays the current directory and lets you
switch to other directories. With the parameter
/D plus drive and path specification, you can
also switch drives. Use chdir.. to switch to a
higher directory (has the same function as the
cd command).
checknetisolation Checks the network capability of apps from
the Windows Store.
chglogon Enables, disables, or adjusts logins for terminal
server sessions.
chgport Displays or changes the COM pin assignment
of terminal servers for DOS compatibility.
chgusr Changes the installation mode of a terminal server.
chkdsk Checks and repairs (with the parameter /R) a
data drive.
chkntfs Changes or displays the data driver check at
startup.
choice Creates a selection list: typical example is the
selection of yes (Y) or no (N), which is created
with /C YN. With the parameter /M you can add
an explanatory message for the user.
cipher Displays and changes the encryption status of
files and directories on NTFS partitions.
clip Forwards the result of a command to the clipboard.
For example, you can copy the directory structure
(dir clip) or the content of a file (clip < filename)
to the clipboard.
cls Clears the content of the screen.
cmd Starts CMD.EXE.
cmdkey Can display (/list), create (/add), or delete (/delete)
login information.
cmstp Installs or uninstalls profiles for the connection manager.
color Changes the background (first value) and text color
(second value) of the command prompt. The color
lies between 0 (black) and F (white).
command Starts CMD.COM.
comp Compares the content of two files or two file sets.
The results can be displayed as a decimal value (/D)
or with ASCII characters (/A).
compact Displays and changes the compression status of files
and directories on NTFS partitions.
convert Converts partitions from FAT/FAT32 to NTFS.
copy Copies a file or multiple files to another location.
It’s also possible to connect several files to one.
You can use the asterisk as a wild card.
cscript Runs scripts over the Microsoft Script Host. You
can enable additional debugging with the /D option.
ctty Changes the standard input and output for the system.
date Displays the current date and allows you to change it.
With the parameter /T the date is shown without the
option to change.
dblspace Creates or configures compresses drives (a newer
version of the command is called drvspace)
debug Starts debug, a program that can test and modify
programs within the command prompt.
defrag Defragments all or only specified drives. Use /U
to observe the progress. To get an evaluation statistic
after the defragmentation, use the parameter /V.
del Deletes a file or multiple files. If you also want to
delete all files from subfolders, you can do this with
the /S parameter. Read-only files can be deleted with
/F (you can also use the erase command).
deltree Deletes a directory as well as all subdirectories and
files within.
diantz Compresses files without any loss (command has the
same function as makecab)
diskpart Manages, creates, and deletes partitions from the hard drive
diskperf Allows users to remotely control the disk performance counter.
diskraid Manages RAID systems.
dism Manages and integrates Windows images.
dispdiag Creates a file in the current directory in which you’ll find
information about your display.
dir Displays all folders and files within the current directory.
You can restrict the output by attributes (/A), simplify the
list (/B), or display all subdirectories and their files (/S).
diskcomp Compares the content of two disks.
diskcopy Copies the content of a disk to another.
djoin Creates a new computer account in the Active Directory
Domain Services (AD DS).
dosx Starts the DOS Protected Mode Interface, which allows
MS-DOS programs more than 640 KB of RAM. Is only
available to support older DOS programs
doskey Creates macros, recalls commands, and edits command
input.
dosshell Opens the DOS shell, a graphical file management tool.
In Windows, the DOS shell is replaced by Windows
Explorer.
driverquery Creates a list with all installed drivers.
drvspace Creates or configures compressed drives. An older version
of the command is called dblspace.
echo Displays a message and is mainly used within scripts and
batch files.
edit Starts the MS-DOS editor, with which you can create text files.
edlin Creates and edits text files within the command prompt.
emm386 Provides DOS with more than 640 KB of RAM.
endlocal Ends the valid range of changes to batch files or scripts. After
the command, changes are applied to the entire system again
(localization is started with setlocal).
erase Function is the same as del
esentutl Manages databases within the extensible storage engine.
eventcreate Creates an entry (ID and message) in an event log.
exe2bin Converts an EXE file to a BIN file.
exit Ends CMD.EXE or CMD.COM.
expand Extracts files and folders stored in CAB files.
extrac32 Extracts files and folders stored in CAB files. The program
is part of Internet Explorer, but can also be used in the
command prompt
extract Extracts files and folders stored in CAB files (in new
Windows versions use expand).
fasthelp Displays helpful information about commands.
fastopen Writes the position of a program into a specified list, which
is in the working memory and should accelerate the start
of programs
fc Compares two individual files or two sets of files with one
another and displays the differences.
fdisk Creates, deletes, and manages partitions on the hard drive.
Use diskpart in newer Windows versions.
find Searches through a file or multiple files for a particular
character sequence. If you only want to know how
frequently the word or phrase occurs, use the /C parameter.
With the extension /I the command ignores upper- and
lower-case in the search.
findstr Finds character sequences in one or multiple files. It gives
you more options when compared to the find command:
you can search for files that contain various terms or with /C
search for an exact word order.
finger Provides information about users on remote devices using the
Finger service.
fltmc Allows users to manage and display filter drivers.
fondue nstalls additional Windows features. The command is an
abbreviation for the underlying tool: Features on Demand
User Experience Tool.
for Sets a specific command that should be run for each individual
file in a file set. This command is usually used in batch and
script files.
forfiles Selects one or more files and runs a command that refers to
these files. Usually used for batch and script files.
forcedos Starts a program in the MS-DOS partial system, in case it’s
not directly recognized by Windows XP as a DOS program
format Formats a drive to the file system specified by the user.
fsutil Provides numerous features related to the file system,
such as disk removal.
ftp Transfers data to an FTP server or from this to a PC. The
command offers additional options: For example, you can
activate debugging with -d.
ftype Specifies a program for opening a specific file type.
getmac Displays the MAC address of all network adapters. The
format of the output (Table, List, CSV) is set with /FO.
With /S you can use the command on remote systems as well.
goto Skips the execution within a batch program to a specific line
(marker).
gpresult Displays information on the Group Policy.
gpupdate Updates information on the Group Policy.
graftabl Enables the option to use extended characters of a specific
code page in graphics mode.
graphics Starts a program that can print graphics.
help Displays help text for a specific command (you can also use
the /? command).
hostname Outputs the name of the current host.
hwrcomp Compiles self-created dictionaries for handwriting recognition.
hwrreg Installs a compiled dictionary for handwriting recognition.
icacls Edits and displays the access control list. This sets access rights.
An outdated version of this command is cacls.
if Represents a conditional statement and executes expressions
within batch files only under certain conditions. Can be e
xtended by not if commands are only not to be executed under
certain conditions.
interlnk Connects two computers via serial or parallel connection to share
files or printers
intersvr Starts an interlnk server and transfers data from one computer to
another via serial or parallel connection.
ipconfig Provides information on the IP of each used network adapter. The
 command can also be used to release (/release) or renew (/renew)
addresses. With /flushdns you can clear the DNS cache.
ipxroute Changes and displays information on the IPX routing tables.
irftp Transfers files via infrared connection, if one is available.
iscsicli Manages iSCSI, which enables connections via the SCSI protocol.
kb16 Changes the country settings of the keyboard for DOS programs
(only included in Windows for compatibility reasons. Replaces the
old command keyb).
keyb Changes the country settings of the keyboard for DOS programs
(only included in Windows for compatibility reasons. Replaced by
kb16 in newer Windows versions).
klist Displays all tickets authenticated by the Kerberos service. Also
enables the command to delete tickets (purge).
ksetup Configures a connection to a Kerberos server.
ktmutil Starts the kernel transaction manager.
label Changes or deletes a drive’s label.
lh Loads a program into the high memory area (UMB) – has the
same function as loadhigh.
licensingdiag Creates an XML and a CAB file that contain information on the
Windows product license.
loadfix Ensures that a program is loaded and executed above the first
64 KB of RAM.
loadhigh Has the same function as lh
lock Locks a drive so that only a user-selected program can access
it directly.
lodctr Updates all registry entries that have to do with performance
indicators.
logman Creates and manages event trace sessions and performance
logs.
logoff Logs the user out of Windows. Also allows you to end
sessions on servers.
lpq Displays the status of a printer queue for computers that use
a “line Printer Daemon” (LPD). (To use the command in
Windows 10, 8, 7, or Vista, the LPD print service and the
LPR port monitor have to be enabled first).
lpr Sends a file to a computer that uses a line printer daemon
(LPD). To use the command in Windows 10, 8, 7, or Vista,
the LPD print service and LPR port monitor have to be
enabled first.
makecab Compresses files without loss in CAB format (you can also
use the diantz command).
manage-bde Configures drive encryption with BitLocker. Use -on to
encrypt a drive. Use -off to decrypt it again and end
BitLocker protection.
md Creates a new directory on the specified path. If
directories don’t already exist on the path, md creates
them automatically (you can also use the mkdir command).
mem Displays information about the RAM and indicates which
programs are currently loaded in it.
memmaker Optimizes the RAM.
mkdir Creates a new directory on the specified path. If directories
don’t already exist on the path, mkdir creates them
automatically (you can also use the md command).
mklink Creates a symbolic link to a file. With /D you can also
create connections to directories. Create a fixed connection
instead of a symbolic connection with /H
mode Configures system devices – primarily on the COM or
LPT port.
mofcomp Analyzes files in managed object format (MOF) and
adds the classes and instances to the WMI repository.
more Outputs the content of a file (for example, a text file)
by the page. You can also use the command to split the
output of another command into pages.
mount Enables network sharing under the Network File System.
(To use the command, enable NFS services).
mountvol Creates and deletes mount points for drives and displays
them.
move Moves a file or multiple files from one directory to another.
The command can also change the names of directories. By
default, the command overwrites other files with the same
name when moving files to the destination. To prevent this
use the /-Y parameter.
mrinfo Provides information on the router.
msav Starts Microsoft Antivirus.
msbackup Starts Microsoft Backup (replaces backup and restores).
mscdex Loads the CD-ROM support for MS-DOS.
msd Starts the program Microsoft Diagnostics, with which
system information can be displayed.
msg Sends a message to another user. You can write the
username into the command or create files in which
usernames are saved. The files can then be included in
the command with @filename.
msiexec Starts the Windows installer, with which Windows can be
installed and configured.
muiunattend Starts an automatic setup process for the multilingual
user interface (MUI)
nbtstat Displays statistics and information on the TCP/IP
connections on remote computers.
net Configures and displays network settings.
net1 Configures and displays network settings
(it’s recommended to use net instead; the
net1 command is only intended as a temporary
solution for a Y2K problem).
netcfg Installs the minimal operating system Microsoft
Windows PE.
netsh Starts the network shell, which allows for network
settings to be changed on local and remote computers
netstat Displays statistics and information on TCP/IP
connections on the local computer.
nfsadmin Manages NFS servers and clients (to be able to use
the command, you first have to enable NFS services
in Windows).
nlsfunc Provides country-specific information for language
support.
nltest Displays information related to secure channels in the
Active Directory Domain Services (AD DS) and tests
the connections.
nslookup Sends a DNS query to a specific IP or host name on the
preconfigured DNS server. You can also specify another
DNS server.
ntbackup Runs backup services directly from the command line or
as part of batch or script files.
ntsd Runs debugging.
ocsetup Installs additional Windows functions.
openfiles Displays and separates open system files and folders.
path Creates and displays the path for searching executable
files.
pathping Provides information on forwarding and package loss
when sending over a network and also specifies the latency.
pause Pauses execution in batch files and scripts. The user is then
prompted in a message to continue by pressing a key
pentnt Recognizes floating point division errors in Pentium chips,
starts floating point emulation, and disables floating point
hardware.
ping Sends an internet control message protocol echo request to
a specific host to check if it’s accessible. The duration of the
echo can also be specified. Ping signals can be sent
continuously with -t. To display statistics on this action, press
Ctrl + Brk. Cancel the process with Ctrl + C.
pkgmgr Installs, uninstalls, and configures packages and functions for
Windows
pnpunattend Automates the installation of device drivers.
pnputil Installs plug-and-play devices from the command prompt.
popd Changes to the folder saved by the pushd command. The
command is mainly part of batch files and scripts.
power Uses the IDLE status of a processor to reduce energy
consumption.
powercfg Allows the user to change the computer’s energy options and
control energy conservation plans.
print Prints a text file. The device to be used for printing has to be
specified.
prompt Changes the display of the command prompt.
pushd Saves a specific path into a script or batch file. You can change
to this directory with popd.
pwlauncher Configures the startup options for Windows To Go with which
you can boot Windows from a USB drive.
qappsrv Displays all available remote computers in the network.
qbasic Starts qbasic, a program environment based on the BASIC
programming language.
qprocess Provides information on running processes.
query Displays the status of a particular service.
quser Provides information on the currently logged-in users.
qwinsta Displays information on the open remote desktop sessions.
rasautou Manages autodial addresses.
rasdial Starts and ends network connections for Microsoft clients.
rcp Copies files from a Windows computer to a server that’s
running a RSDH daemon, and vice versa.
rd Deletes a directory. This must not contain any files, even
hidden ones. You can delete an entire directory tree with
the /S parameter (you can also use the rmdir command).
rdpsign Signs a remote desktop protocol file (RDP file).
reagentc Configures the Windows recovery environment, with
which you can repair the installation of the operating system.
recimg Creates a user-defined Windows image to restore the system.
recover Restores readable files that were on a defective data drive.
reg Manages the registry of the command prompt. Users can
create new keys (reg add) or delete them (reg delete).
regini Changes registry authorizations.
register-cimprovider Registers a common information model provider
(CIM provider) in Windows
regsvr32 Registers a DLL file in the registry.
relog Creates new performance indicator protocols from the data
in the existing protocols.
rem Writes comments in batch and script files that aren’t taken
into account when executing.
ren Changes the name of a particular file. Directory and drive
cannot be changed this way (or use the rename command).
rename Function is the same as ren.
repair-bde Repairs and decrypts defective drives that are encrypted
with BitLocker. The files should be saved on a replacement
drive.
replace Replaces the selected file or files with one or more other
files. With /S files in subfolders are also replaced. With the
addition /U files are only replaced if another version is more
current. The parameter /A allows users to add new files to
the target directory at the same time. This parameter is not
compatible with /S and /U.
reset Resets a session. You can also use the rwinsta command
restore Restores backups that were created with the backup
command (replaced by msbackup).
rexec Runs commands on a remote computer that’s running a
Rexec daemon
rmdir Deletes a directory. This must not contain any files,
even hidden ones. You can delete an entire directory tree
with the /S parameter (you can also use the rd command).
robocopy Allows so-called robust file copying. This is an extended
version of copy and xcopy. With robocopy it’s possible to
successfully transfer data even if there are interruptions in
the network. There are a total of 72 parameters with which
the copy command can be modified.
route Displays routing tables and makes it possible to change,
add, or delete entries.
rpcinfo Sends a remote procedure call (RPC) to an RPC server.
The result displays the programs on the remote computer
(to use the command, NFS services on Windows have to
be enabled first).
rpcping Sends a ping via remote procedure call (RPC) and checks
whether a connection is possible
rsh Runs commands on remote computers that are running
the Unix program Remote Shell (RSH).
runas Allows a user to run commands with the rights of
another user. For example, you can run a command as
an administrator from a normal user account as long as
you know the password.
rsm Manages media on removable storage devices. Is used
in batch files and scripts to support programs that don’t
use “Removable Storage API.”
rwinsta Command has the same function as reset.
sc Manages services by connecting to the Service Controller.
scandisk Starts Microsoft ScanDisk. The program searches data
carriers for errors.
scanreg Repairs the registry and allows a backup to be created of it.
schtasks Sets the execution of specified programs and commands
for a specified point in time. You can create, delete,
change, and display all scheduled tasks.
sdbinst Applies user-defined database files (SDB).
set Displays environmental variables of CMD.EXE
and lets you configure them.
setlocal Limits the valid range of changes to batch files or scripts.
After the command, changes only apply to these files
(localization is started with endlocal).
setspn Creates, deletes, and changes SPNs. These are unique
identifiers for services on a network that uses Kerberos
authentication.
setver Sets a version number of MS-DOS that’s forwarded to
a program – even if it doesn’t match the actual version.
setx Creates or changes environmental variable in the user
of system environment.
sfc Checks all important and protected system files.
Incorrect versions are replaced by correct ones.
shadow Monitors a session on a remote computer. The user can
also actively control the remote computer.
share Installs file sharing and file locking.
shift Moves variables within batch files and scripts.
showmount Provides information on NFS file systems
(to use the command, you first have to activate
NFS services in Windows).
shutdown Shuts down the computer (/s), triggers a restart (/r),
or logs the user out (/l). A graphical user interface is
displayed if you enter the parameter /I as the first
option in the command.
smartdrv Starts and manages the hard drive cache program
SMARTDrive.
sort Lists out data (from a file or command) and outputs
it again sorted – directly in the command prompt, in
a new file, or in another output.
start Opens a new command prompt window in which you
can run a specific program or command.
subst Assigns a drive letter to a path to create a virtual drive.
sxstrace Starts the WinSxs Tracing Utility, a tool for
programming diagnostics.
sys Copies system files from MS-DOS and the command
interpreter to another hard drive. This makes it bootable.
systeminfo Displays information about the Windows installation,
including all installed service packages. The information
can be obtained from the local system as well as a remote
computer.
takeown Restores administrator access rights to a file that have
been lost when reassigning a user.
taskkill Ends one or more running tasks. You either have to specify
the process ID (PID) or image name.
tasklist Lists all running processes – also on remote computers,
if desired. The process ID also has to be specified, which
is required for the taskkill command
tcmsetup Enables or disables a client for the Telephony
Application Programming Interface (TAPI), a
programming interface for telephone applications.
telnet Enables communication with another computer
that also uses the telnet protocol.
tftp Enables a file exchange between the local computer
and a server that supports the Trivial File Transfer
Protocol (TFTP). To use the command, the TFTP
client first needs to be enabled in the system settings.
time Displays the current time and allows it to be changed.
If the parameter /T is entered, the command prompt
only shows the time and offers no option to directly
change it.
timeout Stops a process for a specified time. The command Is used
in batch files and scripts. If you use the /NOBREAK
parameter, the command ignores any keyboard input.
tlntadmn Manages a telnet server on a local or remote computer
(to be able to use the command, the telnet server functions
first have to be enabled in the system settings).
title Changes the title of the command prompt. Spaces are
allowed, but not all special characters such as a slash,
for example, because they may be interpreted as instructions
for a parameter.
tpmvscmgr Creates and deletes TPM virtual smart cards. These are
virtual smartcards encrypted on the basis of the Trusted
Platform Model
tracerpt Processes logs or real-time data generated during the tracing
of computer programs.
tracert Tracks a data package on the way through the network to a
server. It doesn’t only check whether the package arrives and
how long it takes, but also records how many hops the package
makes on the way. All packages have a set time-to-live (TTL),
which is increased gradually with the command.
tree Graphically displays the directory structure of a drive or path.
With the /F parameter, all files in the folders are also listed out.
/A also ensures that only ASCII characters are used for the
graphical representation. The command takes into account all
subdirectories starting from the given path. If you don’t enter a
path, the current folder is used as the output.
tscon Connects the current local user session with a session on a
remote computer.
tsdiscon Ends the connection between a local user session and a session
on a remote computer.
tskill Ends a process on a remote computer.
tsshutdn Shuts down or restarts a remote terminal server. If the target
computer supports it, the entire computer can be turned off in
this way.
type Displays the content of a text file.
typeperf Displays performance counter data or writes it into a file.
tzutil Displays the currently set time zone (/g) or changes it (/s).
The parameter /l helps determine the valid time zones.
umount Removes mounted network file system drives. To use the
command, the NFS functions first have to be enabled in
the system settings.
undelete Undoes the deletion of a file.
unformat Undoes the drive formatting done by the format command.
unlock Unlocks a drive that was locked with the lock command.
unlodctr Deletes names as well as descriptions for extensible performance
counters in the Windows registry.
vaultcmd Creates, deletes, and displays saved registration information
ver Displays the current version number of Windows or MS-DOS.
verify When enabled, checks whether files are written correctly on a
data drive. The check is disabled in the standard settings.
vol Displays the label and serial number of a drive.
vsafe Starts the antivirus software VSafe.
vssadmin Manages the volume shadow copy services that can be
used to store different versions (snapshots) of drives.
w32tm Manages the Windows time service that synchronizes dates
and times on all computers that share an AD DS domain.
waitfor Sends or waits on a single. If the signal is only supposed to be
sent to specified computers in a domain instead of all, use the /S
parameter. Computers within a network are synchronized with
one another through this command.
wbadmin Creates backups of the operating system and delivers information
to the created backup copies.
wecutil Creates and managements subscriptions for events. These are
forwarded from remote event sources that support the WS
management protocol.
wevtutil Manages event logs and event log files.
where Finds files that match a particular search topic. The placeholders
 * and ? can be used within the topic.
whoami Provides information about the current user. With the /GROUP
parameter you can obtain additional information about group
membership.
winmgmt Manages WMI repositories. Backups (/backup) are possible with
the command
winrm Manages secure connections between local and remote computers
via the WS management protocol.
winsat Evaluates various system factors – for example, processor performance
or graphical capabilities.
wmic Starts the Windows Management Instrumentation in the command prompt.
Various Windows settings can be changed here – both locally and on
remote computers.
wsmanhttpconfig Manages functions of the Windows Remote Management (winrm).
xcopy Copies files and entire directory structures. In this way, the command
offers various additional options. For example, it can be specified that
only files younger than a specific date (/D) should be copied. It can also
be specified that read-only files are overwritten (/R).
xwizard Registers Windows data in the form of XML files.



Thank you for watching

Subscribe my BLOG by click subscribe button above
Subscribe my YOUTUBE by click subscribe button below

No comments:

Post a Comment