Initial commit
This commit is contained in:
18
winrm_run.sh
Executable file
18
winrm_run.sh
Executable file
@@ -0,0 +1,18 @@
|
||||
#!/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 "$@"
|
||||
Reference in New Issue
Block a user