|
@@ -6,8 +6,15 @@ from scapy.layers.inet import IP, Ether, UDP, TCP
|
|
|
from scapy.packet import Raw
|
|
|
|
|
|
class PacketGenerator():
|
|
|
- """docstring for Packet_Generator"""
|
|
|
+ """
|
|
|
+ Creates packets, based on the set protocol
|
|
|
+ """
|
|
|
def __init__(self, protocol="udp"):
|
|
|
+ """
|
|
|
+ Creates a new Packet_Generator Object
|
|
|
+
|
|
|
+ :param protocol: the protocol of the packets to be created, udp or tcp
|
|
|
+ """
|
|
|
super(PacketGenerator, self).__init__()
|
|
|
self.protocol = protocol
|
|
|
|