\documentclass{article}
\usepackage[utf8]{inputenc}
\usepackage{longtable}
\usepackage{booktabs}
\usepackage{geometry}
\geometry{a4paper, margin=2pt, landscape}
\usepackage{makecell}
\usepackage{array}
\usepackage{multirow}
\title{Infrastructure Scan Results}
\author{Generated by scans2any}
\date{\today}

\begin{document}
\maketitle

\begin{longtable}{llllll}
\caption{Infrastructure Scan Results} \\
\toprule
\makecell[l]{IP-Addresses} & \makecell[l]{Hostnames} & \makecell[l]{Ports} & \makecell[l]{Services} & \makecell[l]{Banners} & \makecell[l]{OS} \\
\midrule
\endfirsthead
\caption[]{Infrastructure Scan Results} \\
\toprule
\makecell[l]{IP-Addresses} & \makecell[l]{Hostnames} & \makecell[l]{Ports} & \makecell[l]{Services} & \makecell[l]{Banners} & \makecell[l]{OS} \\
\midrule
\endhead
\midrule
\multicolumn{6}{r}{Continued on next page} \\
\midrule
\endfoot
\bottomrule
\endlastfoot
\makecell[l]{1.1.1.1} & \makecell[l]{host1.example.com} & \makecell[l]{22/tcp} & \makecell[l]{ssh} & \makecell[l]{} & \makecell[l]{} \\
\makecell[l]{2.2.2.2} & \makecell[l]{empty-host.example.com} & \makecell[l]{} & \makecell[l]{} & \makecell[l]{} & \makecell[l]{} \\
\end{longtable}

\end{document}
