packet-sniffers

Send Scapy serialized packets via JSON (api call)

Send Scapy serialized packets via JSON (api call) Question: I am struggling with serializing packets from scapy so I can send as JSON objects via an api call. Right now, my api call looks like so: def load_points(packet_list, permanent): print("loading points") waypoint_url = ” if(permanent): waypoint_url = "/add_permanent_points_packets" else: waypoint_url = "/add_temporary_points_packets" response = requests.post( …

Total answers: 1