1
0
Fork 0
mirror of https://github.com/dbarzin/pandora-box.git synced 2025-07-18 21:09:41 +02:00
This commit is contained in:
dbarzin 2023-03-04 21:48:48 +01:00
parent edcf2979b8
commit 86cf18bb5c
6 changed files with 12 additions and 13 deletions

View file

@ -53,6 +53,9 @@ You can configure Pandora-box in the _pandora-box.ini_ file :
; Set quarantine folder ; Set quarantine folder
QUARANTINE_FOLDER = /var/quarantine QUARANTINE_FOLDER = /var/quarantine
; Number of threads
THREADS = 24
## Logging ## Logging
Open the rsyslog config file located at /etc/rsyslog.conf: Open the rsyslog config file located at /etc/rsyslog.conf:
@ -129,5 +132,3 @@ Look a the Pandora logs files
Look a the Pandora-box logs files Look a the Pandora-box logs files
tail -500f /var/log/pandora-box.log tail -500f /var/log/pandora-box.log

View file

@ -19,5 +19,5 @@ QUARANTINE = True
; Set quarantine folder ; Set quarantine folder
QUARANTINE_FOLDER = /var/quarantine QUARANTINE_FOLDER = /var/quarantine
; Maximum number of threads ; Number of threads
THREADS = 2 THREADS = 24

View file

@ -19,5 +19,5 @@ QUARANTINE = True
; Set quarantine folder ; Set quarantine folder
QUARANTINE_FOLDER = /var/quarantine QUARANTINE_FOLDER = /var/quarantine
; Maximum number of threads ; Number of threads
THREADS = 4 THREADS = 24

View file

@ -19,5 +19,5 @@ QUARANTINE = True
; Set quarantine folder ; Set quarantine folder
QUARANTINE_FOLDER = /var/quarantine QUARANTINE_FOLDER = /var/quarantine
; Maximum number of threads ; Number of threads
THREADS = 1 THREADS = 1

View file

@ -19,5 +19,5 @@ QUARANTINE = True
; Set quarantine folder ; Set quarantine folder
QUARANTINE_FOLDER = /var/quarantine QUARANTINE_FOLDER = /var/quarantine
; Maximum number of threads ; Number of threads
THREADS = 4 THREADS = 24

View file

@ -716,14 +716,12 @@ def clean():
break break
# wait for clean # wait for clean
log('PRESS KEY TO CLEAN', flush=True) log('PRESS KEY TO CLEAN', flush=True)
screen.getch() wait_mouse_click()
# check key is still here # check key is still here
try: try:
os.statvfs(mount_point) log(f'{str(device.get("ID_FS_LABEL"))}', flush=True)
except Exception: except Exception:
log("Device not cleaned !", flush=True)
logging.info('device_not_cleaned')
return "WAIT" return "WAIT"
# Remove infected files # Remove infected files