Prevent cain from dropping the network

Source: Internet
Author: User

Many of my friends accidentally hung up while sniffing. That regret .....
Of course, you should choose as few services as possible to sniff. For example, if you want to sniff 1433 and 80 of the target, it will be useless if you sniff other services.
This will greatly reduce the possibility of a server. If the packet loss rate exceeds 10%, you should pay attention to it. Stop now and check if it is not set.
What if I accidentally hung up.
Okay. Here we have prepared a BAT for you to run it during sniffing.
====== Start ==========
: Ping
Choice/c yn/T 120/D Y
Ping g.cn
If errorlevel 1 GOTO reboot
If errorlevel 0 GOTO ping
: Reboot
Shutdown/r/t 0
======= End ==========
Here, you can set g.cn as the IP address of the gateway or your IP address.
If you can ping the server, continue to ping the server. If you cannot ping the server, you will consider the server as a machine. (Of course, you should test in advance whether the server can be pinged or change to packet loss)
Then restart the instance. However, it is easy to find that the instance is restarted. You 'd better write some statements by yourself, such as ending the cain statement. You can also call the previous script for free use.

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.