mirror of
https://github.com/The-Art-of-Hacking/h4cker.git
synced 2024-12-18 10:56:09 +00:00
Create basic_ipv6_scapy_packet.py
This commit is contained in:
parent
24c916ca1f
commit
b60ad2eac0
@ -0,0 +1,10 @@
|
||||
from scapy.all import *
|
||||
|
||||
# create the packet
|
||||
packet = IP(src="10.1.1.2", dst="10.3.2.88")/TCP(dport=445)
|
||||
|
||||
# send the packet
|
||||
send(packet)
|
||||
|
||||
# You can also use sr() function for sending and receiving packet at the same time.
|
||||
# ans, unans = sr(packet, timeout=2)
|
Loading…
Reference in New Issue
Block a user