install.sh
AArch64 (ARM64) architecture stringShell command-substitution syntax
SHA-256d44fb96be0296133123a21e4ddbec5122a1f912462189b6e229b184d825e00fc
MaleculeO₂(DyI)H₆(Cm₇DbF₆Os₄Po₇U)Md(Pt₄)
Evidence
25:19… ${NC}"
26}
27
28get_distro_name() {
29 if [ "$OS" = "Darwin" ]; then
30 if command -v sw_vers > /dev/null 2>&1; then
31 version=$(sw_vers -productVersion)
32 echo "macos@$version"
33 else
34 echo "macos@unknown"
35 fi
36 elif [ -f /etc/os-release ]; then
37 distro=$(
38 . /etc/os-release
39 echo "${ID}@${VERSION_ID}"
40 )
⋯5 lines
46
47download() {
48 url=$1
49 outfile=$2
50
51 fail_download() {
52 echoerr "Problem with downloading the file. Please check your internet connection or try again."
53 exit 1
54 }
55
56 user_agent="pwndbg-installer ($DISTRO_NAME; $ARCH; $OS)"
57 if command -v curl > /dev/null 2>&1; then
58 curl --proto '=https' --tlsv1.2 --progress-bar -LSf -A "$user_agent" "$url" -o "$outfile" || fail_download
59 return 0
60 fi
61
62 if command -v wget > /dev/null 2>&1; then
63 # 'wget' on BusyBox don't support progress options
64 if wget --help 2>&1 | grep -qi 'busybox'; then
65 WGET_CMD="wget -q"
66 else
67 WGET_CMD="wget --https-only --secure-protocol=TLSv1_2 -q --show-progress"
68 fi
69
70 $WGET_CMD -U "$user_agent" "$url" -O "$outfile" || fail_download
71 return 0
72 fi
97:13… ssing" ]; then
98 echoerr "Error: The following required commands are missing: ${YELLOW}$missing"
99 echoerr "Please install the missing commands and try again."
100 exit 1
101fi
102
103# Detect OS and architecture
104OS="$(uname -s)"
105ARCH="$(uname -m)"
106DISTRO_NAME=$(get_distro_name)
107
108VERSION="2026.10.28"
⋯6 lines
118:10… " ${CYAN}Available options:${NC} ${GREEN}pwndbg-gdb${NC}, ${GREEN}pwndbg-lldb${NC}"
119 echo
120 echo "${YELLOW}Example Usage:${NC}"
121 echo " $0 ${CYAN}-t pwndbg-gdb${NC} # Install Pwndbg for GDB"
122 …
150:25… }2) ${CYAN}pwndbg-lldb${NC}"
151
152 # Read user input
153 while true; do
154 read -r -p "Enter the number (1 or 2): " choice
155 case "$choice" in
156 1)
157 TYPE="pwndbg-gdb"
158 …
179:26… ]; then
180 echoinfo "Installing rootless..."
181 INSTALL_DIR="$HOME/.local/lib/${TYPE}"
182 BINARY_DIR="$HOME/.local/bin"
183 BINARY_SRC_PATH="${INSTALL_DIR}/bin/${BINARY_NAME}"
184 BINARY_DST_PATH="${BINARY_DIR}/${BINARY_NAME}"
185
186 # Skip sudo in rootless installation
187 sudo() {
188 ${*}
189 }
190else
191 echoinfo "Installing system-wide..."
192 INSTALL_DIR="/usr/local/lib/${TYPE}"
193 BINARY_DIR="/usr/local/bin"
194 BINARY_SRC_PATH="${INSTALL_DIR}/bin/${BINARY_NAME}"
195 BINARY_DST_PATH="${BINARY_DIR}/${B …