Git Script Injection
[bob@server home]$ cat git/.ssh/id_rsa
-----BEGIN OPENSSH PRIVATE KEY-----
b3B...<SNIP>...aXQ=
-----END OPENSSH PRIVATE KEY-----
[bob@server tmp]$ ./linpeas.sh
╔══════════╣ Backup files (limited 100)
-rw-r--r-- 1 root root 66 Jan 15 2021 /etc/crontab.bak
[bob@server tmp]$ cat /etc/crontab.bak
*/3 * * * * /root/git-server/backups.sh
*/2 * * * * /root/pull.sh[bob@server tmp]$ ./pspy64
2025/08/04 16:02:01 CMD: UID=0 PID=17170 | /bin/sh -c /root/pull.sh
2025/08/04 16:02:01 CMD: UID=0 PID=17171 | git pull
2025/08/04 16:03:01 CMD: UID=0 PID=17191 | /bin/sh -c /root/git-server/backups.shLast updated