Packet Generators: Difference between revisions
Content added Content deleted
(→Simple Examples: added) |
(→Simple Examples: m) |
||
Line 81: | Line 81: | ||
*Crafting ARP Packet: |
*Crafting ARP Packet: |
||
Be careful with this example, it will stop break your connectivity with router for some time. |
|||
You need to clear arp cache or wait for timeout on the device/router 192.168.1.1. |
|||
>>> a = ARP() |
>>> a = ARP() |
||
>>> a.pdst="192.168.1. |
>>> a.pdst="192.168.1.1" |
||
>>> a.hwsrc="11:11:11:11:11:11" |
>>> a.hwsrc="11:11:11:11:11:11" |
||
>>> a.psrc="1.1.1.1" |
>>> a.psrc="1.1.1.1" |