O'Reilly logo

Penetration Testing with Perl by Swizec Teller

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

HTML reporting

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 ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required