How alfiasnyah78/replex-tools works
REPLEX is a forensic file-repair tool with interactive/command-line and Flask interfaces. A user supplies a file; the application identifies its format, inspects its structure and health, then can repair it or carve embedded files. Signature definitions support detection, analysis, repair, and carving. The excerpts show both interfaces calling the shared core. The web interface also manages uploaded jobs and downloads. Repair implementations and some analysis details are only partially excerpted, so those internals are represented at module level.
Main entry points: web.py Web API · cli.py CLI · repair.py Repair engine · signatures.py Signature catalog
Components 11
User interfaces
- CLI
replex/cli.py - Web API
replex/web.py - Web GUI
replex/templates/index.html - Upload jobs
replex/web.py
Forensic workflow
- File analysis
replex/structure.py - Embedded-file carving
replex/structure.py - Repair engine
replex/repair.py
Format support
- Signature catalog
replex/signatures.py - Repair tools
replex/repair.py
Other components
- File user
- Download recipient
Connections 19
- File user → CLI: runs commands
README.md - File user → Web API: uploads file
replex/web.py - Web API → Web GUI: renders GUI
replex/web.py - CLI → File analysis: analyzes file
replex/cli.py - CLI → Repair engine: repairs file
replex/cli.py - CLI → Embedded-file carving: carves files
replex/cli.py - CLI → Signature catalog: lists signatures
replex/cli.py - CLI → Web API: starts web
replex/cli.py - Web API → Upload jobs: saves uploads
replex/web.py - Web API → File analysis: analyzes job
replex/web.py - Web API → Repair engine: repairs job
replex/web.py - Web API → Embedded-file carving: carves job
replex/web.py - Web API → Signature catalog: serves catalog
replex/web.py - Web API → Download recipient: sends files
replex/web.py - File analysis → Signature catalog: detects formats
replex/structure.py - Embedded-file carving → Signature catalog: scans signatures
replex/structure.py - Repair engine → Signature catalog: selects format
replex/repair.py - Repair engine → File analysis: checks structure
replex/repair.py - Repair engine → Repair tools: uses format engines
replex/repair.py