Overview
Uniscan is a versatile vulnerability scanner that includes powerful features for web server and web application footprinting (reconnaissance). This guide covers essential Uniscan options for information gathering.
Uniscan is particularly useful for its combined approach, integrating directory/file checks, fingerprinting, and basic vulnerability scans (dynamic/static checks) into one tool.
Server Fingerprinting
Comprehensive server and service identification
Directory Enumeration
Discover hidden directories and files
Vulnerability Detection
Dynamic and static vulnerability checks
Web Fingerprinting
Identify web technologies and frameworks
Uniscan is a comprehensive web vulnerability scanner written in Perl. It's designed to find remote file inclusion (RFI), local file inclusion (LFI), and remote command execution (RCE) vulnerabilities in web applications. Beyond vulnerability scanning, it offers extensive footprinting capabilities that are essential for the reconnaissance phase of security assessments.
Always ensure you have explicit permission before scanning or testing any system you do not own. Unauthorized scanning can have legal consequences. These techniques should only be used in authorized security assessments, educational environments, or on systems you own.
Installation
Installing Uniscan
If Uniscan isn't available on your Kali Linux system (or other Debian-based distro), install it using APT:
sudo apt update && sudo apt install uniscanIf the package isn't available in your distribution's repositories, you can install Uniscan from source:
git clone https://github.com/poerschke/Uniscan.git
cd Uniscan
sudo perl Makefile.PL
sudo make
sudo make installVerification
Verify that Uniscan is properly installed and accessible:
uniscan -hBasic Usage & Help
Help Menu
To view all available command-line options and usage examples, use the -h flag:
uniscan -hThis command displays the help menu, listing flags for different scan types.
Basic Scan
The most fundamental scan targets a URL and returns basic server information:
uniscan -u http://target-ip-or-domainReplace target-ip-or-domain with the actual IP address or domain name.
Information Revealed
- Domain Information: Basic domain and IP details
- Server Software: Web server software and version (e.g.,
Apache/2.4.41 (Ubuntu)) - Initial Overview: Basic technology stack information
Results are shown in the terminal and saved to an HTML report located in the report/ directory (e.g., report/target-ip-or-domain.html).
Footprinting Techniques
Server Fingerprinting (-j)
This option performs deeper infrastructure-level reconnaissance:
uniscan -u http://target-ip-or-domain -jInformation Gathered
| Technique | Information Revealed |
|---|---|
| Network Probes | Executes ping to check host reachability and traceroute to map network path |
| DNS Resolution | Uses nslookup to retrieve associated DNS records (A, MX, NS, etc.) |
| Port Scanning | Integrates Nmap scan to identify open TCP ports and services |
The integrated Nmap scan in the -j option is an active scan that can be easily detected by firewalls and Intrusion Detection/Prevention Systems (IDS/IPS). Ensure you have authorization before scanning targets.
Web Service Fingerprinting (-g)
Focuses on identifying characteristics of the web application itself:
uniscan -u http://target-ip-or-domain -gInformation Gathered
| Technique | Information Revealed |
|---|---|
| HTTP Methods | Determines which HTTP methods are supported (GET, POST, PUT, DELETE, etc.) |
| Error Pages Analysis | Looks for verbose error messages that might leak internal information |
| HTML Source Analysis | Searches for revealing comments, hidden fields, or framework indicators |
| Favicon Check | Identifies favicon.ico file for application fingerprinting |
| Banner Grabbing | Attempts to retrieve service banners from web server |
| WHOIS Lookup | Tries to fetch WHOIS registration data for the domain |
Directory Enumeration (-q)
Attempts to discover accessible directories using a predefined wordlist:
uniscan -u http://target-ip-or-domain -qBrute-forces common directory names (e.g., /admin/, /backup/, /dev/, /config/, /test/). Directories returning an HTTP 200 OK status are listed, potentially revealing administration panels, configuration areas, or exposed documentation.
File Enumeration (-w)
Similar to directory checks, but focuses on finding specific files:
uniscan -u http://target-ip-or-domain -wUses a wordlist to look for common or sensitive files (e.g., config.php, phpinfo.php, .htaccess, robots.txt, backup files). Discovering such files can expose configuration details, source code, credentials, or other sensitive information.
Standard File Checks (-e)
Specifically checks for the presence and content of robots.txt and sitemap.xml:
uniscan -u http://target-ip-or-domain -eFiles Checked
| File | Purpose | Security Implications |
|---|---|---|
| robots.txt | Guides web crawlers on which directories to avoid | Often reveals hidden or sensitive directories |
| sitemap.xml | Provides structured list of URLs for indexing | Reveals website structure and important pages |
Advanced Scanning (Active Probing)
These options go beyond passive footprinting and actively test for vulnerabilities.
Use the -d and -s options ONLY on systems you have explicit, written permission to test. These scans are intrusive and can resemble attack traffic.
Dynamic Checks (-d)
Loads and runs various plugins to test for common web vulnerabilities by interacting with the application:
uniscan -u http://target-ip-or-domain -dVulnerabilities Tested
| Vulnerability Type | Description |
|---|---|
| Email Disclosure | Looks for exposed email addresses in application |
| Web Backdoors | Attempts to identify potential web shells |
| File Upload Forms | Identifies file upload functionality |
| phpinfo() Exposure | Checks for exposed PHP configuration |
| SQL Injection | Tests for SQL injection vulnerabilities |
| RFI/LFI | Tests for Remote/Local File Inclusion |
| XSS | Tests for Cross-Site Scripting vulnerabilities |
Dynamic checks (-d) can be very time-consuming, especially on large websites. Results and plugin effectiveness can vary.
Static Checks (-s)
Loads plugins that analyze URLs and parameters for patterns indicative of certain vulnerability types, often without extensive crawling:
uniscan -u http://target-ip-or-domain -sFocuses primarily on detecting patterns associated with: Local File Inclusion (LFI), Remote File Inclusion (RFI), and Remote Command Execution (RCE) vulnerabilities by manipulating URL parameters.
Combining Options
Multiple scanning flags can be combined for efficiency. A common comprehensive scan might include:
uniscan -u http://target-ip-or-domain -qwedsjgThis combines Directory (-q), File (-w), Robots/Sitemap (-e), Dynamic (-d), Static (-s), Server Fingerprint (-j), and Web Fingerprint (-g) checks.
Other Notable Options
| Option | Description |
|---|---|
-f file_list.txt |
Scan multiple URLs listed in a file |
-b |
Run Uniscan in the background |
-i "bing_dork" |
Perform a Bing search using the specified dork |
-o "google_dork" |
Perform a Google search using the specified dork |
GUI Interface
Graphical Interface
For users who prefer a graphical interface, Uniscan provides one:
uniscan-guiLaunching this command opens a window where you can input the target URL and select the desired scan options using checkboxes before initiating the scan.
The Uniscan GUI provides a user-friendly interface with:
- Target URL input field
- Checkbox selection for all scan types
- Real-time progress indicators
- Integrated results viewer
- Export capabilities for scan results
Conclusion
Uniscan is a powerful tool for web server footprinting and vulnerability assessment. Its combination of reconnaissance techniques and vulnerability scanning capabilities makes it a valuable addition to any security professional's toolkit.
- Uniscan provides comprehensive web server and application reconnaissance
- Combines multiple scanning techniques in a single tool
- Offers both command-line and GUI interfaces
- Includes both passive footprinting and active vulnerability scanning
- Generates detailed HTML reports for analysis
This information is for educational purposes only. Unauthorized scanning or testing of systems is illegal and unethical. Always obtain explicit permission before conducting any security assessments. Ensure compliance with all applicable laws and regulations.