Benign arch Download

qovery-cli 1.166.3-1

“Qovery Command Line Interface”

base64.StdEncoding.Decode (Go)
SHA-2568908747b6167fbdbc90b54eee781e1dd0ad654237da3fb64f527b3e209fa2ce9
MaleculeH₂(Cm₂F)

Evidence

curl POST sets JSON Content-Type lines 1–36
1#!/bin/sh
2
3set -eu
4
5QOVERY_API_URL=${QOVERY_API_URL:='https://api.qovery.com'}
6CLUSTER_NAME=$1
7ARCH=$2
8ORGANIZATION_ID=$3
9USER_AGENT=$6
10case $3 in
11 qov_*)
12 AUTHORIZATION_HEADER="Authorization: Token $4"
13 ;;
14
15 *)
16 AUTHORIZATION_HEADER="Authorization: Bearer $4"
17 ;;
18esac
⋯9 lines
28esac
29
30POWERSHELL_CMD='powershell.exe'
31
32get_or_create_on_premise_account() {
33 accountId=$(curl -s --fail-with-body -H "${AUTHORIZATION_HEADER}" -H 'Content-Type: application/json' -H "User-Agent: ${USER_AGENT}" ${QOVERY_API_URL}/organization/"${ORGANIZATION_ID}"/onPremise/credentials | jq -r .results[0].id)
34 if [ "$accountId" = "null" ]
35 then
36 accountId=$(curl -s -X POST --fail-with-body -H "${AUTHORIZATION_HEADER}" -H 'Content-Type: application/json' -H "User-Agent: ${USER_AGENT}" -d '{"name": "on-premise"}' ${QOVERY_API_URL}/organization/"${ORGANIZATION_ID}"/onPremise/crede …
Curl or wget invocation with argument lines 51–58
⋯5 lines
56get_cluster_values() {
57 clusterId=$1
58 curl -s -X GET --fail-with-body -H "${AUTHORIZATION_HEADER}" -H 'Content-Type: application/x-yaml' -H "User-Agent: ${USER_AGENT}" ${QOV …
ifconfig command reference lines 98–114
98:10… "Install failed. Retrying in 10 seconds. To let the cluster initialize"
99 sleep 10
100 done
101
102 set +x
103}
104
105setup_network() {
106 if [ "$(uname -s)" = 'Darwin' ]; then
107 # MacOs
108 set -x
109 sudo ifconfig lo0 alias 172.42.0.3/32 up || true
110 elif grep -qi microsoft /proc/version; then
111 # Wsl
112 set -x
113 sudo ip addr add 172.42.0.3/32 dev lo || true
114 ${POWERSHELL_CMD} -Command "Start-Process powershell -Verb RunAs -ArgumentList \"netsh interface ipv4 add address name='Loopback Pseudo-Interface 1' address=172.42.0.3 mask=255.255.25 …
conditional package manager execution multi-distro lines 117–134
117}
118
119try_install_missing_deps() {
120 if which sudo >/dev/null; then
121 SUDO="sudo"
122 else
123 SUDO=""
124 fi
125
126 if which apt-get >/dev/null; then
127 echo "Installing dependencies with apt"
128 ${SUDO} apt-get update && ${SUDO} apt-get install -y jq grep sed curl iproute2
129 elif which yum >/dev/null; then
130 echo "Installing dependencies with yum"
131 ${SUDO} yum update -y && ${SUDO} yum install -y jq grep sed curl iproute
132 elif which pacman >/dev/null; then
133 echo "Installing dependencies with pacman"
134 ${SUDO} pacman …
curl HTTP request uses silent mode lines 189–209
189:21… not running. Please start Docker before running this command"
190 exit 1
191 fi
192
193 if which k3d >/dev/null; then
194 echo "k3d already installed"
195 else
196 echo "Installing k3d"
197 curl -s https://raw.githubusercontent.com/k3d-io/k3d/main/install.sh | TAG=v5.8.3 bash
198 fi
199
200 if which helm >/dev/null; then
201 echo "helm already installed"
202 else
203 echo "Installing HELM"
204 curl https://raw.githubusercontent.com/helm/helm/main/scripts/get-helm-3 | bash
205 fi
206
207 # Wsl powershell
208 if test -f /proc/version && grep -qi microsoft /proc/version; then
209 if which 'powershell.exe' >/d …

No evidence locations were recorded for this file. Raw result

Keyboard shortcuts on this page: j for the next sample, k for the previous one, x to go back to the feed, d to download the original bytes, r to re-queue the sample for analysis.