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

Logic error 3, should not reach here.. #31

Open
ManuelBerrueta opened this issue Jul 15, 2022 · 1 comment
Open

Logic error 3, should not reach here.. #31

ManuelBerrueta opened this issue Jul 15, 2022 · 1 comment

Comments

@ManuelBerrueta
Copy link

ManuelBerrueta commented Jul 15, 2022

I was running the script like so .\DeepBlue.ps1 C:\Path\Tp\myEvtxFile.evtx
I verified that I am using a valid evtx file and it opens fine with Event Viewer.
I am reaching this Logic error 3, should not reach here..

I commented out that check on the switch and then it would hit a following Logic error 1, should not reach here....

Unfortunately, I cannot provide the evtx file for testing which I am sure would be helpful.

I can share that issue looks to be an unsupported type in the $event.LogName of Microsoft-Windows-TerminalServices-RDPClient/Operational. Which looks not to be supported at the moment in the code.

As a thought/suggestion, it may be worthwhile to have some kind of processing anyway, even if is not a supported LogName to try to get something useful out of it.

@silicon-cowboi
Copy link

It looks like the script wants the .evtx file named a specific way. Once I changed the name of mine to Security.evtx it worked
switch ($event.LogName){
"Security" {$logname="Security"}
"System" {$logname="System"}
"Application" {$logname="Application"}
"Microsoft-Windows-AppLocker/EXE and DLL" {$logname="Applocker"}
"Microsoft-Windows-PowerShell/Operational" {$logname="Powershell"}
"Microsoft-Windows-Sysmon/Operational" {$logname="Sysmon"}
"Microsoft-Windows-WMI-Activity/Operational" {$logname="WMI-Activity"}
default {"Logic error 3, should not reach here...";Exit 1}
}

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

2 participants