PORT STATE SERVICE VERSION 22/tcp open ssh OpenSSH 8.0 (protocol 2.0) | ssh-hostkey: | 3072 ad:6d:15:e7:44:e9:7b:b8:59:09:19:5c:bd:d6:6b:10 (RSA) | 256 d6:d5:b4:5d:8d:f9:5e:6f:3a:31:ad:81:80:34:9b:12 (ECDSA) |_ 256 69:79:4f:8c:90:e9:43:6c:17:f7:31:e8:ff:87:05:31 (ED25519) 80/tcp open http Apache httpd 2.4.37 ((centos)) |_http-title: CyberSploit2 | http-methods: |_ Potentially risky methods: TRACE |_http-server-header: Apache/2.4.37 (centos) MAC Address: 08:00:27:F3:2C:38 (Oracle VirtualBox virtual NIC) Warning: OSScan results may be unreliable because we could not find at least 1 open and 1 closed port Device type: general purpose Running: Linux 3.X|4.X OS CPE: cpe:/o:linux:linux_kernel:3 cpe:/o:linux:linux_kernel:4 OS details: Linux 3.2 - 4.9 Network Distance: 1 hop
┌──(kali㉿kali)-[~/Documents/CyberSploit2] └─$ ssh shailendra@192.168.1.105 The authenticity of host '192.168.1.105 (192.168.1.105)' can\'t be established. ED25519 key fingerprint is SHA256:Ua5bYFU7jRE2PNF3w1hs2yrzHmyU7Q3FWj0xvMKZDro. This key is not known by any other names. Are you sure you want to continue connecting (yes/no/[fingerprint])? yes Warning: Permanently added '192.168.1.105' (ED25519) to the list of known hosts. shailendra@192.168.1.105\'s password: Last login: Wed Jul 15 12:32:09 2020 [shailendra@localhost ~]$ whoami shailendra [shailendra@localhost ~]$ id uid=1001(shailendra) gid=1001(shailendra) groups=1001(shailendra),991(docker) context=unconfined_u:unconfined_r:unconfined_t:s0-s0:c0.c1023 [shailendra@localhost ~]$ ip a 1: lo: <LOOPBACK,UP,LOWER_UP> mtu 65536 qdisc noqueue state UNKNOWN group default qlen 1000 link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00 inet 127.0.0.1/8 scope host lo valid_lft forever preferred_lft forever inet6 ::1/128 scope host valid_lft forever preferred_lft forever 2: enp0s3: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc fq_codel state UP group default qlen 1000 link/ether 08:00:27:f3:2c:38 brd ff:ff:ff:ff:ff:ff inet 192.168.1.105/24 brd 192.168.1.255 scope global dynamic noprefixroute enp0s3 valid_lft 367sec preferred_lft 367sec inet6 fe80::2128:7b5:cf42:2c22/64 scope link noprefixroute valid_lft forever preferred_lft forever 3: docker0: <NO-CARRIER,BROADCAST,MULTICAST,UP> mtu 1500 qdisc noqueue state DOWN group default link/ether 02:42:da:26:3c:36 brd ff:ff:ff:ff:ff:ff inet 172.17.0.1/16 brd 172.17.255.255 scope global docker0 valid_lft forever preferred_lft forever [shailendra@localhost ~]$ uname -a Linux localhost.localdomain 4.18.0-193.6.3.el8_2.x86_64 #1 SMP Wed Jun 10 11:09:32 UTC 2020 x86_64 x86_64 x86_64 GNU/Linux [shailendra@localhost ~]$ sudo -l [sudo] password for shailendra: Sorry, user shailendra may not run sudo on localhost.
[shailendra@localhost ~]$ cat hint.txt docker [shailendra@localhost ~]$ cat .bash_history ifconfig whoami pwd cat /etc/shadow su cd id docker run -it /bin/bash busybox docker run busybox -it /bin/bash is id docker image ls docker exec -i -t c7 /bin/bash docker exec -i -t busybox /bin/bash docker image ls id docker run -it busybox su docker iamge ls ls cd pwd ls cd . cd .. pwd ls pwd cat /etc/passwd cat /etc/shadow su cd pwd ls cd su cd ls pwd ll cd /home/ ls cat docker > hint.txt sudo cat docker > hint.txt ls cd shailendra ll echo docker > hint.txt ls cat hint.txt docker -v docker image ls docker run busybox -it docker run -i -t busybox ls cd ls cat hint.txt ls cd pwd ls cd su shailendra