Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Linux Mint: Which folders need to be scanned? #38

Open
gadgetmuc opened this issue Dec 16, 2021 · 2 comments
Open

Linux Mint: Which folders need to be scanned? #38

gadgetmuc opened this issue Dec 16, 2021 · 2 comments

Comments

@gadgetmuc
Copy link

Hello there,
first of all, thanks for this handy tool. But I keep wondering, which folders need to be scanned and which can be ignored (Linux Mint). I used to scan from '/', but the program got stuck somewhere within the /dev/usb/... structure everytime.

Please give me some advice - and take a look at my other issue also. ;)

TIA

gadgetmuc

@beckerr-rzht
Copy link

You should not scan special device located in /dev, /proc, /sys etc.

And a small note regarding my merge request: ;)
This could of course be solved with find / -xdev -type f and the detector option --stdin which I added yesterday (#42 and #43)
Example:

find / -xdev -type f | java -jar log4j-detector-2021.12.17.jar --stdin

@juliusmusseau
Copy link
Contributor

There is a new --exclude option available. Could do --exclude=["/dev", "/proc"].

Also, later versions might be fine regardless since the scanner looks at the filename now before attempting to read the file. Whereas the original versions of this tool attempted to read every file! (Assume everything is a zip file unless told otherwise!). But I ditched that logic as too slow in v2021.12.16.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants