Skip to content

Commit

Permalink
Simplified commands and script structure
Browse files Browse the repository at this point in the history
  • Loading branch information
0n1cOn3 committed Oct 21, 2023
1 parent 21e9883 commit 97efe25
Showing 1 changed file with 35 additions and 38 deletions.
73 changes: 35 additions & 38 deletions megascript.sh
Original file line number Diff line number Diff line change
@@ -1,45 +1,42 @@
#!/bin/bash

selection=
while true; do
clear
echo "=============================="
echo "Shodan IP Scan Resulter V1.0RC"
echo "=============================="
echo "Made with <3 by 0n1cOn3"
echo "Script only for test purposes"
echo "=============================="
echo "Github: https://github.com/0n1cOn3/ShodanIPScanResulter"
echo "=============================="

until [ "$selection" = "0" ]; do
clear
echo "∞∞∞∞∞∞∞∞∞∞∞∞∞∞∞∞∞∞∞∞∞∞∞∞∞∞∞∞∞∞∞∞∞∞∞∞∞∞∞∞∞∞∞∞∞∞∞∞∞∞∞∞∞∞∞∞∞∞∞∞∞∞∞∞∞∞"
echo " Shodan IP Scan Resulter V1.0RC "
echo "∞∞∞∞∞∞∞∞∞∞∞∞∞∞∞∞∞∞∞∞∞∞∞∞∞∞∞∞∞∞∞∞∞∞∞∞∞∞∞∞∞∞∞∞∞∞∞∞∞∞∞∞∞∞∞∞∞∞∞∞∞∞∞∞∞∞"
echo "Made with <3 by 0n1cOn3"
echo "Script only for test purposes"
echo "∞∞∞∞∞∞∞∞∞∞∞∞∞∞∞∞∞∞∞∞∞∞∞∞∞∞∞∞∞∞∞∞∞∞∞∞∞∞∞∞∞∞∞∞∞∞∞∞∞∞∞∞∞∞∞∞∞∞∞∞∞∞∞∞∞"
echo "Github: https://github.com/0n1cOn3/ShodanIPScanResulter
echo "∞∞∞∞∞∞∞∞∞∞∞∞∞∞∞∞∞∞∞∞∞∞∞∞∞∞∞∞∞∞∞∞∞∞∞∞∞∞∞∞∞∞∞∞∞∞∞∞∞∞∞∞∞∞∞∞∞∞∞∞∞∞∞∞∞"
echo "Setup Menu:"
echo "1 - Search Apache"
echo "2 - Scan IPs"
echo "0 - Exit"

echo "Setup Menu:"
echo "∞∞∞∞∞∞∞∞∞∞∞∞∞∞∞∞∞∞∞∞∞∞∞∞∞∞∞∞∞∞∞∞∞∞∞∞∞∞∞∞∞∞∞∞∞∞∞∞∞∞∞∞∞∞∞∞∞∞∞∞∞∞∞∞"
echo "1 - Search Apache"
echo "2 - Scan IPs"
echo "0 - Exit"
echo "∞∞∞∞∞∞∞∞∞∞∞∞∞∞∞∞∞∞∞∞∞∞∞∞∞∞∞∞∞∞∞∞∞∞∞∞∞∞∞∞∞∞∞∞∞∞∞∞∞∞∞∞∞∞∞∞∞∞∞∞∞∞∞∞∞∞"
read -p "Enter your choice: " selection
echo ""

echo -n "Enter your choice: "
read selection
echo ""
case $selection in
1)
python search.py search apache >> ip.txt
echo "Loading, please wait..."
sleep 5
;;
2)
# Replace "sudo" if not necessary
sudo -S python search.py scan ip-temp.txt
;;
0)
echo "Exiting..."
exit
;;
*)
echo "Invalid choice, please try again."
;;
esac

case $selection in
1)
python search.py search apache >> ip.txt && say "Loading, please wait" && sleep 5
;;
2)
# Replace "sudo" if not necessary
sudo -S python search.py scan ip-temp.txt
;;
0)
echo "Exiting..."
;;
*)
echo "Invalid choice, please try again."
;;
esac
echo ""
read -n 1 -s -r -p "Press any key to continue..."
read -n 1 -s -r -p "Press any key to continue..."
done

0 comments on commit 97efe25

Please sign in to comment.