Benutzer-Werkzeuge

Webseiten-Werkzeuge


dos:run_wireshark.cmd

Wireshark PortableApps Startscript

Source: http://www.wireshark.org/download.html

run_wireshark.cmd
@echo off
REM # FILE: run_wireshark.cmd 
REM # Wireshark PortableApps Startscript by Mark Wolfgruber 2013-08-29
:begin 
  echo.WIRESHARK PORTABLE STARTER
  echo.==========================
  echo.
  echo.Information:
  echo.############################################################################ 
  echo.# 1st Download Wireshark PortableApps (32-bit) from 
  echo.#     http://www.wireshark.org/download.html
  echo.# 2nd create the temp directory like C:\temp\wireshark with admin rights 
  echo.#     runas /user:DOMAIN\ADMINUSER "cmd.exe /C md C:\temp\wireshark" 
  echo.# 3rd install downloaded file (WiresharkPortable-...paf.exe) to temp dir   
  echo.# 4th save these script as run_wireshark.cmd to C:\temp\wireshark
  echo.# 5th use this script and your adminaccount to start the WiresharkPortable
  echo.############################################################################
  echo.
:vars
  set ADMINUSER=%USERNAME%
:check
  if not exist "WiresharkPortable.exe" (
    echo.ERROR:
    echo.  Please install/copy this Startscript %~nx0 
    echo.  in the same directory as WiresharkPortable.exe 
    goto end
  )
:main
  set /p ADMINUSER=DOMAIN\ADMINUSER [%ADMINUSER%]:  
  runas /user:%ADMINUSER% WiresharkPortable.exe
:end
  echo.
  echo.+--------------------+
  echo.! END of Startscript !
  echo.+--------------------+
  echo.
  pause
exit 0
dos/run_wireshark.cmd.txt · Zuletzt geändert: 2013/08/29 15:57 von admin