def main(): packet = Ether(src="00:0C:07:AC:02", dst="00:5E:00:00:02") / IP( dst="224.0.0.2", src='attacerIP', ttl=1) / UDP() / HSRP( priority=230, virtualIP='virtualIP') re_output = "" helper.chck(packet, re_output)
def main(): # https://github.com/secdev/Scapy/blob/master/scapy/contrib/ripng.py print("ripng") packet = RIPNG() re_output = "" helper.chck(packet, re_output)
def main(): # https://github.com/secdev/scapy/blob/master/scapy/contrib/ospf.py # load_contrib('ospf') print("ospf") packet = OSPF() re_output = "" helper.chck(packet, re_output)
def main(): # vqp # https://github.com/secdev/scapy/blob/master/scapy/contrib/vqp.py print("vqp") packet = VQP() re_output = "" helper.chck(packet, re_output)
def main(): udp_packet = IP() / UDP(dport=53) / DNS(qd=DNSQR(qname="google.com")) udp_re_output = "" udp_retcode = helper.chck(udp_packet, udp_re_output) tcp_packet = TCP(dport=53) tcp_re_output = "" tcp_retcode = helper.chck(tcp_packet, tcp_re_output) if tcp_retcode and udp_retcode: sys.exit(0) else: sys.exit(1)
def main(): packet = LLC() re_output = "[|llc]\n" \ "00:00:00:00:00:00 00:02:00:0e:00:00 0000 0:" exitcode = helper.chck(packet, re_output) sys.exit(exitcode)
def main(): packet = UDP(sport=161) / SNMP(community="private", PDU="") re_output = "00:00:30:0c:02:01 sap 70 > 00:a1:00:a2:00:16 sap 07 rr (r=52,C) len=4\n" \ ".private\n" exitcode = helper.chck(packet, re_output) sys.exit(exitcode)
def main(): packet = STP() re_output = "00:00:00:00:00:00 > 00:00:00:00:00:00 null I (s=0,r=0,C) len=17\n" \ ".....................\n" exitcode = helper.chck(packet, re_output) sys.exit(exitcode)
def main(): packet = ARP(op=ARP.who_has, psrc='192.168.1.2', pdst='192.168.1.1') re_output = "00:01:08:00:27:e6 00:01:08:00:06:04 425a 28:\n" \ ".............." exitcode = helper.chck(packet, re_output) sys.exit(exitcode)
def main(): packet = IP() / UDP(dport=123) / Raw(load=str("\x17\x00\x03\x2a") + str("\x00") * 4) re_output = "" exitcode = helper.chck(packet, re_output) sys.exit(exitcode)
def main(): packet = TCP() re_output = "00:00:00:00:00:00 00:14:00:50:00:00 5002 20:\n" \ " .....\n" exitcode = helper.chck(packet, re_output) sys.exit(exitcode)
def main(): # packet = GRE() packet = IP(dst="")/GRE(proto=254) / \ "\x83\x1b \x01\x06\x12\x01\xff\x07\xff\xff\xff\xff\xff\xff\xff \xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\x01\x07 \x00\x00" re_output = "[|ether]\n" exitcode = helper.chck(packet, re_output) sys.exit(exitcode)
def main(): packet = ICMPv6EchoRequest() re_output = "[|ether]\n" exitcode = helper.chck(packet, re_output) sys.exit(exitcode)
def main(): # https://github.com/secdev/scapy/blob/master/scapy/contrib/mpls.py packet = MPLS() re_output = "" chck(packet, re_output)
def main(): packet = Raw() re_output = "" exitcode = helper.chck(packet, re_output) sys.exit(exitcode)
def main(): # https://github.com/secdev/Scapy/blob/master/scapy/contrib/ikev2.py packet = IKEv2() re_output = "" helper.chck(packet, re_output)
def main(): # https://github.com/secdev/Scapy/blob/master/scapy/contrib/bgp.py packet = IP() / TCP() / BGPUpdate() re_output = "" helper.chck(packet, re_output)
def main(): # https://github.com/secdev/Scapy/blob/master/scapy/contrib/etherip.py packet = EtherIP() re_output = "" helper.chck(packet, re_output)
def main(): print("radius") packet = Radius() re_output = "" helper.chck(packet, re_output)
def main(): packet = DHCP(options=[("message-type", "discover"), "end"]) re_output = "[|ether]\n" exitcode = helper.chck(packet, re_output) sys.exit(exitcode)
def main(): # https://github.com/secdev/Scapy/blob/master/scapy/contrib/cdp.py packet = CDP() re_output = "" chck(packet, re_output)
def main(): packet = IP()/UDP()/TFTP()/TFTP_DATA(block=0) re_output = "" exitcode = helper.chck(packet, re_output) sys.exit(exitcode)
def main(): packet = Ether() re_output = "08:00:27:e6:42:5a Broadcast loopback 14:\n\n" exitcode = helper.chck(packet, re_output) sys.exit(exitcode)
def main(): # https://github.com/secdev/scapy/blob/master/scapy/contrib/gtp.py packet = GTP() re_output = "" helper.chck(packet, re_output)
def main(): packet = UDP() re_output = "[|ether]\n" exitcode = helper.chck(packet, re_output) sys.exit(exitcode)
def main(): packet = IP(dst="192.168.1.1", ttl=128) / ICMP() re_output = "" exitcode = helper.chck(packet, re_output) sys.exit(exitcode)
def main(): packet = TCP() re_output = "(000) ret #65535" exitcode = helper.chck(packet, re_output) sys.exit(exitcode)
def main(): packet = ARP(op=ARP.who_has, psrc='192.168.1.2', pdst='192.168.1.1') re_output = "" exitcode = helper.chck(packet, re_output) sys.exit(exitcode)