(packet, load)
| 11 | injection_code = beef |
| 12 | |
| 13 | def set_load(packet, load): |
| 14 | packet[scapy.Raw].load = load |
| 15 | del packet[scapy.IP].len |
| 16 | del packet[scapy.IP].chksum |
| 17 | del packet[scapy.TCP].chksum |
| 18 | return packet |
| 19 | |
| 20 | def proccess_packet(packet): |
| 21 | scapy_packet = scapy.IP(packet.get_payload()) |