Comments (5)
on Windows - check in %ProgramData%/Qualys there should be an .out file
from log4jscanwin.
I noticed that only the /report_sig produced a .out file. If I run the Log4JScanner executable in a regular command prompt a new window is opened and I'm not able to view the results. If I run command prompt as an admin and run the scanner, the window doesn't go away and I am able to see the results.
from log4jscanwin.
I'm running into the same issue. Also, I noticed that the .out file has 3 ascii characters at the beginning (I think they may be causing issues with our RMM being able to check for specific words in the file).
Ideally, being able to have a file created for the other reports and/or having the output show in the command prompt that the program is being executed from (not another command prompt window as is being done now) so I can grab the contents programmatically, would be a huge help.
from log4jscanwin.
As a workaround Iam writing the Output into a File, converting it to UTF8 and then loading it into a variable.
Not a beautiful way but it works.
Sample Code:
Start-Process -FilePath $Scanner -ArgumentList "/scan","/report_pretty" -WorkingDirectory "C:\Windows\Temp\Qualys\Log4jScanner\x64" -Wait -RedirectStandardOutput "C:\windows\Temp\Qualys\Report.json" -RedirectStandardError "C:\windows\Temp\Qualys\Errors.txt"
Get-Content "C:\windows\Temp\Qualys\Report.json" -Encoding Unicode | Set-Content -Encoding UTF8 "C:\windows\Temp\Qualys\Report-utf8.json" -Force
Get-Content "C:\windows\Temp\Qualys\Report-utf8.json" | Write-Output
$ScanResult=Get-Content -Raw -Path "C:\windows\Temp\Qualys\Report-utf8.json" | ConvertFrom-Json
from log4jscanwin.
I've updated the Readme.md file to stress the need to run the tool from an elevated command prompt. Certain versions of Windows disconnect the input/output streams of commands when running commands that require elevated privileges from regular command prompts.
from log4jscanwin.
Related Issues (20)
- No Summary after Errors HOT 1
- Feature-Request: Throttling
- Log4JScanner does not scan mountpoints
- Getting errors when running with /report_sig HOT 2
- Allow run of /report and /report_sig together
- Question: encoding problem when GenerateJSONReport function is used
- Out Of Memory (C++ Exception) HOT 8
- Commit https://github.com/Qualys/log4jscanwin/commit/d7b27613f717027e244498892cc530f754560c0c breaks the /lowpriority switch on 64-bit systems. HOT 2
- Exclude from scan parameter HOT 1
- Scan finds issue - remediate finds none HOT 3
- CVE-2021-4104 QID
- Rescan Function
- network_scan option does not find any network drives
- How can I get a report? HOT 1
- Issue with a false positive on log4j-1.2-api-2.17.1.jar files
- Agent not picking up log4j_findings.out HOT 1
- exclude multiple directories from scan
- report_pretty switch shows nothing regardless of the scan results
- Unable to parse signature report C:\ProgramData\Qualys\log4j_findings.out: The data is invalid.
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from log4jscanwin.