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

CPAN Perl modules

The previous few examples have been relying on slurping in the shell output from the curl command and working with it as an array. We can forgo the command-line tool curl, and use Perl itself to make the HTTP request. We will do this using the LWP::UserAgent Perl module available from CPAN (http://cpan.org). CPAN stands for Comprehensive Perl Archive Network and hosts a massive code base that we can utilize for stable and tested code reuse. If there are already classes for the code we want in CPAN, it is always best to use them first. Why? Because by doing so, we cut out the need for dependencies and create cross-platform applications. What if we give our imgGrab application to a coworker, who doesn't have curl installed on their ...

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