Skip to content

Instantly share code, notes, and snippets.

@h4x0r
Last active June 10, 2025 02:18
Show Gist options
  • Save h4x0r/b1a2ca1ed60f8b974069410e65f293f1 to your computer and use it in GitHub Desktop.
Save h4x0r/b1a2ca1ed60f8b974069410e65f293f1 to your computer and use it in GitHub Desktop.
Pull all .evtx underneath a directory into the current directory, prefixed with the directory name, for multi-host bulk processing
#!/bin/sh
for d in "$@"; do
fdfind '.evtx$' $d -x cp {} "$d#{/}“
done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment