Add files via upload
This commit is contained in:
parent
82a8925586
commit
5ff7cfd24d
1 changed files with 15 additions and 0 deletions
15
unload.ps1
Normal file
15
unload.ps1
Normal file
|
@ -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
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue