Using HTML for a report to our client target is an easy way to present the data in an e-mail or with a simple private link. All we need to do is change the PDF creation
while() loop to write out HTML data instead of using the
text() method from the
PDF::API2 class. For instance, we can make each line a row in an HTML table since, technically, this is tabular data. We also have the option to just create a new HTML
div element for each line. Let's expand upon our MySQL/Perl knowledge to construct a database query to show the IP address of a host, its open ports, and any successful vulnerabilities using simple SQL queries and create HTML code dynamically for a report.
Let's insert a port scan, using the port scanning application we ...