command-line-murders/i-078031f81f2853e16
by SadServersMore by SadServers
admin@i-0c40ab7a7d10f43af:~$ sudo lvcreate -n lv -l 100%FREE vg Logical volume "lv" created. admin@i-0c40ab7a7d10f43af:~$ mkfs.ext4 /dev/vg/lv mke2fs 1.46.2 (28-Feb-2021) Could not open /dev/vg/lv: Permission denied admin@i-0c40ab7a7d10f43af:~$ lsblk -l NAME MAJ:MIN RM SIZE RO TYPE MOUNTPOINT vg-lv 254:0 0 2G 0 lvm nvme1n1 259:0 0 1G 0 disk nvme0n1 259:1 0 8G 0 disk nvme2n1 259:2 0 1G 0 disk nvme0n1p1 259:3 0 7.9G 0 part / nvme0n1p14 259:4 0 3M 0 part nvme0n1p15 259:5 0 124M 0 part /boot/efi admin@i-0c40ab7a7d10f43af:~$ mkfs.ext4 /dev/vg/lv
kihei/i-0c40ab7a7d10f43af 04:28
by SadServersadmin@i-0c469078d13136d60:~$ sudo curl localhost:5000 We trust you have received the usual lecture from the local System Administrator. It usually boils down to these three things: #1) Respect the privacy of others. #2) Think before you type. #3) With great power comes great responsibility. [sudo] password for admin: sudo: a password is required admin@i-0c469078d13136d60:~$ nc localhost5000 nc: missing port number admin@i-0c469078d13136d60:~$ nc localhost 5000 G
paris/i-0c469078d13136d60 01:28
by SadServersdrwxr-xr-x 23 root root 680 Feb 13 18:17 run drwx------ 5 root root 4.0K Feb 13 18:24 root admin@i-05b98f7b26e35f62f:/$ cd admin@i-05b98f7b26e35f62f:~$ ls -Strlh total 5.1G -rw-r--r-- 1 root root 5.0G Sep 17 17:28 datafile -rwxr-xr-x 1 admin root 2.2M Sep 17 17:28 kihei drwxr-xr-x 2 admin root 4.0K Sep 17 17:28 agent drwxr-xr-x 2 admin root 4.0K Feb 13 18:24 data admin@i-05b98f7b26e35f62f:~$ cd data/ admin@i-05b98f7b26e35f62f:~/data$ ls admin@i-05b98f7b26e35f62f:~/data$ cd . admin@i-05b98f7b26e35f62f:~/data$ cd .. admin@i-05b98f7b26e35f62f:~$ mv datafile data admin@i-05b98f7b26e35f62f:~$ ./kihei
kihei/i-05b98f7b26e35f62f 07:19
by SadServersLISTEN 0 4096 *:8080 *:* users:(("gotty",pid=559,fd=6)) LISTEN 0 128 [::]:22 [::]:* admin@i-063fac77df199e9d3:~$ lsof -i :5000 admin@i-063fac77df199e9d3:~$ lsof -i:5000 admin@i-063fac77df199e9d3:~$ lsof -i :8080 COMMAND PID USER FD TYPE DEVICE SIZE/OFF NODE NAME gotty 559 admin 6u IPv6 11594 0t0 TCP *:http-alt (LISTEN) gotty 559 admin 7u IPv6 11877 0t0 TCP ip-172-31-39-158.us-east-2.compute.internal:http-alt->ip-172-31-16-109.us-east-2.compute.internal:40662 (ESTABLISHED) admin@i-063fac77df199e9d3:~$ lsof -i :5000 admin@i-063fac77df199e9d3:~$