Add payload
This commit is contained in:
parent
2d6564f300
commit
c939c7b85b
@ -6,8 +6,9 @@ s.bind(("wlp3s0", 0))
|
|||||||
src_addr = 0xffffffffffff
|
src_addr = 0xffffffffffff
|
||||||
dst_addr = 0xffffffffffff
|
dst_addr = 0xffffffffffff
|
||||||
ethertype = 0x1337
|
ethertype = 0x1337
|
||||||
|
payload = b'Hello World'
|
||||||
|
|
||||||
packet = dst_addr.to_bytes(6) + src_addr.to_bytes(6) + ethertype.to_bytes(2)
|
packet = dst_addr.to_bytes(6) + src_addr.to_bytes(6) + ethertype.to_bytes(2) + payload
|
||||||
print(packet)
|
print(packet)
|
||||||
|
|
||||||
s.send(packet)
|
s.send(packet)
|
||||||
|
Loading…
Reference in New Issue
Block a user