Check the administrator online on the cancellation of their own:
@echo off
: Check
CHOICE/C yn/t 10/d Y
Quser find "#16" && del Xx.bat logoff
Goto Check
#16 Quser Each time you run this bat, see what the current session ID is, and add 1 to 1 each time you connect. The above is suitable for using the administrator account.
-------------------------------------------
The following are appropriate for using another account with Administrator privileges:
@echo off
Logoff 1
Del Log.bat
Logoff after the 1 changed to their own login ID number, using query user to view
Another is to prevent the sniffing process of the server from being hung out:
@rem Pinggw.bat CreatedBy Icerain
@echo off
Echo Ping ...
:p ing
Ping 127.0.0.1-n 20>nul
Ping-n 1 192.168.1.1 |find "Reply"
If%errorlevel%==0 goto:p ing
else Goto:taskkill
: Taskkill
taskkill/f/im Cain.exe
End
-----------------------------------
Manually observe the packet loss rate to prevent the machine:
Ping Www.r00ts.info
IF ERRORLEVEL 1 GOTO reboot
IF errorlevel 0 GOTO Ping
: Reboot
SHUTDOWN/R/T 0
If you see a drop rate of more than 10%, you should pay attention.
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.