Adding -q option ?
See original GitHub issue- WHAT ? One-liner output for each discovered log4j-core-2.x.jar file.
[me@rocky8t01 log4j-finder]$ sudo ./dist/log4j-finder -bq /tmp
$HOSTNAME [shorter timestamp ] VULNERABLE: /tmp/apache-log4j-2.8-bin/log4j-core-2.8.jar -> org/apache/logging/log4j/core/net/JndiManager.class [415c13e7c8505fb056d540eac29b72fa: log4j 2.7 - 2.8.1]
[me@rocky8t01 log4j-finder]$
- WHY ? So that it is better used with CM tool like saltstack/ansible tools. -b option to exclude banner is still too much verbose for me.
[me@rocky8t01 log4j-finder]$ sudo ./dist/log4j-finder -bq /tmp
usage: log4j-finder [-h] [-v] [-n] [-b] [PATH ...]
log4j-finder: error: argument -b/--no-banner: ignored explicit argument 'q'
[me@rocky8t01 log4j-finder]$ sudo ./dist/log4j-finder -b /tmp
[2021-12-16 20:55:05.573146] Scanning: /tmp
[2021-12-16 20:55:05.596662] VULNERABLE: /tmp/apache-log4j-2.8-bin/log4j-core-2.8.jar -> org/apache/logging/log4j/core/net/JndiManager.class [415c13e7c8505fb056d540eac29b72fa: log4j 2.7 - 2.8.1]
[2021-12-16 20:55:05.679576] Finished scan, elapsed time: 0.11 seconds
Summary:
Processed 291 files and 23 directories
Scanned 44 files
Found 1 vulnerable files
Elapsed time: 0.11 seconds
[me@rocky8t01 log4j-finder]$
Issue Analytics
- State:
- Created 2 years ago
- Comments:5 (3 by maintainers)
Top Results From Across the Web
Command line options | Basics | kdb+ and q documentation
Command-line syntax for invoking q and list of the command-line options.
Read more >What is the point of "grep -q" - Stack Overflow
I was reading the grep man page and came across the -q option, which tells grep to "not write anything to standard output....
Read more >Overall Options (Using the GNU Compiler Collection (GCC))
Read command-line options from file . The options read are inserted in place of the original @ file option. If file does not...
Read more >Q&A in Teams meetings - Microsoft Support
If you want a person to moderate Q&A for your meeting, then add them as a ... Open the invite from your calendar...
Read more >apt-get(8) - Linux man page
apt-get is the command-line tool for handling packages, and may be considered the user's "back-end" to other tools using the APT library.
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Fixed in b15038b99c0ceb21be1e4d0823b5c29bb60816e6
human text is enough for me. minus microseconds will be great.