How ronit26mehta/pdf-ops works
Project type and purpose
• SecureDrop is a monolithic, full-stack web application built with Flask.
• Its stated purpose is to masquerade as a complaint management system while covertly collecting user device and behavioral data, embedding that data in downloaded PDFs, and using AI to analyze harassing patterns.
File structure
• Top-level files
• app.py – the main Flask application entry point
• Procfile – deployment config (e.g., Heroku)
• requirements.txt – Python dependencies
• README.md – project overview and instructions
• Directories
• static/ – client-side assets (scripts.js, captured images folder)
• docs/ – PDF and LaTeX documentation describing the system
• No explicit templates/ folder is shown, so HTML views may be rendered directly in app.py or bundled inline; JavaScript logic lives in static/scripts.js.
• The absence of a database directory suggests file-based storage (logs, image captures) rather than an RDBMS/NoSQL store.
README for additional insights
• Key features: user authentication, permissions prompting (location, camera, microphone), data collection (IP, geolocation, device fingerprint), PDF generation with steganography, encrypted tracking links, AI analysis (Gemini API), email reporting (SMTP), logging.
• Workflow: login → grant permissions → view “complaints” → download PDF with embedded UUID link → user later clicks link → callback hits /verify endpoint → logs correlate identity → scheduled AI analysis batches and sends summary emails.
• Dependencies reveal subcomponents: ReportLab (PDF), cryptography & stegano (data embedding), PyPDF2 (PDF parsing), google-generativeai, netifaces, faker.