question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

unable to report-csv or custom csv report path on windows at least

See original GitHub issue

Hi there, firstly, thanks for this hard work, its great!

I was doing some testing and I am using OpenJDK 11 latest JRE compressed zip file to run the jar file. Windows 2012 R2 and 2016 are hitting a problem and unable to export CSV, here is the debug log. Using the exact same scanner version and exact same OpenJDK 11 JRE on Windows 10 tho does not exhibit this issue and I get the expected CSV output.

EDIT: I ran the exact same command on working Windows 10 system, and I have the exact same error as on the Server OS’s however the CSV file generates just fine. Intriguing!

Can you please assist? Thanks again!

Download page: https://adoptium.net/releases.html?variant=openjdk11&jvmVariant=hotspot Direct download link: https://github.com/adoptium/temurin11-binaries/releases/download/jdk-11.0.13%2B8/OpenJDK11U-jre_x64_windows_hotspot_11.0.13_8.zip

c:\Users\mario\Desktop>"c:\Users\mario\Desktop\log4j_scan\openjdk\jdk-11.0.13+8-jre\bin\java.exe" -jar "c:\Users\mario\Desktop\log4j_scan\logpresso-log4j2-scan-1.7.0.jar" --drives C --silent --report-csv --debug

java.io.IOException: Cannot run program "df": CreateProcess error=2, The system cannot find the file specified
	at java.base/java.lang.ProcessBuilder.start(Unknown Source)
	at java.base/java.lang.ProcessBuilder.start(Unknown Source)
	at java.base/java.lang.Runtime.exec(Unknown Source)
	at java.base/java.lang.Runtime.exec(Unknown Source)
	at java.base/java.lang.Runtime.exec(Unknown Source)
	at com.logpresso.scanner.LinuxPartitionLoader.getPartitions(LinuxPartitionLoader.java:34)
	at com.logpresso.scanner.LinuxPartitionLoader.getExcludePaths(LinuxPartitionLoader.java:24)
	at com.logpresso.scanner.Log4j2Scanner.parseArguments(Log4j2Scanner.java:316)
	at com.logpresso.scanner.Log4j2Scanner.run(Log4j2Scanner.java:101)
	at com.logpresso.scanner.Log4j2Scanner.main(Log4j2Scanner.java:87)
Caused by: java.io.IOException: CreateProcess error=2, The system cannot find the file specified
	at java.base/java.lang.ProcessImpl.create(Native Method)
	at java.base/java.lang.ProcessImpl.<init>(Unknown Source)
	at java.base/java.lang.ProcessImpl.start(Unknown Source)
	... 10 more
Logpresso CVE-2021-44228 Vulnerability Scanner 1.7.0 (2021-12-17)

Scanned 22706 directories and 108838 files
Found 0 vulnerable files
Found 0 potentially vulnerable files
Found 0 mitigated files
Completed in 9.30 seconds

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Comments:19 (6 by maintainers)

github_iconTop GitHub Comments

2reactions
xeraphcommented, Dec 17, 2021

@tp111 Released new v2.1.1 with --no-empty-report option. It also support new exit code!

1reaction
xeraphcommented, Dec 17, 2021

@romestylez As you can see https://github.com/logpresso/CVE-2021-44228-Scanner/releases/tag/v2.1.1

  • -1 failed to run
  • 0 for clean (No vulnerability)
  • 1 for found
  • 2 for found but some errors
  • Use --old-exit-code for legacy automation.
Read more comments on GitHub >

github_iconTop Results From Across the Web

Can't read/open/ or do anything with a CSV file python 3.4 ...
The issue here is that Python uses escapes in strings - '\t' is a tab character, so when that sequence appears in your...
Read more >
CSV log of Discovery export fails to properly escape target ...
Symptoms. The export *.resultslog.csv file doesn't provide "" for the target path export value in Microsoft Exchange Server 2019 and Exchange Server 2016....
Read more >
How can I export a report as a CSV (ideally scheduled to ...
I am facing an issue that when an email is received, I am unable to open the attachment - the attachment doesn't seem...
Read more >
Prism Central Report CSV ZIP file directory appears as empty
A Prism Central Report, downloaded as the CSV ZIP file appears as an empty directory when opened with Windows Explorer.
Read more >
Hammer CLI CSV to report errata counts per host
With a command like: hammer csv content-hosts --export --file ... cat custom.csv Name,OS,Security Errata,Bug Fix Errata,Enhancement Errata ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found