def check_page_is_valid(self, uri): return ( WebRequests.post_request(uri, {"username": False, "password": False, "submit": True})[2].find( "Author: Boutsakis Vagelis ([email protected])" ) != -1 )
def try_credentials(self, credentials): if 'uri' not in credentials or 'username' not in credentials or 'password' not in credentials: raise Exception("Not enough values were defined") r = WebRequests.post_request(credentials['uri'], {"username": credentials['username'], "password": credentials['password'], "submit": True}) if r[0] != 302: return False return r[2] != '\r\nPlease disable your SOCKS,Proxy or VPN and try again.'
def try_credentials(self, credentials): if 'uri' not in credentials or 'username' not in credentials or 'password' not in credentials: raise Exception("Not enough values were defined") r = WebRequests.post_request(credentials['uri'], {"username": credentials['username'], "password": credentials['password'], "submit": True}) if r[0] != 200: return False return r[2].find('Please disable your SOCKS,Proxy or VPN and try again.') == -1
def try_credentials(self, credentials): if "uri" not in credentials or "username" not in credentials or "password" not in credentials: raise Exception("Not enough values were defined") r = WebRequests.post_request( credentials["uri"], {"username": credentials["username"], "password": credentials["password"], "submit": True}, ) if r[0] != 302: return False return r[1].find("Location: index.php") != -1
def try_credentials(self, credentials): if "uri" not in credentials or "username" not in credentials or "password" not in credentials: raise Exception("Not enough values were defined") r = WebRequests.post_request( credentials["uri"], {"username": credentials["username"], "password": credentials["password"], "submit": True}, ) if r[0] != 200: return False return r[2].find("Please disable your SOCKS,Proxy or VPN and try again.") == -1
def try_credentials(self, credentials): if 'uri' not in credentials or 'username' not in credentials or 'password' not in credentials: raise Exception("Not enough values were defined") r = WebRequests.post_request( credentials['uri'], { "username": credentials['username'], "password": credentials['password'], "submit": True }) if r[0] != 302: return False return r[1].find('Location: index.php') != -1
def check_page_is_valid(self, uri): return WebRequests.get_request(uri)[2].find('<p align="center"><img src="./img/madness.png" border="0">') != -1
def check_page_is_valid(self, uri): return WebRequests.post_request(uri, {"username": False, "password": False, "submit": True})[2] == \ '\r\nPlease disable your SOCKS,Proxy or VPN and try again.'
def check_page_is_valid(self, uri): return WebRequests.post_request(uri, {"username": False, "password": False, "submit": True})[2].find("Author: Boutsakis Vagelis ([email protected])") != -1
def check_page_is_valid(self, uri): return WebRequests.get_request(uri)[2].find('<p align=\"center\"><img src=\"./img/madness.png\" border=\"0\">')\ != -1