Ejemplo n.º 1
0
 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
     )
Ejemplo n.º 2
0
 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.'
Ejemplo n.º 3
0
 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
Ejemplo n.º 4
0
 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
Ejemplo n.º 5
0
 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
Ejemplo n.º 6
0
 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
Ejemplo n.º 7
0
 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
Ejemplo n.º 8
0
 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.'
Ejemplo n.º 9
0
 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.'
Ejemplo n.º 10
0
 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
Ejemplo n.º 11
0
 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