MCPcopy Create free account
hub / github.com/0xj4f/offensivesecurity-python / set_load

Function set_load

code_injector.py:13–18  ·  view source on GitHub ↗
(packet, load)

Source from the content-addressed store, hash-verified

11injection_code = beef
12
13def 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
20def proccess_packet(packet):
21 scapy_packet = scapy.IP(packet.get_payload())

Callers 1

proccess_packetFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected