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

command line option to set a custom output file name #179

Open
tclahr opened this issue Oct 2, 2023 · 0 comments
Open

command line option to set a custom output file name #179

tclahr opened this issue Oct 2, 2023 · 0 comments
Assignees
Labels
status: development In development phase type: enhancement New feature or request

Comments

@tclahr
Copy link
Owner

tclahr commented Oct 2, 2023

The idea is to provide a command line option (-o/--output-filename) so the analyst can set a custom output file name (without extension) as he/she wishes.

If the file already exists in the destination directory, UAC would show an error message and exit. This would avoid replacing an existing output file accidentally.

Also, some variables could be used to format the file name, such as:

  • %hostname% : replaced by the target system hostname
  • %os% : replaced by the target operating system
  • %timestamp% : replaced by the timestamp when the acquisition started (YYYYMMDDhhmmss)

Examples:

  • ./uac -p ir_triage /tmp --output-filename my_custom_collection
  • ./uac -a ./artifacts/files/logs/* /tmp -o uac-%hostname%-%os%-logs_only-%timestamp%
@tclahr tclahr added the status: development In development phase label Oct 2, 2023
@tclahr tclahr self-assigned this Oct 2, 2023
@tclahr tclahr added the type: enhancement New feature or request label Oct 2, 2023
@tclahr tclahr closed this as completed Oct 26, 2023
@tclahr tclahr reopened this Jan 7, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
status: development In development phase type: enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant