19 lines
492 B
Bash
Executable File
19 lines
492 B
Bash
Executable File
#!/usr/bin/env bash
|
|
# Quick WinRM script launcher
|
|
# Usage: ./winrm_run.sh script_name [args...]
|
|
|
|
if [ $# -eq 0 ]; then
|
|
echo "Available WinRM scripts:"
|
|
ls -1 scripts/winrm/*.py | sed 's/scripts\/winrm\///g' | sed 's/\.py//g'
|
|
echo ""
|
|
echo "Usage: $0 script_name [args...]"
|
|
echo "Example: $0 test_simple_winrm"
|
|
echo "Example: HOST=pc-74269 $0 smart_executor ../powershell/recon.ps1"
|
|
exit 1
|
|
fi
|
|
|
|
SCRIPT_NAME="$1"
|
|
shift
|
|
|
|
cd scripts/winrm && python3 $SCRIPT_NAME.py "$@"
|