ROOTPLOIT
Server: nginx/1.18.0
System: Linux snslocalproxy 6.8.0-149-generic #149~22.04.1-Ubuntu SMP PREEMPT_DYNAMIC Wed Oct 28 20:58:45 UTC x86_64
User: root (0)
PHP: 7.4.33
Disabled: pcntl_alarm,pcntl_fork,pcntl_waitpid,pcntl_wait,pcntl_wifexited,pcntl_wifstopped,pcntl_wifsignaled,pcntl_wifcontinued,pcntl_wexitstatus,pcntl_wtermsig,pcntl_wstopsig,pcntl_signal,pcntl_signal_get_handler,pcntl_signal_dispatch,pcntl_get_last_error,pcntl_strerror,pcntl_sigprocmask,pcntl_sigwaitinfo,pcntl_sigtimedwait,pcntl_exec,pcntl_getpriority,pcntl_setpriority,pcntl_async_signals,pcntl_unshare,
Upload Files
File: //snap/firefox/9171/snap/command-chain/gpu-2404-wrapper
#!/bin/bash

GPU_WRAPPER="${SNAP}/gpu-2404/bin/gpu-2404-provider-wrapper"

if [ -z "$1" ]; then
    echo "Usage: gpu-2404-wrapper <command>"
    exit 1
fi

if [ -z "${SNAP}" ]; then
    echo "Not running inside a snap context: SNAP not declared"
    exit 2
fi

if [ ! -f "${GPU_WRAPPER}" ]; then
    echo "Content snap GPU wrapper '${GPU_WRAPPER}' not found: ensure slot is connected"
    exit 3
fi

# emulate "exec $@" using "source"
# have to disable "unused variables" because checkshell doesn't know that $BASH_ARGV0 is $0
# shellcheck disable=SC2034  # Unused variables left for readability
BASH_ARGV0="${GPU_WRAPPER}"
# shellcheck source=/dev/null
source "${GPU_WRAPPER}"