Esempio n. 1
0
    def __save_results(self, web, v_type):
        w = web.get_url()
        db = DBAdapter()
        db.vulnerability_found(self.process, w, v_type)
        db.close_connection()

        data = {
            "PROCESS": self.process,
            "WEB": w,
            "VULNERABILITY": "CSRF",
            "USER": self.user
        }
        requests.post(api, json=data)
Esempio n. 2
0
    def __save_results(self, web, v_type):
        w = web.get_url()
        db = DBAdapter()
        db.vulnerability_found(self.process, w, v_type)
        db.close_connection()

        if v_type == 1:
            v = "Authentication attempt"
        elif v_type == 2:
            v = "Error based SQL injection"
        else:
            v = "SQL injection"

        data = {
            "PROCESS": self.process,
            "WEB": w,
            "VULNERABILITY": v,
            "USER": self.user
        }
        requests.post(api, json=data)
Esempio n. 3
0
    def __save_results(self, web, v_type):
        w = web.get_url()
        db = DBAdapter()
        db.vulnerability_found(self.process, w, v_type)
        db.close_connection()

        if v_type == 1:
            v = "Authentication attempt"
        elif v_type == 2:
            v = "Error based SQL injection"
        else:
            v = "SQL injection"

        data = {
            "PROCESS": self.process,
            "WEB": w,
            "VULNERABILITY": v,
            "USER": self.user
        }
        requests.post(api, json=data)