I'm writing a subdomain scan and I made the following code (sorry to make you cry with it):
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 error is and how to fix it? Thanks