summaryrefslogtreecommitdiff
path: root/fbin-scanner.py
AgeCommit message (Collapse)AuthorFilesLines
2023-05-02fbin-scanner: Rollback session on exceptionHEADmasterJon Bergli Heier1-0/+1
The session needs to be rolled back after an error before we're able to start a new transaction.
2022-05-06fbin-scanner: Add exception handling to poll_loopJon Bergli Heier1-3/+8
2022-04-17fbin-scanner: Add a polling mode for continuous scansJon Bergli Heier1-2/+25
This should make it easier to do scans more often and with less delay after a file has been uploaded. Activated with the -p/--poll argument. Without this argument the scanner runs in the default one-shot mode.
2021-06-09Fix linting errorsJon Bergli Heier1-6/+10
Style, unused imports, unused variables, etc. as reported by flake8. Configuration for flake8 has been added to setup.cfg.
2021-04-09fbin-scanner: Skip missing filesJon Bergli Heier1-0/+6
If a file has been deleted, mark it as scanned and continue.
2020-10-29Clean up leftover file path referencesJon Bergli Heier1-2/+2
This change removes and direct references to the filesystem from the pyfbin code other that file_storage.filesystem. This should hopyfully be the last changes needed for pyfbin to be successfully run using the file_storage.s3 module without any issues.
2020-10-28Use flask-sqlalchemy instead of using sqlalchemy directlyJon Bergli Heier1-36/+36
This makes database access a bit easier and also greatly simplifies some upcoming changes.
2019-07-24fbin-scanner: Default STORAGE_MODULE to fbin.file_storage.filesystemJon Bergli Heier1-1/+1
2019-07-24fbin-scanner: Add support for file storage modulesJon Bergli Heier1-17/+20
2019-04-08fbin-scanner: Fix size limitJon Bergli Heier1-1/+1
2019-04-02fbin-scanner: Remove debug filterJon Bergli Heier1-1/+1
2019-04-02fbin-scanner: Remove debug breakJon Bergli Heier1-1/+0
2019-04-02Add support for blocking filesJon Bergli Heier1-0/+127
Files are blocked if blocked_reason is non-NULL. This value is currently not exposed publicly, instead a 404 will be returned. Files are scanned using virustotal.com's public API if scanned is False. Scans are performed by the fbin-scanner.py script. If a match is found, blocked_reason is set to the payload received. Files that are not in VT's database will be automatically submitted and the script will wait for the scan to complete before continuing.