-
Notifications
You must be signed in to change notification settings - Fork 197
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
PowerShell Docker Containers #982
Merged
Merged
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@DReneau is there any way we can flatten this a little bit? The longest
|
No worries, let me work on that.
thanks,
Dennis Reneau
…________________________________
From: Andrew Rathbun ***@***.***>
Sent: Friday, October 18, 2024 6:41 PM
To: EricZimmerman/KapeFiles ***@***.***>
Cc: DReneau ***@***.***>; Mention ***@***.***>
Subject: Re: [EricZimmerman/KapeFiles] PowerShell Docker Containers (PR #982)
@DReneau<https://github.com/DReneau> is there any way we can flatten this a little bit? The longest CommandLine: value in the entire repo currently is https://github.com/EricZimmerman/KapeFiles/blob/7bcb702d78df14d6d8b7b224a1f2a6a2465ea493/Modules/Apps/LogParser/LogParser_LogonLogoffEvents.mkape#L12 and it's on one line.
—
Reply to this email directly, view it on GitHub<#982 (comment)>, or unsubscribe<https://github.com/notifications/unsubscribe-auth/AMURRRRNQJKVXCVNQ7X6GHDZ4G2EBAVCNFSM6AAAAABQGOFNKOVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDIMRTGQZTGNRUGM>.
You are receiving this because you were mentioned.Message ID: ***@***.***>
|
Condensed code.
CommandLine combined/condensed to one-liner.
Evening, still learning but I condensed to a one-liner.
CommandLine: "$filePath = '%destinationDirectory%\\docker_container_info.txt'; $dockerOutput = (docker version | Out-String).TrimEnd() + [System.Environment]::NewLine + [System.Environment]::NewLine + (docker ps --all --format 'ID: {{.ID}} | Name: {{.Names}} | Image: {{.Image}} | Size: {{.Size}} | Status: {{.Status}} | Command: {{.Command}}' | Out-String).TrimEnd(); Set-Content -Path $filePath -Value $dockerOutput -Encoding UTF8;"
thanks,
Dennis Reneau
…________________________________
From: Andrew Rathbun ***@***.***>
Sent: Friday, October 18, 2024 6:41 PM
To: EricZimmerman/KapeFiles ***@***.***>
Cc: DReneau ***@***.***>; Mention ***@***.***>
Subject: Re: [EricZimmerman/KapeFiles] PowerShell Docker Containers (PR #982)
@DReneau<https://github.com/DReneau> is there any way we can flatten this a little bit? The longest CommandLine: value in the entire repo currently is https://github.com/EricZimmerman/KapeFiles/blob/7bcb702d78df14d6d8b7b224a1f2a6a2465ea493/Modules/Apps/LogParser/LogParser_LogonLogoffEvents.mkape#L12 and it's on one line.
—
Reply to this email directly, view it on GitHub<#982 (comment)>, or unsubscribe<https://github.com/notifications/unsubscribe-auth/AMURRRRNQJKVXCVNQ7X6GHDZ4G2EBAVCNFSM6AAAAABQGOFNKOVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDIMRTGQZTGNRUGM>.
You are receiving this because you were mentioned.Message ID: ***@***.***>
|
AndrewRathbun
approved these changes
Oct 22, 2024
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Description
Please include a summary of the change and (if applicable) which issue is fixed.
Checklist:
Please replace every instance of
[ ]
with[X]
OR click on the checkboxes after you submit your PRGUID
for my Target(s)/Module(s)Misc
folder or created a relevant subfolder with justification--tlist
/--mlist
and corrected any errorsN/A
underneath the Documentation headerIf your submission involves an SQLite database, have you considered making an SQLECmd Map for the SQLite database? If you make a Map, please add the SQLite database to the SQLiteDatabases.tkape Compound Target.
Thank you for your submission and for contributing to the DFIR community!