Skip to content

Commit

Permalink
refactored code
Browse files Browse the repository at this point in the history
  • Loading branch information
0n1cOn3 authored Oct 21, 2023
1 parent 8ece46e commit d0d8010
Showing 1 changed file with 50 additions and 52 deletions.
102 changes: 50 additions & 52 deletions update-engine.sh
Original file line number Diff line number Diff line change
@@ -1,58 +1,56 @@
#!/bin/bash
while [[ "$selection" != "0" ]]; do
clear
echo "Shodan IP Scan Resulter Core Updater"
echo "==================================="
echo ""
echo "1 - Linux"
echo "2 - Termux"
echo "3 - macOS"
echo "4 - Windows (Not Supported yet)"
echo "==================================="
read -p "Enter selection: " selection
echo ""
case $selection in
1 )
clear
echo "Shodan IP Scan Resulter Core Updater"
echo "==================================="
echo "Install Requirements"
echo "==================================="
sudo apt install -y python3 python3-pip
echo "Shodan IP Scan Resulter Core Updater"
echo "==================================="
echo "Finish"
echo "==================================="
sleep 2
./megascript
exit;;
2 )
clear
echo "Shodan IP Scan Resulter Core Updater"
echo "==================================="
echo "Install Requirements"
echo "==================================="
apk add --no-cache python3 py3-pip
echo "Shodan IP Scan Resulter Core Updater"
echo "==================================="
echo "Finish"
echo "==================================="
sleep 2
./megascript
exit;;
3 )
clear
echo "Shodan IP Scan Resulter Core Updater"
echo "==================================="
echo "Install Requirements"
echo "==================================="
brew install python3
echo "Shodan IP Scan Resulter Core Updater"
echo "==================================="
echo "Finish"
echo "==================================="
sleep 2
./megascript
exit;;
esac
echo -e "\n1 - Linux\n2 - Termux\n3 - macOS\n4 - Windows (Not Supported yet)\n==================================="
read -p "Enter selection: " selection
echo ""
case $selection in
1)
clear
echo "Shodan IP Scan Resulter Core Updater"
echo "==================================="
echo "Install Requirements"
echo "==================================="
sudo apt install -y python3 python3-pip
echo "Shodan IP Scan Resulter Core Updater"
echo "==================================="
echo "Finish"
echo "==================================="
sleep 2
./megascript
exit
;;
2)
clear
echo "Shodan IP Scan Resulter Core Updater"
echo "==================================="
echo "Install Requirements"
echo "==================================="
apk add --no-cache python3 py3-pip
echo "Shodan IP Scan Resulter Core Updater"
echo "==================================="
echo "Finish"
echo "==================================="
sleep 2
./megascript
exit
;;
3)
clear
echo "Shodan IP Scan Resulter Core Updater"
echo "==================================="
echo "Install Requirements"
echo "==================================="
brew install python3
echo "Shodan IP Scan Resulter Core Updater"
echo "==================================="
echo "Finish"
echo "==================================="
sleep 2
./megascript
exit
;;
esac
done

0 comments on commit d0d8010

Please sign in to comment.