Questions about this topic? Sign up to ask in the talk tab.
Difference between revisions of "Vanguard"
From NetSec
(→Nmap Module) |
(→Local File Inclusion) |
||
Line 69: | Line 69: | ||
- '%00' | - '%00' | ||
- | - | ||
− | '''lfi_test''': | + | * '''lfi_test''': This is a filename to look for on the remote host. |
− | + | * '''lfi_match''': Contents inside of the file (in '''regular expression format''') to confirm file inclusion. | |
− | '''lfi_match''': | + | * '''lfi_exits''': Sometimes this test does not require an exit, other times it does (like a null [[Byte|byte]]).}}{{protip|It can be a good idea to use file extensions or language codes (e.g. %00en, %00php) as exits in this configuration file.}} |
− | + | ||
− | '''lfi_exits''': | + | |
===LDAP=== | ===LDAP=== |
Revision as of 04:25, 12 January 2012
Contents
Description
Vanguard is a comprehensive web penetration testing tool written in Perl that identifies vulnerabilities in web applications. |
Features
Main application features:
- Fully Configurable
- WebCrawlers crawl all open HTTP and HTTPS ports output from nmap
- LibWhisker2 For HTTP IDS Evasion (Same options as nikto)
- Tests via GET,POST, and COOKIE
- SQL injection (This test is signature free!)
- LDAP Injection
- XSS
- File inclusion
- Command Injection
Usage
perl scan.pl -h [hostname] -e [evasion option]
Installation
Application Dependencies
Notice: You must run this application as root.
You must have nmap from http://nmap.org installed to run this application correctly. |
Protip: You can undo the root requirement by removing the check for root and modifying the nmap configuration.
Perl Dependencies
LibWhisker2 requires Net::SSLeay. You may need to get this from cpan, compile it in, or install it from your distribution's package manager. |
- YAML
- CloneNotice: You can install these libraries with cpan.
Configuration
Main Configuration
This is the configuration in config.yml. |
Vanguard has a very simple set of configuration options. --- rewrite: 0 use_whitelist: 1 module_whitelist: - WEBAPPS - SHELL - NMAP - CRAWL - XSS_GET - SQL_GET - LFI_GET - RCI_GET
|
WebCrawler
This configuration is located in /modules/recon/CRAWL/conf.yml |
The only option for the webcrawler is the crawl depth. --- depth: 20
|
Nmap Module
This configuration is located in /modules/recon/NMAP/conf.yml |
This code is currently only used to specify the flags used on nmap at runtime. Read the module's code for more information. --- flags: "-P0 --defeat-rst-ratelimit -sSV -F"
|
Notice: See the nmap manual for additional information.
Protip: The S in -sSV is the reason this scan requires root.
Local File Inclusion
You can find this configuration in /modules/test/LFI_*/conf.yml. |
The file inclusion test is relatively simple. --- lfi_test: '%2e%2e/%2e%2e/%2e%2e/%2e%2e/%2e%2e/%2e%2e/%2e%2e/%2e%2e/%2e%2e/%2e%2e/%2e%2e/%2e%2e/etc/passwd' lfi_match: "root\:.\:0\:0" lfi_exits: - '%00' -
|
Protip: It can be a good idea to use file extensions or language codes (e.g. %00en, %00php) as exits in this configuration file.
LDAP
you can find blah |
--- ldap_true: - ")(&" - ")(&)(" ldap_false: - ")(|" - ")(|)("
Remote File Inclusion
You can find this blah |
--- rfi_test: http://asdf.com/ rfi_match: 89asdf.gi
Command Injection
you can find blah |
--- entries: - '|' - ';' - '&&'
SQL injection
You can find these configuration files & options in modules/test/SQL_GET/conf.yml and modules/test/SQL_POST/conf.yml. |
This file defines several variables for automated SQL injection testing. --- sql_spacers: - '%20' - '+' sql_entries: - "" - '%27' - '%bf%27' sql_exits: - -- - /* - )-- - )/*
|
Download
The end-user is liable for his-or her own actions with the use of this software. Running this against a system you do not own without written authorization is a criminal act. |