Perl and LWP
We will use the
Perl scripting language
to develop the web application scanner outlined in this chapter.
Perl’s extensive support of regular expressions and
platform independence makes it a great language with which to develop
our scanner. We have kept the code syntax as straightforward and
easy-to-follow as possible, and we will explain each block of code as
we develop it. We will use the Libwww-perl user agent module
(LWP::UserAgent) native to many Perl
installations. LWP is essentially a WWW client library that allows
you to easily make HTTP requests from a Perl script. If you want to
learn more about LWP, read Perl and LWP, by Sean
Burke (O’Reilly).
Another nice thing about LWP is that it supports HTTP requests over
SSL as long as the
Crypt::SSLeay
Perl module and
OpenSSL libraries are installed. If you want to use the scanner on
HTTPS web applications, ensure that the
Crypt::SSLeay module and OpenSSL libraries are
installed and working.
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access