-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Simplified commands and script structure
- Loading branch information
Showing
1 changed file
with
35 additions
and
38 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |