コード例 #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)
コード例 #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)
コード例 #3
0
ファイル: MITMProxy.py プロジェクト: samatt/OpenWPM
 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)
コード例 #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)