kihei/i-07e7b27bf9af3ef2e
by SadServersMore by SadServers
write(2, "0x47d", 50x47d) = 5 write(2, "\n", 1 ) = 1 exit_group(2) = ? +++ exited with 2 +++ admin@i-0fb258b95e9e18f0d:~$ ./kihei -? flag provided but not defined: -? Usage of ./kihei: -h Display help -help Display help -v Verbose mode (print extra info) -verbose Verbose mode (print extra info) admin@i-0fb258b95e9e18f0d:~$ ./kihei -?
kihei/i-0fb258b95e9e18f0d 02:50
by SadServersdrwxr-xr-x 3 root root 16384 Jan 1 1970 data -rw-r--r-- 1 root root 5368709120 Sep 17 17:28 datafile -rwxr-xr-x 1 admin root 2207109 Sep 17 17:28 kihei admin@i-0e45767b31594566c:~$ chmod 777 data chmod: changing permissions of 'data': Operation not permitted admin@i-0e45767b31594566c:~$ sudo chmod 777 data admin@i-0e45767b31594566c:~$ ./kihei -v Deleting file /home/admin/data/newdatafile... panic: remove /home/admin/data/newdatafile: permission denied goroutine 1 [running]: main.main() ./main.go:50 +0x48d admin@i-0e45767b31594566c:~$ rm /home/admin/data/newdatafile rm: remove write-protected regular empty file '/home/admin/data/newdatafile'? n
kihei/i-0e45767b31594566c 09:15
by SadServersadmin@i-06e3508dbb92a146f:~$ sudo lvcreate -n lv -l 100%FREE vg Logical volume "lv" created. admin@i-06e3508dbb92a146f:~$ sudo mkfs.ext4 /dev/vg/lv mke2fs 1.46.2 (28-Feb-2021) Creating filesystem with 522240 4k blocks and 130560 inodes Filesystem UUID: a5fe2a18-cddd-4655-8847-89dc10aad8ef Superblock backups stored on blocks: 32768, 98304, 163840, 229376, 294912 Allocating group tables: done Writing inode tables: done Creating journal (8192 blocks): done Writing superblocks and filesystem accounting information: done admin@i-06e3508dbb92a146f:~$ ls
kihei/i-06e3508dbb92a146f 00:31
by SadServersif [[ "$actual_checksum" == "$expected_checksum" ]]; then echo -n "OK" else echo -n "NO" fiadmin@i-03f906c9d0e560363:~/agentcat /etc/systemd/system/flaskapp.servicepy [Unit] Description=Flask Application After=network.target [Service] ExecStart=/usr/bin/python3 /home/admin/webserver.py [Install] WantedBy=multi-user.target admin@i-03f906c9d0e560363:~/agent$ journalctl -u f