How joblinours/workzint works
Identifying the Project Type and Purpose
• The project is a workflow automation tool for OSINT analyses.
• Its purpose is to streamline data collection using tools (Holehe, SpiderFoot, Sherlock), merge the outputs, generate comprehensive reports (in Markdown/PDF), capture screenshots of identified links, and provide an interface via a web API for further interaction.
Breaking Down the Main Components
a. Data Input & Management:
• API & Database: An external API (site_web/api.php) is used, along with configuration files in the .env folder, to retrieve emails/noms d'utilisateur from a database.
• Environment & Credentials: Configuration files (.web_creds.conf and .db_connect_osint) store database and API credentials.
b. Data Collection Module:
• Scripts for OSINT data collection:
• holeheson.py: Executes Holehe for email data.
• spiderfood.py: Executes SpiderFoot for additional email-based data.
• cherchlock.py: Executes Sherlock for username analyses.
• These tools are typically containerized using Docker, emphasizing a separation where each tool might run in its isolated environment.
c. Data Aggregation and Processing:
• merge.py: Merges data collected from the different OSINT tools, deduplicates information, and organizes it for subsequent use.
• This module acts as the intermediary that ensures data consistency.
d. Report Generation:
• rapport.py: Uses merged data to produce detailed reports in Markdown and optionally converts them to PDF via Pandoc.
• Reports and logs are stored in the /rapport directory for easy access.
e. Screenshot Capture Module:
• Integrated within data processing (or possibly as part of merge.py), it automatically visits detected links to capture screenshots, saving them in the /screen directory.
f. Orchestration:
• god.py: The central orchestrator that sequences the entire workflow—from triggering collection scripts, handling API calls to fetching emails, to coordinating subsequent merge and reporting steps.
g. Web Interface:
• site_web/analyse.html and site_web/api.php:
• Offers an API to integrate with other systems or retrieve data from the database.
Relationships and Data Flow
• Input Stage:
• The system receives target emails via an API call to the database (configured via .env files).
• god.py initiates the workflow.
• Data Collection Stage:
• god.py triggers individual collection scripts (holeheson.py, spiderfood.py, cherchlock.py) that run inside Docker containers.
• Each script outputs results in JSON format to the /result directory.
• Data Aggregation and Reporting:
• merge.py takes the JSON files as inputs, deduplicates and merges the data, and even triggers screenshot captures.
• rapport.py then processes these results to generate user-centric reports.
• Visualization:
• The generated reports (in /rapport) and screenshots (in /screen) are made accessible via the web interface.
• The API (site_web/api.php) further enables data retrieval from a database.
• Support Technologies:
• Docker is critical to encapsulate external OSINT tools.
• Pandoc is used to convert Markdown reports into PDFs.
Architectural Patterns and Design Principles
• Modularity: Components are well-separated (collection, aggregation, reporting), which is reflected in the directory structure.
• Orchestration: A central orchestrator (god.py) to sequence and coordinate tasks.
• Containerization: Use of Docker to run external tools independently.
• API-driven communication: Between the web interface and the database for dynamic data retrieval.