Exemple #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
     )
Exemple #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.'
Exemple #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
Exemple #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
Exemple #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
Exemple #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
Exemple #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
Exemple #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.'
Exemple #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.'
Exemple #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
Exemple #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