Metagoofil
An automated metadata extraction tool to recover hidden information from public documents
What is Metagoofil?
A powerful Python tool for passive reconnaissance
Automation
Automatic downloads through Google Search
Extraction
Automatic EXIF, Office and PDF metadata
Mapping
Identify employees and infrastructure
Reports
Link list and CSV export of metadata
Key features
Advanced capabilities for passive reconnaissance
Automatic download
Automatically finds and downloads every public document of a target domain through search engines.
Metadata extraction
Downloaded files are then analyzed with ExifTool: authors, software, dates, Office and PDF properties.
User mapping
Identifies usernames, authors and document creators to map an organization's staff.
Infrastructure discovery
Reveals network paths, server names, printers and internal IT infrastructure through metadata.
Exporting results
The URLs found can be saved to a file, and metadata exported to CSV with ExifTool.
Advanced filtering
Filter by file type, result limit, search depth and specific domains.
Extracted metadata types
Information automatically recovered from documents
Author & creator
Author and creator names, last modified by, organization
Dates & Timestamps
Creation, modification, print and last-save dates
Software & versions
Applications used, versions, operating system
IT infrastructure
Network paths, server names, printers, shares
Document properties
Title, subject, keywords, comments, category
Hidden information
Revisions, annotations, partially deleted metadata
Supported file formats
Document types analyzed by Metagoofil
Documents Office
PDF documents
OpenOffice/LibreOffice
Other formats
Practical use cases
Real-world Metagoofil scenarios
Company reconnaissance
Mapping staff and IT infrastructure
Detailed workflow
Document collection
metagoofil -d target.com -t pdf,doc,xls
Metadata extraction
Automatic property analysis
Author mapping
List of employees and departments
IT infrastructure
Servers, printers, network paths
Synthesis
CSV export and consolidated report
Pattern analysis
Naming conventions and structure
Security assessment
Audit of sensitive information leaks
Detailed workflow
Domain scan
Search for exposed public documents
Leak identification
Detect sensitive information
Path analysis
Reveal the internal architecture
Outdated software
Detect unpatched versions
Risk documentation
List of vulnerabilities found
Recommandations
Remediation measures
OSINT investigation
Investigating a target organization
Detailed workflow
Large-scale collection
Download every document type
Data correlation
Cross-reference the information
Timeline
Build the timeline
Organigramme
Rebuild the hierarchy
Technologies
The organization's technical stack
OSINT report
Complete intelligence summary
Command examples
Practical commands for different scenarios
Finding documents
metagoofil -d example.com -t pdfLists the URLs of indexed PDFs for the domain, without downloading anything
metagoofil -d example.com -t doc,docx,xls,xlsx,ppt,pptxSearches for Office documents, old and new formats
metagoofil -d example.com -t pdf -l 200Looks at up to 200 search results per file type
Downloading
metagoofil -d example.com -t pdf,docx -n 50 -w -o downloads-w enables downloading; -n caps it at 50 files per type, saved to downloads/
metagoofil -d example.com -t pdf -f links.txtSaves the URLs found to a file so you can review or archive them
metagoofil -d example.com -t pdf -e 60 -u -w -o downloads-e sets the delay between searches (seconds), -u uses a random User-Agent for downloads
Metadata extraction (ExifTool)
exiftool -r -Author -Creator -Producer -LastModifiedBy downloads/Shows the authors, software and last editors of each file
exiftool -r -s3 -Author -LastModifiedBy downloads/ | sort -uDe-duplicated list of names found: the basis for mapping staff
exiftool -r -csv -Author -Creator -Producer -CreateDate -ModifyDate downloads/ > metadata.csvExports the metadata to CSV for analysis in a spreadsheet
Analysis & cross-checking
exiftool -r -Producer -Creator downloads/ | sort | uniq -c | sort -rnCounts the software and versions used: handy to spot outdated versions
exiftool -r -a downloads/ | grep "\\\\"Finds metadata fields containing UNC paths (\\server\share)
exiftool -r -if '$CreateDate ge "2024"' -Author -CreateDate downloads/Filters recent documents to focus on current staff
Best practices
Recommendations for optimal, lawful use
Do
- Limit requestsUse delays to avoid Google rate limiting
- Check authorizationsMake sure you are authorized to perform reconnaissance
- Analyze the extracted metadataSort authors, software and paths in a spreadsheet
- Correlate the dataCross-check with other OSINT sources for validation
- Document sourcesKeep track of URLs and collection dates
- Generate wordlistsBuild user lists for authorized testing
Avoid
- Unauthorized scansNever scan without explicit authorization
- Excessive requestsAvoid overloading search engines
- Ignoring false positivesAlways check that information is valid
- Disclosing the dataNever publish sensitive information you find
- Ignoring the lawComply with GDPR and privacy laws
- Malicious useNever use it for phishing or attacks
Installation
Metagoofil installation guide
With apt (Kali Linux)
sudo apt install metagoofil libimage-exiftool-perlPackages maintained in the Kali repositories (Metagoofil + ExifTool)
From GitHub (development version)
git clone https://github.com/opsdisk/metagoofil.gitcd metagoofilpip3 install -r requirements.txtRequired dependencies
- Python 3.6 or later
- yagooglesearch (Google queries)
- Requests (HTTP requests)
- ExifTool (metadata extraction)
Checking the installation
metagoofil -hShould display Metagoofil's help
Legal and ethical considerations
Metagoofil is a powerful tool that can reveal sensitive information about an organization. It must always be used within a legal and ethical framework, with prior authorization.
Legitimate uses:
- Authorized security audits (pentesting)
- Assessing your own exposure
- Cybersecurity training and research
- Bug bounty with a defined scope
Resources and documentation
Useful links to go further
Ready to extract metadata?
Discover other OSINT tools and improve your passive reconnaissance skills

Ready to put it into practice?
CyberXTEL is our free platform to train hands-on: certifications, CTFs and a dedicated cyber awareness space.