コード例 #1
0
ファイル: dexter_v2.py プロジェクト: chubbymaggie/BAMF
 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
     )
コード例 #2
0
ファイル: dexter_v1.py プロジェクト: Exceltior/BAMF
 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.'
コード例 #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
コード例 #4
0
ファイル: madnesspro_v114.py プロジェクト: chubbymaggie/BAMF
 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
コード例 #5
0
ファイル: dexter_v2.py プロジェクト: chubbymaggie/BAMF
 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
コード例 #6
0
ファイル: madnesspro_v114.py プロジェクト: sh1nu11bi/BAMF
 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
コード例 #7
0
ファイル: madnesspro_v114.py プロジェクト: chubbymaggie/BAMF
 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
コード例 #8
0
ファイル: dexter_v1.py プロジェクト: Exceltior/BAMF
 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.'
コード例 #9
0
ファイル: dexter_v1.py プロジェクト: sh1nu11bi/BAMF
 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.'
コード例 #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
コード例 #11
0
ファイル: madnesspro_v114.py プロジェクト: sh1nu11bi/BAMF
 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