shell bypass 403

Cubjrnet7 Shell

: /proc/thread-self/root/usr/share/dpkg/sh/ [ drwxr-xr-x ]

name : dpkg-error.sh
#
# Copyright © 2010 Raphaël Hertzog <[email protected]>
# Copyright © 2011-2015 Guillem Jover <[email protected]>
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation; either version 2 of the License, or
# (at your option) any later version.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with this program.  If not, see <https://www.gnu.org/licenses/>.
#
# shellcheck shell=sh

# This shell library (since dpkg 1.20.1) provides reporting support.
#
# Symbols starting with «_dpkg_» are considered private and should not
# be used outside this shell library.

# Set a default program name (since 1.22.12).
: "${PROGNAME:=$(basename "$0")}"

# Standard ANSI colors and attributes.
COLOR_NORMAL=''
COLOR_RESET=''
COLOR_BOLD=''
COLOR_BLACK=''
COLOR_RED=''
COLOR_GREEN=''
COLOR_YELLOW=''
COLOR_BLUE=''
COLOR_MAGENTA=''
COLOR_CYAN=''
COLOR_WHITE=''
COLOR_BOLD_BLACK=''
COLOR_BOLD_RED=''
COLOR_BOLD_GREEN=''
COLOR_BOLD_YELLOW=''
COLOR_BOLD_BLUE=''
COLOR_BOLD_MAGENTA=''
COLOR_BOLD_CYAN=''
COLOR_BOLD_WHITE=''

: "${DPKG_COLORS=auto}"

case "$DPKG_COLORS" in
auto)
  if [ -t 1 ]; then
    _dpkg_use_colors=yes
  else
    _dpkg_use_colors=no
  fi
  ;;
always)
  _dpkg_use_colors=yes
  ;;
*)
  _dpkg_use_colors=no
  ;;
esac

if [ $_dpkg_use_colors = yes ]; then
  _dpkg_color_clear="$COLOR_RESET"
  _dpkg_color_prog="$COLOR_BOLD"
  _dpkg_color_hint="$COLOR_BOLD_BLUE"
  _dpkg_color_info="$COLOR_GREEN"
  _dpkg_color_notice="$COLOR_YELLOW"
  _dpkg_color_warn="$COLOR_BOLD_YELLOW"
  _dpkg_color_error="$COLOR_BOLD_RED"
else
  _dpkg_color_clear=""
fi
_dpkg_fmt_prog="$_dpkg_color_prog$PROGNAME$_dpkg_color_clear"

# This function is deprecated and kept only for backwards compatibility.
# Supported since dpkg 1.20.1.
# Deprecated since dpkg 1.22.12.
setup_colors()
{
  :
}

# Supported since dpkg 1.20.1.
debug() {
  if [ -n "$DPKG_DEBUG" ]; then
    echo "$_dpkg_fmt_prog: debug: $*" >&2
  fi
}

# Supported since dpkg 1.20.1.
error() {
  echo "$_dpkg_fmt_prog: ${_dpkg_color_error}error${_dpkg_color_clear}: $*" >&2
  exit 1
}

# Supported since dpkg 1.20.1.
warning() {
  echo "$_dpkg_fmt_prog: ${_dpkg_color_warn}warning${_dpkg_color_clear}: $*" >&2
}

# Supported since dpkg 1.22.14.
notice() {
  echo "$_dpkg_fmt_prog: ${_dpkg_color_notice}notice${_dpkg_color_clear}: $*"
}

# Supported since dpkg 1.22.14.
info() {
  echo "$_dpkg_fmt_prog: ${_dpkg_color_info}info${_dpkg_color_clear}: $*"
}

# Supported since dpkg 1.22.14.
hint() {
  echo "$_dpkg_fmt_prog: ${_dpkg_color_hint}hint${_dpkg_color_clear}: $*"
}

# Supported since dpkg 1.20.1.
badusage() {
  echo "$_dpkg_fmt_prog: ${_dpkg_color_error}error${_dpkg_color_clear}: $1" >&2
  echo >&2
  echo "Use '$PROGNAME --help' for program usage information." >&2
  exit 1
}

© 2025 Cubjrnet7