HynekPetrak / log4shell-finder

Fastest filesystem scanner for log4shell (CVE-2021-44228, CVE-2021-45046) and other vulnerable (CVE-2017-5645, CVE-2019-17571, CVE-2022-23305, CVE-2022-23307 ... ) instances of log4j library. Excellent performance and low memory footprint.
38 stars 14 forks source link

option to exclude a path #2

Closed zhurkin closed 2 years ago

zhurkin commented 2 years ago

add arguments, option to exclude a path

HynekPetrak commented 2 years ago

Will add both, option to exclude path as well as to skip mount points

[2021-12-20 11:12:17,750] [INFO] [I] Parameters: ./test_log4shell.py / --exclude-dirs /mnt --same-fs
[2021-12-20 11:12:17,758] [INFO] [I] Analyzing paths (could take a long time).
[2021-12-20 11:12:17,759] [INFO] [I] Skipping mount point: /
[2021-12-20 11:12:17,759] [INFO] [I] Skipping mount point: /run
[2021-12-20 11:12:17,760] [INFO] [I] Skipping mount point: /run/user/1000
[2021-12-20 11:12:17,767] [INFO] [I] Skipping mount point: /run/lock
[2021-12-20 11:12:17,829] [INFO] [I] Skipping blaclisted folder: /mnt
[2021-12-20 11:12:17,830] [INFO] [I] Skipping mount point: /dev
[2021-12-20 11:12:17,830] [INFO] [I] Skipping mount point: /dev/mqueue
[2021-12-20 11:12:17,831] [INFO] [I] Skipping mount point: /dev/hugepages
[2021-12-20 11:12:17,831] [INFO] [I] Skipping mount point: /dev/shm
[2021-12-20 11:12:17,834] [INFO] [I] Skipping mount point: /dev/pts
HynekPetrak commented 2 years ago

fixed in 1.4