Programmer must master the eight cmd command

1, ping

It is used to check whether the network or the network connection speed of smooth order. As a living in the network administrator or a hacker who, ping command is the first one must master the DOS commands, using the principle that it is this: the machine on the network has a unique set of IP addresses, we are to the target IP address to send a packet, the person would return to a similar size data packets, according to the returned data packets we can determine the presence of target host, you can determine the initial target host operating system. Here's take a look at some of its commonly used operations. Take a look at to help it, in the DOS window, type: ping /? Carriage returns. As shown in the help screen. Here, we only have some basic parameters can be useful to the (same below).

-t said it will continuously send data packets to the target IP, until we force it to stop. Imagine, if you use the 100M broadband access, and the target IP is 56K kitten, then not be long before the target IP because so many can not afford data dropped, Oh, an attack on such a simple reality.

-l defines the size of sending data packets, the default is 32 bytes, we use it can be the greatest definition to 65500 bytes. Described above combined with the-t parameter to use, there will be better results oh.

-n defines IP to send data packets to the target number, the default is 3. If the network more slowly, 3 times for us have wasted a lot of time, because now our aim is only to determine whether there is target IP, then is defined as a bar.

Explain that if the-t parameter and the-n parameter used together, ping command to be placed behind the standard parameters, such as "ping IP-t-n 3", although the use of the-t parameter, but not always go ping , but only ping 3 times. In addition, ping command does not have to ping IP, or directly ping host domain name, so that you can get the host IP.

Let us give an example to illustrate the specific usage.

From here, time = 2 that sent the packet to receive data packets used to return time is 2 seconds, from here you can determine the size of the network connection speed. The return from the TTL value can be the initial ping the host operating system to determine the reason for that "preliminary assessment" is because the value can be amended. Here TTL = 32 that the operating system may be win98.

(Tip: If TTL = 128, then the target host may be Win2000; if TTL = 250, then the target host may be Unix)

Regarding the use of ping command to quickly find local area network failures, you can quickly search the fastest QQ server, you can ping others to attack ... ... these things will depend on all played their own.

2, nbtstat

This command uses the TCP / IP on a NetBIOS display protocol statistics and current TCP / IP connection, use this command you can get the remote host NETBIOS information such as user names, belong to the Working Group, NIC MAC address. Here we have the need to know a few basic parameters.

-a use of this parameter, as long as you know the remote host machine name, you can get it for NETBIOS information (below).

-A This parameter can also receive a remote host NETBIOS information, but you need to know its IP.

-n lists the information on the local machine NETBIOS.

As has been the other side when the IP or machine name, you can use the nbtstat command to further information on the other side, and this has added to our invasion of the insurance factor.

3, netstat

This is a command used to view network status, simple and powerful.

-a view of all open ports on the local machine which can effectively detect and prevent Trojan horse, you can tell the machine to open the services and other information, shown in Figure 4.

Here we can see that the local machine and opening up FTP services, Telnet services, mail services, WEB services. Usage: netstat-a IP.

-r Lists the current routing information, tell us the local machine gateway, subnet mask, and other information. Usage: netstat-r IP.

4, tracert

Trace routing information, use this command to detect the data transmitted from the local machine to the target host through which all the avenues, which to our understanding of the layout and structure of the network helpful. Shown in Figure 5.

Here that the data transmitted from the local machine to the 192.168.0.1 machine in the middle without any transfer, indicating a period of two machines in the same LAN. Usage: tracert IP.

5, net

This command is a network command of the most important one must be a thorough master of its usage of each sub-commands, because its function is too strong, and this is simply Microsoft has provided us with the best tools for the invasion. First, let's take a look at it all of those sub-command, type net /? Enter in Figure 6.

Here, we focus on the child to master a few common commands invasion.

net view

Use this command to view the remote host so sharing of resources. Command format for the net view \ IP.

net use

The remote host a shared resource mapped to local drive letter, graphical interface, easy to use, Hehe. Command format for net use x: \ IP \ sharename. The above indicated that the 192.168.0.5IP a shared directory called magic mapped as a local Z-disks. The following representation and 192.168.0.7 the establishment of IPC $ connections (net use \ IP \ IPC $ "password" / user: "name"),

Established the IPC $ connection, Oh, you can upload files: copy nc.exe \ 192.168.0.7 \ admin $, said the local directory under the nc.exe spread to the remote host, combined with the back to be introduced to the other DOS command can be achieved invaded.

net start

Use it to start the services on the remote host. When you and the remote host to establish a connection, if we find out what services it does not start, and you want to use this service, how to do? On the use of this command to start the bar. Usage: net start servername, shown in Figure 9, the successful launch of the telnet service.

net stop

Was found after the invasion of the remote host a service cumbersome, how should I do? To use this command stopped on the ok, and usage and net start the same.

net user

View and account relevant circumstances, including new accounts, delete accounts, view a specific account, activate your account, the account is disabled and so on. This is very beneficial to our invasion, and most importantly, it provides a premise we cloned an account. Type with no parameters, net user, you can view all users, including the already disabled. The following talks respectively.

1, net user abcd 1234 / add, create a new user name abcd, password for the 1234 accounts, the default for the user group members.

2, net user abcd / del, the user name abcd the user to delete.

3, net user abcd / active: no, the user name abcd the user to disable.

4, net user abcd / active: yes, activate the user name abcd users.

5, net user abcd, see the user name of the user abcd

net localgroup

View all related information and user groups and related operations. Type net localgroup without parameters that lists all current group of users. In the invasion process, we generally use it to upgrade to an account administrator group account, so that we can control the use of this account of the remote host. Usage: net localgroup groupname username / add.

Now we have just added a new administrator user group abcd go, and this time the user is already a super administrator abcd, and Oh, you can then use the net user abcd to see his state, and Figure 10 can be seen comparing out. But this is too obvious, and network management to see the users are able to escape a flawed, so this method can only deal with rookie webmaster, but we have to know. The means are now using other tools and instruments to allow cloning of a network management do not see the super administrator, this is something. Interested friends can refer to "hacker defense" Article 30 of the "progressive approach to resolve long account" a text.

net time

This command can view the remote host the current time. If your goal is just inside the entry to the remote host, then perhaps less than the commands. But the simple invasion is successful, it all just look at it? We need to further penetration. This is even the remote host needs to know the current time, because the use of time and other means (will be mentioned later) can achieve a certain commands and procedures from time to time start to lay the foundation for us to further invasion. Usage: net time \ IP.

6, at

This command's role is to arrange a specific date or time to implement a particular command and program (net time to know the importance of the bar?). When we know the remote host of the current time, you can use this command allowed at a later time (eg 2 minutes) the implementation of a program and orders. Usage: at time command \ computer.

Expressed in the 6:55 time-sharing, so that name is a-01-based computer to open telnet service (in this case shall be open net start telnet service telnet command).

7, ftp

Members of this command should be more familiar with it? Open network ftp host a lot of, much of it is anonymous, meaning that anyone can log up. Now, if you are swept into a service station open ftp host (usually port 21 opened the machine), if you do not use ftp command how to do? Here's the basic ftp commands are given to use.

First, enter the command line, type ftp, ftp the prompt appears, this time you can type "help" to see the help (any DOS commands you can use this method to see its help).

Members may see, so many order the how to use? Not so much a matter of fact also used to grasp a few basic enough.

The first is the process of landing, which use to open, and directly on the ftp prompt, enter the "open console IP ftp port" can enter the general port by default are 21, you can not write. Followed by enter a valid user name and password login, and here to introduce anonymous ftp as an example.

User name and password are ftp, password is not displayed. When prompted **** logged in when landing on a successful note. Since this is anonymous login, so users appear as Anonymous.

Next, we must introduce the use of specific commands.

DOS command dir with the same file for viewing the server directly struck the carriage return dir, you can see this ftp server files.

cd into a folder.

get download the file to your local machine.

put upload files to a remote server. That depends on whether the remote ftp server, you can write to the authority, and if so, Oh, how the use of which is not to say, everyone is free to play on the go.

delete Delete a file on a remote ftp server. It also must ensure that you have writable permissions.

bye quit the current connection.

quit ibid.

8, telnet

A powerful remote login command, almost all of the invaders like to use it, and applied successfully. Why? It is simple, as to use their own machines, as long as you are familiar with DOS commands, as a successful administrator to connect to the remote machine, you can use it to do everything you want to do a. Here's what to use, first enter type telnet, and then type help to see its help.

Then at the prompt, type open IP carriage return, then appeared landing window, allows you to enter a valid user name and password, enter any password here, are not displayed.

When you enter a user name and password are correct after the successful establishment of a telnet connection, this time you are on the remote host that has the same privileges and the user to use DOS commands can be achieved of the things you want to do. Here I use the super administrator privileges landing.

Up to this, the network introduced the DOS commands to come to an end, and here the purpose is to introduce rookie Webmaster an impression, let the network know that are familiar with and master the importance of DOS commands. In fact, and network-related DOS commands far more than that, they can only initiate network management hopes to help the vast numbers of rookie. DOS on a good network management to learn of great help, in particular, mastery of a number of network DOS commands.

In addition we should be clear, any person who want to enter the system, you must have to have a valid user name and password (input method vulnerability of the bar is almost extinct), even if you get an account only a small authority, you can also use it to reach a final objective. Therefore, we will eliminate the empty password to their account, together with a strong password, is the best defense weak passwords invasive method.

Finally, we sincerely say that cultivating a good safety awareness is the most important.

=========================================

Start → Run → Command Collection

winver --------- check the Windows version of the

wmimgmt.msc---- open the windows Management Architecture (WMI)

wupdmgr -------- windows update

wscript -------- windows Script Host Settings

write ---------- WordPad

winmsd --------- System Information

wiaacmgr ------- Scanner and Camera Wizard

winchat -------- XP comes with LAN chat

mem.exe-------- display memory usage

Msconfig.exe-- System Configuration Utility

mplayer2 ------- Simple widnows media player

mspaint -------- drawing board

mstsc ---------- Remote Desktop Connection

mplayer2 ------- Media Player

Magnifier magnify -------- utility

mmc ------------ Open the Control Panel

mobsync -------- Synchronous command

dxdiag --------- check the DirectX information

Dr. drwtsn32 ------ System

devmgmt.msc-- Device Manager

dfrg.msc------- Disk Defragmenter

diskmgmt.msc-- Disk Management Utility

dcomcnfg ------- Open the System Component Services

ddeshare ------- Open the DDE sharing settings

dvdplay -------- DVD Players

net stop messenger ----- Stop Messenger Service

net start messenger ---- Start messenger service

Open Notepad notepad --------

nslookup ------- network management tools to guide

ntbackup ------- system backup and restore

narrator ------- screen "about people"

ntmsmgr.msc---- Removable Storage Manager

ntmsoprq.msc-- Removable Storage Manager operation request

netstat-an ---- (TC) command to check the interface

syncapp -------- Create a Briefcase

sysedit -------- System Configuration Editor

sigverif ------- File Signature verification process

sndrec32 ------- recorder

Create a shared folder shrpubw --------

secpol.msc----- Local Security Policy

syskey --------- system, encryption, encryption can not be solved once the protection of the dual system, windows xp password

services.msc-- Local Service Set

Sndvol32 ------- Volume Control Program

sfc.exe-------- System File Checker

sfc / scannow --- windows file protection

tsshutdn ------- 60-second countdown shutdown command

About tourstart ------ xp (after the installation is complete roaming xp program)

Task Manager taskmgr --------

eventvwr ------- Event Viewer

procedures defined in the Private eudcedit -------

explorer ------- Open the Resource Manager

Object Packager packager -------

perfmon.msc---- computer performance monitoring procedures

progman -------- Program Manager

regedit.exe---- Registry

rsop.msc------- Group Policy Resultant Set of

regedt32 ------- Registry Editor

rononce-p ---- 15 Miao shutdown

regsvr32 / u *. dll ---- stop dll file to run

regsvr32 / u zipfldr.dll------ cancel ZIP support

cmd.exe-------- CMD Command Prompt

chkdsk.exe----- Chkdsk disk check

certmgr.msc---- Certificate Management Utility

start calc ----------- Calculator

Start Character Map charmap --------

cliconfg ------- SQL SERVER Client Network Utility

Clipbrd -------- Clipboard Viewer

conf ----------- start netmeeting

compmgmt.msc-- Computer Management

cleanmgr ------- refuse order

ciadv.msc------ indexing service program

Open Screen Keyboard osk ------------

odbcad32 ------- ODBC Data Source Administrator

oobe / msoobe / a ---- check whether the activation XP

lusrmgr.msc---- Local Users and Groups

logoff --------- cancellation of orders

iexpress ------- Trojans bundled tools, the system comes with

Nslookup ------- IP address detector

fsmgmt.msc----- Shared Folder Manager

utilman -------- Utility Manager

gpedit.msc----- Group Policy
  • del.icio.us
  • StumbleUpon
  • Digg
  • TwitThis
  • Mixx
  • Technorati
  • Facebook
  • NewsVine
  • Reddit
  • Google
  • LinkedIn
  • YahooMyWeb

Related Posts of Programmer must master the eight cmd command

  • SUI-JavaScript rich UI library integration solution

    Introduction: SUI is not a class implementation of the UI, nor is it a standard set of UI markup language, it is just to help the existing UI frameworks (such as Ext, YUI like) to mark the way to the statement and the creation of UI. The names of the ...

  • Great Design

    Understand the principle with the practice, details the relationship between thought, we'll go have selectively study the details, we must work on the details because the details are important to you to use the technical details of implementation ...

  • jdbc even ORACLE, SQLServer2000, mysql ways

    According to other people say can make a ride to one of the clear step by step, not as easy to write your own ideas! 1. Even the oracle The direct use of the oracle are provided give a jar package jdbc: oracle alone is installed, and 10g of oracle on ...

  • Rails source code analysis (1): RailsFCGIHandler

    In accordance with the sequence starting from the beginning CGI Ruby CGI Doc: The Common Gateway Interface ( CGI ) Is a simple protocol for passing an HTTP request from a web server to a standalone program, and returning the output to the web browser ...

  • Strength of live practice teaching materials, suitable for each person team look - UFIDA Hua Table CTO talk about "out of the software factory"

    A few months ago, on reading "Going the software factory," one book, not yet published at that time, it can be considered the reference of the watch. Although the language rather uneventful, but the contents of people really can not but car ...

  • Using Rails Captcha plug-in, easy implementation Verification Code

    Simple Captcha Plugin Can help us easily in the Rails implementation of Verification Code function. In addition, he has the option to provide sufficient to meet the U.S. requirements for certification, the use of easy. Supported picture and digital authen

  • Object-oriented design principles 11

    What is object-oriented design? Contains what? The benefits of it are what? Required to pay what you do? In today's age, ask these questions seem to be foolish, because this year almost every software developer knows how to use some sort of objec ...

  • Hibernate Inteceptor

    The end of the project stage, the client suddenly put forward a very troublesome but normal demand, the system records all changes must be carried out. Formats such as: 2004.1.1 12:30 Ikuya wind orders Sales Order Date 2004.1.2-> 2004.1.3 The firs ...

  • Ruby on Rails Routing - Simple Examples

    This article contains a list of ruby on rails routing examples. If you find you have any questions please leave a comment. Routes are processed from the top of routes.rb down. If a route is matched it will stop processing the routes.rb file and use t ...

  • hibernate to use the principle of

    The use of hibernate, implementation of data persistence. Has the following several processes. One configuration database connection information. Hibernate.config 2 configuration mapping. 3 use: the use of the process are the following steps: 3.1: Ge ...

Leave a Reply

Recent
Recent Entries
Tag Cloud
Random Entries