Bert-JanP / Incident-Response-Powershell

PowerShell Digital Forensics & Incident Response Scripts.
BSD 3-Clause "New" or "Revised" License
514 stars 73 forks source link

Update DFIR-Script.ps1 #5

Closed flimbot closed 1 year ago

flimbot commented 1 year ago

Fixed line with copying the EVTX files, and so it didn't fail when one did not exist.

Adapted this script for use in CrowdStrike Real Time Response (RTR) by:

Also, sorry for making a mess of the pull request.

Bert-JanP commented 1 year ago

I have seen the PR, will have a look next week. Thanks.

dumforms commented 1 year ago

I just submitted an issue noting the errors with Get-EVTXFiles. I believe @flimbot's PR will fix the issue as well.

Bert-JanP commented 1 year ago

@flimbot: Can you update the script so that it does not fail if one of the chromium paths does not exists. For example, if Firefox is not installed the script will return an error and the data will not be written to a file.

flimbot commented 1 year ago

@flimbot: Can you update the script so that it does not fail if one of the chromium paths does not exists. For example, if Firefox is not installed the script will return an error and the data will not be written to a file.

Sorry for the late response. No worries I'll take a look this week.

flimbot commented 1 year ago

Just cleared up an issue with getting the username with Windows 11.

I wrapped the Firefox part in a Test-Path but it shouldn't have errored anyway as it's using a Get-ChildItem so if it doesn't exist, nothing is returned. That's similar to the Chromium one. I'm not getting an error on Windows 10 or 11 if a browser doesn't exist.

Maybe the environment's ErrorAction is making it verbose. I can set the parameter for that, just didn't think it would have happened.

Bert-JanP commented 1 year ago

Thanks for the fix! Awsome contribution.