#!/bin/sh
# Receiver-side command invoked by Runtime.exec(String) through the Commons Collections chain.
# The caller supplies a target-local marker path and a payload token. Process IDs make
# each fresh command-execution observation unique even when exact payload bytes are replayed.
set -eu
parent_pid=$(ps -o ppid= -p $$ | tr -d ' ')
printf 'PWNED-TIER2 token=%s shell_pid=%s parent_pid=%s %s\n' "$2" "$$" "$parent_pid" "$(id)" > "$1"
