-2
I am writing a subdomain scan and did the following code (I’m sorry for making you cry with such):
import requests
while True:
url = raw_input("url: ")
lista = ['blog', 'ftp', 'cpanel', 'intranet']
for list in lista:
url2 = url.replace("www", list)
req = requests.get(url2)
if req == True:
print ("Ok " + url2)
else:
print ("Nop" + url2)
Could you tell me where the mistake is and how to fix it? Thank you
What exactly is the problem? Doesn’t it work? It’s a mistake? What happens if you run the program?
– Woss