Here is my code:
import urllib
import re
import requests
import httplib
import socket
from colorama import *
from time import gmtime, strftime
def hell():
hcon = raw_input(Fore.RED + Style.BRIGHT + "Website: ")
r = requests.get("http://" + hcon + "/phpmyadmin")
r2 = requests.get("http://" + hcon + "/pma")
if r.status_code == 404:
print(strftime("[%H:%M:%S]", gmtime()) + " /phpmyadmin/ not found!")
elif r:
print(strftime("[%H:%M:%S]", gmtime()) + " /phpmyadmin/ successfully found! %s /phpmyadmin") % (hcon)
elif r2:
print(strftime("[%H:%M:%S]", gmtime()) + " /phpmyadmin/ successfully found! %s /pma") % (hcon)
else:
print(strftime("[%H:%M:%S]", gmtime()) + " nothing found, sorry! try another website.")
hell()
As you can see, If the page /phpmyadmin or /pma exists on the selected website it will output that it was successfully found, If not it will say "nothing found etc etc.."
But I get this error: unindent does not match outer indentation level, I have never occurred this error in any of my previous python scripts.
I've tried to fix the indentation as much as I can but I don't think that will solve it, Can someone help?