WWW::Wappalyzer - Perl port of Wappalyzer (https://wappalyzer.com)
Uncovers the technologies used on websites: detects content management systems, web shops, web servers, JavaScript frameworks, analytics tools and many more.
Supports only `scriptSrc`, `scripts`, `html`, `meta`, `headers`, 'cookies' and `url` patterns of Wappalyzer specification. Lacks 'version', 'implies', 'excludes' support in favour of speed.
Categories: https://github.com/wappalyzer/wappalyzer/blob/master/src/categories.json Technologies: https://github.com/wappalyzer/wappalyzer/tree/master/src/technologies More info on Wappalyzer: https://github.com/wappalyzer/wappalyzer
use WWW::Wappalyzer; use LWP::UserAgent; use List::Util 'pairmap'; my $response = LWP::UserAgent->new->get( 'http://www.drupal.org' ); my %detected = WWW::Wappalyzer->new->detect( html => $response->decoded_content, headers => { pairmap { $a => [ $response->headers->header($a) ] } $response->headers->flatten }, ); # %detected = ( # 'Font scripts' => [ 'Google Font API' ], # 'Caching' => [ 'Varnish' ], # 'CDN' => [ 'Fastly' ], # 'CMS' => [ 'Drupal' ], # 'Video players' => [ 'YouTube' ], # 'Tag managers' => [ 'Google Tag Manager' ], # 'Reverse proxies' => [ 'Nginx' ], # 'Web servers' => [ 'Nginx' ], # );
None by default.
my $wappalyzer = WWW::Wappalyzer->new( %params )
Constructor.
Available parameters:
categories - optional additional categories array ref to files list (refer 'add_categories_files' below) technologies - optional additional technologies array ref to files list (refer 'add_technologies_files' below)
Returns the instance of WWW::Wappalyzer class.
my %detected = $wappalyzer->detect( %params )
Tries to detect CMS, framework, etc for given html code, http headers, URL.
html - HTML code of web page. headers - Hash ref to http headers list. The value may be a plain string or an array ref of strings for a multi-valued field. Cookies should be passed in 'Set-Cookie' header. url - URL of web page. cats - Array ref to a list of trying categories names, defaults to all. Less categories - less CPU usage.
Returns the hash of detected applications by category:
( CMS => [ 'Joomla' ], 'Javascript frameworks' => [ 'jQuery', 'jQuery UI' ], )
my @cats = $wappalyzer->get_categories_names()
Returns the array of all application categories names.
$wappalyzer->add_categories_files( @filepaths )
Puts additional categories files to a list of processed categories files. See lib/WWW/wappalyzer_src/categories.json as format sample.
$wappalyzer->add_technologies_files( @filepaths )
Puts additional techs files to a list of processed techs files. See lib/WWW/wappalyzer_src/technologies/a.json as format sample.
$wappalyzer->reload_files()
Ask to reload data from additional categories and technologies files those may be changed in runtime.
Alexander Nalobin, <alexander at nalobin.ru>
<alexander at nalobin.ru>
Please report any bugs or feature requests to bug-www-wappalyzer at rt.cpan.org, or through the web interface at http://rt.cpan.org/NoAuth/ReportBug.html?Queue=WWW-Wappalyzer. I will be notified, and then you'll automatically be notified of progress on your bug as I make changes.
bug-www-wappalyzer at rt.cpan.org
You can find documentation for this module with the perldoc command.
perldoc WWW::Wappalyzer
You can also look for information at:
GitHub
https://github.com/nalobin/WWW-Wappalyzer
RT: CPAN's request tracker (report bugs here)
http://rt.cpan.org/NoAuth/Bugs.html?Dist=WWW-Wappalyzer
AnnoCPAN: Annotated CPAN documentation
http://annocpan.org/dist/WWW-Wappalyzer
CPAN Ratings
http://cpanratings.perl.org/d/WWW-Wappalyzer
Search CPAN
http://search.cpan.org/dist/WWW-Wappalyzer/
Copyright 2013-2015 Alexander Nalobin.
This program is free software; you can redistribute it and/or modify it under the terms of either: the GNU General Public License as published by the Free Software Foundation; or the Artistic License.
See http://dev.perl.org/licenses/ for more information.
To install WWW::Wappalyzer, copy and paste the appropriate command in to your terminal.
cpanm
cpanm WWW::Wappalyzer
CPAN shell
perl -MCPAN -e shell install WWW::Wappalyzer
For more information on module installation, please visit the detailed CPAN module installation guide.