SSH
┌──(kali㉿kali)-[~/archive/htb/labs/lantern]
└─$ chmod 600 id_rsa.tomas
Changing the permission bits of the SSH private key of the tomas
user
┌──(kali㉿kali)-[~/archive/htb/labs/lantern]
└─$ ssh tomas@lantern.htb -i ./id_rsa.tomas
The authenticity of host 'lantern.htb (10.129.229.250)' can't be established.
ED25519 key fingerprint is SHA256:TDl7Vj5oD2AZDjVsj4t27pGKbPAUTS5AeP37kKzubpw.
This key is not known by any other names.
Are you sure you want to continue connecting (yes/no/[fingerprint])? yes
Warning: Permanently added 'lantern.htb' (ED25519) to the list of known hosts.
Welcome to Ubuntu 22.04.4 LTS (GNU/Linux 5.15.0-118-generic x86_64)
* Documentation: https://help.ubuntu.com
* Management: https://landscape.canonical.com
* Support: https://ubuntu.com/pro
System information as of Mon Aug 19 04:51:30 PM UTC 2024
System load: 0.02
Usage of /: 65.4% of 8.76GB
Memory usage: 26%
Swap usage: 0%
Processes: 221
Users logged in: 0
IPv4 address for eth0: 10.129.229.250
IPv6 address for eth0: dead:beef::250:56ff:fe94:84b0
Expanded Security Maintenance for Applications is not enabled.
0 updates can be applied immediately.
Enable ESM Apps to receive additional future security updates.
See https://ubuntu.com/esm or run: sudo pro status
You have mail.
Last login: Thu Aug 15 13:00:50 2024 from 10.10.14.46
tomas@lantern:~$ whoami
tomas
tomas@lantern:~$ hostname
lantern
tomas@lantern:~$ 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: eth0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc mq state UP group default qlen 1000
link/ether 00:50:56:94:84:b0 brd ff:ff:ff:ff:ff:ff
altname enp3s0
altname ens160
inet 10.129.229.250/16 brd 10.129.255.255 scope global dynamic eth0
valid_lft 2689sec preferred_lft 2689sec
inet6 dead:beef::250:56ff:fe94:84b0/64 scope global dynamic mngtmpaddr
valid_lft 86398sec preferred_lft 14398sec
inet6 fe80::250:56ff:fe94:84b0/64 scope link
valid_lft forever preferred_lft forever
Initial Foothold established to the target system as the tomas
user via SSH