$ nmap -sC -sV 10.10.10.208 Starting Nmap 7.91 ( https://nmap.org ) at 2020-12-01 14:59 CST Nmap scan report for 10.10.10.208 Host is up (0.074s latency). Not shown: 997 closed ports PORT STATE SERVICE VERSION 21/tcp open ftp vsftpd 2.0.8 or later | ssl-cert: Subject: commonName=*.crossfit.htb/organizationName=Cross Fit Ltd./stateOrProvinceName=NY/countryName=US | Not valid before: 2020-04-30T19:16:46 |_Not valid after: 3991-08-16T19:16:46 |_ssl-date: TLS randomness does not represent time 22/tcp open ssh OpenSSH 7.9p1 Debian 10+deb10u2 (protocol 2.0) | ssh-hostkey: | 2048 b0:e7:5f:5f:7e:5a:4f:e8:e4:cf:f1:98:01:cb:3f:52 (RSA) | 256 67:88:2d:20:a5:c1:a7:71:50:2b:c8:07:a4:b2:60:e5 (ECDSA) |_ 256 62:ce:a3:15:93:c8:8c:b6:8e:23:1d:66:52:f4:4f:ef (ED25519) 80/tcp open http Apache httpd 2.4.38 ((Debian)) |_http-server-header: Apache/2.4.38 (Debian) |_http-title: Apache2 Debian Default Page: It works Service Info: Host: Cross; OS: Linux; CPE: cpe:/o:linux:linux_kernel
Service detection performed. Please report any incorrect results at https://nmap.org/submit/ . Nmap done: 1 IP address (1 host up) scanned in 31.39 seconds
set ftp:ssl-auth TLS set ftp:ssl-force true set ftp:ssl-allow yes set ftp:ssl-protect-list yes set ftp:ssl-protect-data yes set ftp:ssl-protect-fxp yes set ssl:verify-certificate no
# /etc/crontab: system-wide crontab # Unlike any other crontab you don't have to run the `crontab' # command to install the new version when you edit this file # and files in /etc/cron.d. These files also have username fields, # that none of the other crontabs do.
<?php /*************************************************** * Send email updates to users in the mailing list * ***************************************************/ require("vendor/autoload.php"); require("includes/functions.php"); require("includes/db.php"); require("includes/config.php"); usemikehaertl\shellcommand\Command;
if($conn) { $fs_iterator = new FilesystemIterator($msg_dir);
foreach ($fs_iterator as $file_info) { if($file_info->isFile()) { $full_path = $file_info->getPathname(); $res = $conn->query('SELECT email FROM users'); while($row = $res->fetch_array(MYSQLI_ASSOC)) { $command = new Command('/usr/bin/mail'); $command->addArg('-s', 'CrossFit Club Newsletter', $escape=true); $command->addArg($row['email'], $escape=true);