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)
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)