From 5ff7cfd24d60cf1195b6cb9efbac8926bc423632 Mon Sep 17 00:00:00 2001 From: I-Am-Jakoby Date: Mon, 26 Dec 2022 13:10:10 -0600 Subject: [PATCH] Add files via upload --- unload.ps1 | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100644 unload.ps1 diff --git a/unload.ps1 b/unload.ps1 new file mode 100644 index 0000000..8eb9db4 --- /dev/null +++ b/unload.ps1 @@ -0,0 +1,15 @@ +# Set the destination directory on the desktop +$dest = "$env:USERPROFILE\Desktop\jakoby-payloads" + +# Create the destination directory if it doesn't already exist +if (-not (Test-Path $dest)) { + New-Item -ItemType Directory -Path $dest | Out-Null +} + +# Get all text files in the current directory and its subdirectories +$textFiles = Get-ChildItem -Path . -Recurse -Include "*.txt" -File + +# Copy the text files to the destination directory +foreach ($textFile in $textFiles) { + Copy-Item -Path $textFile.FullName -Destination $dest +} \ No newline at end of file