內網嗅探自我保護用到的批處理

來源:互聯網
上載者:User
檢測管理員上線就登出自已:
  @echo off
  :check
  choice /C YN /T 10 /D Y
  quser find "#16"   && del xx.bat logoff
  goto check  
    #16 每次運行這個 bat 的時候先quser 一下,看當前的會話id 是多少,然後加1 每串連一次就會加1。以上適應使用管理員帳號時。
  -------------------------------------------
  下面適應使用擁有管理員權限的其他帳號:  
    
    @echo off
  logoff 1
  del log.bat
  logoff後面的1改成自己登陸的ID號,用query user查看
  還有一個是防止嗅探過程中把伺服器掛掉:
  @rem pinggw.bat Createdby Icerain
  @echo off
  echo ping...
  :ping
  ping 127.0.0.1 -n 20>nul
  ping -n 1 192.168.1.1 |find "Reply"
  if %ERRORLEVEL%==0 goto :ping
  else goto :taskkill
  :taskkill
  taskkill /f /im Cain.exe
  end
  -----------------------------------
  手動觀察丟包率防止當機:
  ping www.r00ts.info

  IF ERRORLEVEL 1 GOTO reboot
  IF ERRORLEVEL 0 GOTO ping
  :reboot
  shutdown /r /t 0
  如果看到丟包率超過10%就要注意了

聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在5個工作日內處理。

如果您發現本社區中有涉嫌抄襲的內容,歡迎發送郵件至: info-contact@alibabacloud.com 進行舉報並提供相關證據,工作人員會在 5 個工作天內聯絡您,一經查實,本站將立刻刪除涉嫌侵權內容。

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.