How saihemanth022004/secureshare works
SecureShare is a file-scanning and protected file-sharing web application. Users sign in, upload files for malware analysis, and receive a share code and QR link for safe files; they can later manage uploads or retrieve shared files with expiry and password checks. The graph reflects the sampled Flask, scanner, model-loading, Firebase, and browser code. Some route and scanner wiring is inferred from the module responsibilities and partial excerpts; uncertain links are omitted.
Main entry points: app.py Flask API · model_loader.py Model loading · script.js Page handlers · scanner.py File scanner
Components 19
Web client
- Upload page
frontend/upload.html - Download page
frontend/download.html - Dashboard
frontend/dashboard.html - Page handlers
frontend/js/script.js - Client auth
frontend/js/auth.js
Application API
- Flask API
backend/app.py - Sharing utilities
backend/utils.py
Malware analysis
- File scanner
backend/scanner.py - Feature extraction
backend/feature_extractor.py - Model loading
backend/model_loader.py - Ensemble detector
backend/model_classes.py - Model artifacts
models - Feature schemas
features - Feature scalers
scalers
Storage and sharing
- Application records
backend/database.py - Firebase adapter
backend/firebase_service.py
Other components
- User
- Firebase services
- Filescan service
Connections 23
- User → Upload page: uploads file
- User → Download page: enters code
- User → Dashboard: manages files
- Upload page → Page handlers: uses handlers
- Download page → Page handlers: uses handlers
- Dashboard → Page handlers: uses handlers
- Page handlers → Flask API: calls API
- Page handlers → Client auth: gets token
- Client auth → Firebase services: authenticates
- Flask API → Firebase adapter: verifies token
- Flask API → File scanner: scans upload
- File scanner → Feature extraction: extracts features
- File scanner → Model loading: gets models
- Model loading → Model artifacts: loads models
- Model loading → Feature schemas: loads schemas
- Model loading → Feature scalers: loads scalers
- Model loading → Ensemble detector: restores detector
- File scanner → Filescan service: requests scan
- Flask API → Sharing utilities: creates share data
- Flask API → Application records: reads and writes
- Flask API → Firebase adapter: stores file bytes
- Application records → Firebase adapter: gets database
- Firebase adapter → Firebase services: uses storage and auth