kihei/i-0691f7d5a77d79293
by SadServersMore by SadServers
-rw-r--r-- 1 admin admin 220 Aug 4 2021 .bash_logout drwxr-xr-x 3 root root 4096 Sep 17 2023 .. drwx------ 2 admin admin 4096 Sep 17 2023 .ssh drwx------ 3 admin admin 4096 Sep 20 2023 .ansible drwxr-xr-x 3 admin admin 4096 Sep 20 2023 .config -rwxrwx--- 1 root root 360 Sep 24 2023 webserver.py drwxr-xr-x 6 admin admin 4096 Sep 24 2023 . drwxr-xr-x 2 admin root 4096 Sep 24 2023 agent -rw------- 1 admin admin 359 Feb 4 03:35 .bash_history admin@i-0f4b72b9b2118ab71:~$ whoami admin admin@i-0f4b72b9b2118ab71:~$ chown admin webserver.py chown: changing ownership of 'webserver.py': Operation not permitted admin@i-0f4b72b9b2118ab71:~$ less .bash_history admin@i-0f4b72b9b2118ab71:~$ cd
paris/i-0f4b72b9b2118ab71 02:29
by SadServersadmin@i-0dcdab756bd34fbc5:~$ df -h Filesystem Size Used Avail Use% Mounted on udev 217M 0 217M 0% /dev tmpfs 46M 368K 46M 1% /run /dev/nvme0n1p1 7.7G 6.1G 1.2G 84% / tmpfs 228M 12K 228M 1% /dev/shm tmpfs 5.0M 0 5.0M 0% /run/lock /dev/nvme0n1p15 124M 5.9M 118M 5% /boot/efi admin@i-0dcdab756bd34fbc5:~$ admin@i-0dcdab756bd34fbc5:~$ ls agent data datafile kihei admin@i-0dcdab756bd34fbc5:~$ cat
kihei/i-0dcdab756bd34fbc5 00:25
by SadServersudev 217M 0 217M 0% /dev tmpfs 46M 368K 46M 1% /run /dev/nvme0n1p1 7.7G 6.1G 1.2G 84% / tmpfs 228M 12K 228M 1% /dev/shm tmpfs 5.0M 0 5.0M 0% /run/lock /dev/nvme0n1p15 124M 5.9M 118M 5% /boot/efi admin@i-0059faff8289ad722:~$ lsblk NAME MAJ:MIN RM SIZE RO TYPE MOUNTPOINT nvme1n1 259:0 0 1G 0 disk nvme0n1 259:1 0 8G 0 disk ├─nvme0n1p1 259:2 0 7.9G 0 part / ├─nvme0n1p14 259:3 0 3M 0 part └─nvme0n1p15 259:4 0 124M 0 part /boot/efi nvme2n1 259:5 0 1G 0 disk admin@i-0059faff8289ad722:~$ shut
kihei/i-0059faff8289ad722 00:22
by SadServersadmin@i-0dbd5dce9178f03c1:~$ ls data lost+found admin@i-0dbd5dce9178f03c1:~$ touch data/newdatafile touch: cannot touch 'data/newdatafile': Permission denied admin@i-0dbd5dce9178f03c1:~$ sudo touch data/newdatafile admin@i-0dbd5dce9178f03c1:~$ sudo chown admin:admin data/newdatafile admin@i-0dbd5dce9178f03c1:~$ ./kihei panic: remove /home/admin/data/newdatafile: permission denied goroutine 1 [running]: main.main() ./main.go:50 +0x48d admin@i-0dbd5dce9178f03c1:~$ ls -alh /home/admin/data/newdatafile -rw-r--r-- 1 admin admin 0 Mar 8 16:31 /home/admin/data/newdatafile admin@i-0dbd5dce9178f03c1:~$