2017-05-30 17:58:27 +00:00
|
|
|
@echo off
|
2022-12-11 06:57:56 +00:00
|
|
|
setlocal
|
2019-02-24 11:48:54 +00:00
|
|
|
set PYTHONPATH=%~dp0
|
2020-03-26 13:37:23 +00:00
|
|
|
REM shift will not work with %*
|
|
|
|
set "_args=%*"
|
2022-12-11 06:57:56 +00:00
|
|
|
IF "%PYTHON%" == "" set PYTHON=py
|
|
|
|
WHERE %PYTHON% >nul 2>&1
|
|
|
|
IF %ERRORLEVEL% NEQ 0 set PYTHON=
|
2023-03-04 23:16:38 +00:00
|
|
|
IF "%1" == "-3" (
|
2022-12-11 06:57:56 +00:00
|
|
|
if "%PYTHON%" == "py" (
|
|
|
|
set "PYTHON=py -3"
|
|
|
|
) else (
|
|
|
|
set PYTHON=python3
|
|
|
|
)
|
2020-03-26 13:37:23 +00:00
|
|
|
set "_args=%_args:~3%"
|
2022-12-11 06:57:56 +00:00
|
|
|
) else (
|
|
|
|
IF "%PYTHON%" == "" set PYTHON=python3
|
|
|
|
WHERE %PYTHON% >nul 2>&1
|
|
|
|
IF %ERRORLEVEL% NEQ 0 set PYTHON=python
|
2020-03-26 13:37:23 +00:00
|
|
|
)
|
|
|
|
%PYTHON% -m scapy %_args%
|
2019-02-24 11:48:54 +00:00
|
|
|
title Scapy - dead
|
|
|
|
PAUSE
|