Vous êtes sur la page 1sur 9

I am Sure u guys Know All these commands. I want to Help The Beginers.. So i am Posting This. Useful Things to do on CMD!

First, open your Network Connection and right click and select Properties. Then Select TCP/IP and click on Properties again. Now Click on Advanced and WINS tab. Select Default for NeBIOS. Now back to the main Local Area Connection window, select File and Print Sharing for Mic*ft Networks and hit enter. This is just to make sure you have NetBIOS enabled. We will have some fun with NetBIOS on CMD. First thing you need to know is some very helpfull commands to use on CMD(Command Prompt). In case you dont know how to get CMD open in your box, then click on Start, then Run, then type cmd (no quotes, off course you know the drill). Back to commands: CODE nslookup net view net use net user ping tracert arp route nbtstat netstat ipconfig In case you dont know some of them, then just type the command on CMD and hit enter. A little help will show up in your screen. Read it and understand what the command does. Lets start easy 1) ping : This command will allow you to know if the host you pinging is alive, which means if it is up at the time of executing the ping command.

CODE ping x.x.x.x (x is the IP address) or ping www.whatever.com (www.whatever.com is the website you want to ping, but you dont know the IP) OBS: Keep in mind that if the host you pinging is blocking ICMP packets, then the result will be host down. 2) nslookup : This command has many functionalities. One is for resolving DNS into IP. Lets say you know the website URL but you dont know its IP(and you want to find out). nslookup www.whatever.com (www.whatever.com is the website you want to find out the IP) Now, another really nice function of nslookup is to find out IP of specific Mail Severs. QUOTE nslookup (enter) set type=mx (enter) yahoo.com This command will give you the mail server IP of yahoo.com. You can use whatever server you want and if it is listed on DNS, then you get the IP. Simple, isnt it? OK, now why would you want to have an IP of a mail server? To send spoofed mail to your friends or even for SE. In case you looking for How to spoof email, then look for my How to spoof email tutorial http://www.infowar.com/forums/showthread.pp;threadid=2360 3) tracert : This command will give you the hops that a packet will travel to reach its final destination. OBS: This command is good to know the route a packet takes before it goes to the target box. CODE tracert x.x.x.x (x is the IP address) or tracert www.whatever.com (www.whatever.com is the website you dont know the IP) 4) arp : This command will show you the arp table. This is good to know if someone is doing arp poisoning in your LAN.

QUOTE arp -a 5) route : This command will show you the routing table, gateway, interface and metric. CODE route print 6) ipconfig : This command will show tons of very helpful things. Your IP, gateway, dns in use. CODE ipconfig or CODE ipconfig /all this command will give all that info but for all networks you might have it. Also, in case you have a dynamic IP and want to change it, then type CODE ipconfig /release (this will release your IP) ipconfig /renew (this will renew your iP) OBS: Keep in mind that those commands will change your IP, but the new IP will still be tighed up to you. So dont do anything stupid. 7) netstat : This command will show you connection to your box. CODE netstat or CODE netstat -a (this will show you all the listening ports and connection with DNS names) netstat -n (this will show you all the open connection with IP addresses) netstat -an (this will combined both of the above) 8)nbtstat : This command will show you the netbios name of the target box.

CODE nbtstat -A x.x.x.x (x is the IP address) nbtstat -a computername net view x.x.x.x or computername (will list the available sharing folders on the target box) Now some hints: CODE net use \ipaddressipc$ /user:administrator (this command will allow you to connect to the target box as administrator) Now if you want to connect to the target box and browse the entire C drive, then use this command: CODE net use K: \computernameC$ (this will create a virtual drive on your my computer folder) OBS: Keep in mind that this will only works if the target box doesnt have an administrator password set. And least but not last, the help command. CODE whatevercommand /help CODE whatevercommand /? This command will help you to understand what it does and all the switchs available for each command. Very useful if you know the command, but forgot the right switch.

An A-Z Index of the Windows CMD command line

ADDUSERS ARP ASSOC ASSOCIAT ATTRIB

Add or list users to/from a CSV file Address Resolution Protocol Change file extension associations One step file association Change file attributes

BCDBOOT Create or repair a system partition BOOTCFG Edit Windows boot settings BROWSTAT Get domain, browser and PDC info CACLS CALL CD CHANGE CHKDSK CHKNTFS CHOICE CIPHER CleanMgr CLEARMEM CLIP CLS CLUSTER CMD CMDKEY COLOR COMP COMPACT COMPRESS CON2PRT CONVERT COPY CSCcmd CSVDE Change file permissions Call one batch program from another Change Directory - move to a specific Folder Change Terminal Server Session properties Check Disk - check and repair disk problems Check the NTFS file system Accept keyboard input to a batch file Encrypt or Decrypt files/folders Automated cleanup of Temp files, recycle bin Clear memory leaks Copy STDIN to the Windows clipboard. Clear the screen Windows Clustering Start a new CMD shell Manage stored usernames/passwords Change colors of the CMD window Compare the contents of two files or sets of files Compress files or folders on an NTFS partition Compress individual files on an NTFS partition Connect or disconnect a Printer Convert a FAT drive to NTFS. Copy one or more files to another location Client-side caching (Offline Files) Import or Export Active Directory data Display or set the date Defragment hard drive Delete one or more files Delete NT user profiles Delete a folder and all subfolders Device Manager Command Line Utility Display a list of files and folders Display disk usage Compare the contents of two floppy disks Copy the contents of one floppy disk to another Disk Administration DNS Statistics Edit command line, recall commands, and create macros Active Directory ACLs Add items to active directory (user group computer) View items in active directory (user group computer) Search for items in active directory (user group computer) Modify items in active directory (user group computer) Move an Active directory Object Remove items from Active Directory Display message on screen

DATE DEFRAG DEL DELPROF DELTREE DevCon DIR DIRUSE DISKCOMP DISKCOPY DISKPART DNSSTAT DOSKEY DSACLs DSAdd DSGet DSQuery DSMod DSMove DSRM ECHO

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 FIND FINDSTR FOR /F FOR /F FOR FORFILES FORMAT FREEDISK FSUTIL FTP FTYPE Compare two files Search for a text string in a file Search for strings in files Loop command: against a set of files Loop command: against the results of another command Loop command: all options Files, Directory, List Batch process multiple files Format a disk Check free disk space (in bytes) File and Volume utilities File Transfer Protocol Display or modify file types used in file extension associations

h i

GLOBAL Display membership of global groups GOTO Direct a batch program to jump to a labelled line GPUPDATE Update Group Policy settings HELP iCACLS IF IFMEMBER IPCONFIG Online Help Change file and folder permissions Conditionally perform a command Is the current user in an NT Workgroup Configure IP Remove a program from memory Edit a disk label Display membership of local groups Write text to the NT event viewer Manage Performance Monitor Log a user off Log the date and time in a file Send email from the command line Baseline Security Analyzer. Display memory usage Create new folders Create a symbolic link (linkd) Configure a system device Display output, one screen at a time Manage a volume mount point Move files from one folder to another Move a user from one domain to another Send a message Microsoft Windows Installer Windows NT diagnostics Terminal Server Connection (Remote Desktop Protocol) Copy in-use files Manage network resources

k l

KILL LABEL LOCAL LOGEVENT LOGMAN LOGOFF LOGTIME MAPISEND MBSAcli MEM MD MKLINK MODE MORE MOUNTVOL MOVE MOVEUSER MSG MSIEXEC MSINFO MSTSC MV NET

o p

NETDOM NETSH NETSVC NBTSTAT NETSTAT NOW NSLOOKUP NTBACKUP NTRIGHTS

Domain Manager Configure Network Interfaces, Windows Firewall & Remote access Command-line Service Controller Display networking statistics (NetBIOS over TCP/IP) Display networking statistics (TCP/IP) Display the current Date and Time Name server lookup Backup folders to tape Edit user account rights

OPENFILES Query or display open files

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 PsLoggedOn 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 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

RUN Start | RUN commands RUNAS Execute a program under a different user account RUNDLL32 Run a DLL command (add/remove print connections) 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 permanently 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

u v

TASKLIST TASKKILL TIME TIMEOUT TITLE TLIST TOUCH TRACERT TREE TSSHUTDN TYPE TypePerf USRSTAT VER VERIFY VOL WHERE WHOAMI WINDIFF WINMSD WINMSDP WINRM WINRS WMIC WUAUCLT XCACLS

List running applications and services Remove a running process from memory Display or set the system time Delay processing of a batch file Set the window title for a CMD.EXE session Task list with full path Change file timestamps Trace route to a remote host Graphical display of folder structure Remotely shut down or reboot a terminal server Display the contents of a text file Write performance data to a log file List domain usernames and last login Display version information Verify that files have been saved Display a disk label Locate and display files in a directory tree Output the current UserName and domain Compare the contents of two files or sets of files Windows system diagnostics Windows system diagnostics II Windows Remote Management Windows Remote Shell WMI Commands Windows Update Change file and folder permissions

XCOPY ::

Copy files and folders Comment / Remark

Vous aimerez peut-être aussi