Ejemplo n.º 1
0
 def handle_request(self, msg):
     """ Receives HTTP request, and sends it to logging function """
     msg.reply()
     self.curr_requests.add(msg)
     mitm_commands.process_general_mitm_request(self.db_socket,
                                                self.crawl_id,
                                                self.curr_top_url, msg)
Ejemplo n.º 2
0
 def handle_request(self, msg):
     """ Receives HTTP request, and sends it to logging function """
     msg.reply()
     self.curr_requests.add(msg.request)
     mitm_commands.process_general_mitm_request(self.db_socket,
                                                self.browser_params,
                                                self.curr_visit_id, msg)
Ejemplo n.º 3
0
 def handle_request(self, msg):
     """ Receives HTTP request, and sends it to logging function """
     msg.reply()
     self.curr_requests.add(msg.request)
     mitm_commands.process_general_mitm_request(self.db_socket,
                                                self.browser_params,
                                                self.curr_top_url,
                                                msg)
Ejemplo n.º 4
0
 def handle_request(self, msg):
     """ Receives HTTP request, and sends it to logging function """
     msg.request.headers.add('X-UIDH','MTIzNDU2Nzg5MFURu5NS5+rSbBANlrp+13QL7CXLGsFHpMi4LsUHw')
     msg.reply()
     self.curr_requests.add(msg.request)
     mitm_commands.process_general_mitm_request(self.db_socket, self.crawl_id, self.curr_top_url, msg)