Network Basic DOS Commands
Posted in Computer Network Support by manyu1, ping
It is used to detect whether the network links is work unobstructed or the network connection speed.As a administrator or a hacker living in the network, ping command is the first DOS commands that need to master,it’s principle is: the machine on the network only has one determination IP addresses, we send a data packet to the target IP address,and it will return a similar size data packets,according to the returned data packets we can determine the presence of target host, and can determine it’s operating system.
Let’s take a look at some of its commonly used operations,in the DOS window, type: ping /? Enter.we only need to master some useful basic parameters.
-t mean it will continuously send data packets to the target IP, until we force it to stop.
-l defines the size of sending data packets, the default is 32 bytes, the greatest is 65500 bytes.
-n defines the number of times that IP send data packets to the target, the default is 3.
Note that, if parameter-t and parameter-n used together, ping command will put behind parameter a standard, such as “ping IP-t-n 3″, although used -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.
(Tip: If TTL = 128, then the target host may be Win2000; if TTL = 250, then the target host may be Unix)
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,the Working Group, NIC MAC address. Here we need to know a few basic parameters.
-a as long as you know the remote host machine name, you can get its NETBIOS information (below).
-A This parameter can also receive a remote host NETBIOS information, but you need to know its IP.
-n lists the local machine NETBIOS informations.
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, the open services and other information.we can know that the local machine 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 we can know all ways that the data transmitted from the local machine to the target host, which is useful to help us understanding the layout and structure of the network. Usage: tracert IP.
5, net
This command is the most important network command,because its function is too strong, and this is simply Microsoft provided us the best tools for invasion. First, let’s take a look at its all sub-command, type net /? Enter. Here, we focus on the invasion of several commonly sub-command:
net view
Use this command to view the remote host sharing of resources. Command : net view \ IP.
net use
Mapping shared resource on the remote host to a local drive letter, graphical interface is easy to use, Hehe. Command : net use x: \ IPsharename
net start
Use it to start the services on the remote host. When you establish a connection with the remote host, if we find out some services does not start, and you want to use this service, how to do?use this command you can start it. Usage: net start servername.
net stop
Was found a service cumbersome after invasion the remote host, how should we do? To use this command to stop it,the usage is same as net start
net user
View the situation related with account, including new accounts, delete accounts, view a specific account, activate account,disable account and so on.
1, net user abcd 1234 / add, create a new user named abcd, password is 1234, the default for the user group members.
2, net user abcd / del,delete the user named abcd.
3, net user abcd / active: no, disable the user named abcd.
4, net user abcd / active: yes, activate the user named abcd.
5, net user abcd, see the user named abcd
net localgroup
View all related information of user groups and related operations. Type net localgroup without parameters will lists all current group of users.
net time
This command can view the current time of the remote host.
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 current time of the remote host,we can use this command perform some procedure and orders at a later time (eg 2 minutes). Usage: at time command \ computer.
7, ftp
First, enter the command line, type ftp will appears the prompt,then you can type “help” to see the help (For any DOS commands you can use this method to see its help).
how to use these orders?
The first is landing, which need to use open, and directly enter the “open console IP ftp port” on the ftp prompt can enter,the default general port is 21, you can not write. Followed by enter a valid user name and password landed.
User name and password are ftp, password is not displayed. When prompted **** logged in,landing on is successful.
Next, we must introduce the use of specific commands.
DOS command dir with the same file for viewing the server directly, input dir and return, 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.
delete Delete a file on a remote ftp server.
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 to Administrator status in successfully connected to the remote machine, you can use it to do everything you want to do. Here’s how to use it, 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.




