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/docker/3618/bin/iptables
#!/usr/bin/env bash

# If kernel support is missing (and nft fails), automatically assume xtables
USE_NFTABLES="$(nft list ruleset > /dev/null 2> /dev/null && echo true || echo false)"

# Otherwise resolve the iptables symlink from the host and use
# xtables if it is pointing to xtables-legacy-multi or the
# pre-nftables xtables binary
if [ "$USE_NFTABLES" == "true" ]; then
    if readlink -f /var/lib/snapd/hostfs/sbin/iptables 2>/dev/null | grep -q "xtables-legacy-multi$"; then
        USE_NFTABLES=false
    fi

    if readlink -f /var/lib/snapd/hostfs/sbin/iptables 2>/dev/null | grep -q "xtables-multi$"; then
        USE_NFTABLES=false
    fi

    # If it's not a symlink then it is pure a pure xtables implementation
    if readlink -f /var/lib/snapd/hostfs/sbin/iptables 2>/dev/null | grep -q "^/var/lib/snapd/hostfs/sbin/iptables$"; then
        USE_NFTABLES=false
    fi
fi

if [ "$USE_NFTABLES" == "true" ]; then
    BIN=xtables-nft-multi
else
    BIN=xtables-legacy-multi
fi

exec "$BIN" iptables "$@"