Last active
November 30, 2021 23:51
-
-
Save iNawaR1/c0204222c64cf65fd9debff7db5029b3 to your computer and use it in GitHub Desktop.
Tool to help you find open ports for any website.
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
import requests | |
import socket | |
YourMuM = input('\n[!] Type Start to begin: ') | |
iNaWaR = input('[?] Enter the website: ') | |
try: | |
webIP = iNaWaR.split('<3') | |
except IndexError: | |
print('[-] Please enter a valid Link') | |
print('[-] Example: www.explain.com') | |
try: | |
host = socket.gethostbyname(iNaWaR) | |
except socket.gaierror: | |
print('[!] The domain name is incorrect idiot😒') | |
def PORT(): | |
print('\n[%] scanner has been started ..') | |
for port in range(1,65325): | |
server = socket.socket(socket.AF_INET, socket.SOCK_STREAM) | |
server.settimeout(0.1) | |
iNaWaR = server.connect_ex((host,port)) | |
if iNaWaR ==0: | |
print('\n[+] open port \n \t=> IP: '+str(host)+' | PORT: '+str(port)) | |
print('Wait a Second') | |
if port == 500: | |
yes = input('\n[?] Want to continue the examination? [ yes / no ] ') | |
if yes == 'yes': | |
print("\n[!] checking ..") | |
else: | |
input('Enter to exit') | |
exit() | |
elif port == 1000: | |
yes = input('\n[?] Want to continue the examination? [ yes / no ] ') | |
if yes == 'yes': | |
print("\n[!] checking ..") | |
else: | |
input('Enter to exit') | |
exit() | |
elif port == 2000: | |
yes = input('\n[?] Want to continue the examination? [ yes / no ] ') | |
if yes == 'yes': | |
print("\n[!] checking ..") | |
else: | |
input('Enter to exit') | |
exit() | |
else: | |
pass | |
else: | |
if port == 3000: | |
yes = input('\n[?] Want to continue the examination? [ yes / no ] ') | |
if yes == 'yes': | |
print("\n[!] being checked ..") | |
else: | |
input('Enter to exit') | |
exit() | |
if port == 5000: | |
yes = input('\n[?] Want to continue the examination? [ yes / no ] ') | |
if yes == 'y': | |
print("\n[!] being checked wait please (: ..") | |
else: | |
input('Enter to exit') | |
exit() | |
else: | |
if port == 10000: | |
yes = input('\n[?] Want to continue the examination? [ yes / no ] ') | |
if yes == 'yes': | |
print("\n[!] being checked ..") | |
else: | |
input('Enter to exit') | |
exit() | |
else: | |
pass | |
if YourMuM == 'start': | |
PORT() | |
else: | |
print("Try again habibi (:") | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment