ttxsscheck - list potential XSS problems with a Template Toolkit file
Usage: ttxsscheck [options] [files] Options: -h (--help) This help -l DIR (--lib=DIR) Library directory (INCLUDE_PATH) (multiple) -p MOD (--plugin=MOD) Additional perl class names that you would like to load. Useful if you have custom filters. (multiple) -f (--filter) Override what is considered a 'good' filter (multiple) Examples: # single file check -- setting INCLUDE_PATH to handle relative includes # one or more of the 'html' or 'uri' filters must be used for the GET # to be considered "good" ttxsscheck -l /your/tt/root -f html -f uri -f other_filter /your/tt/root/index.tt # using xargs and find to do a whole bunch of TT files find /your/tt/root-name '*.tt' | xargs ttxsscheck [options]
To install Template::Directive::XSSAudit, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Template::Directive::XSSAudit
CPAN shell
perl -MCPAN -e shell install Template::Directive::XSSAudit
For more information on module installation, please visit the detailed CPAN module installation guide.