MCPcopy Index your code
hub / github.com/secdev/scapy / hexedit

Function hexedit

scapy/utils.py:3249–3258  ·  view source on GitHub ↗

Run hexedit on a list of packets, then return the edited packets.

(pktlist)

Source from the content-addressed store, hash-verified

3247
3248@conf.commands.register
3249def hexedit(pktlist):
3250 # type: (_PacketIterable) -> PacketList
3251 """Run hexedit on a list of packets, then return the edited packets."""
3252 f = get_temp_file()
3253 wrpcap(f, pktlist)
3254 with ContextManagerSubprocess(conf.prog.hexedit):
3255 subprocess.call([conf.prog.hexedit, f])
3256 rpktlist = rdpcap(f)
3257 os.unlink(f)
3258 return rpktlist
3259
3260
3261def get_terminal_width():

Callers

nothing calls this directly

Calls 4

get_temp_fileFunction · 0.85
wrpcapFunction · 0.85
rdpcapFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…