Ein Service von Siegrist SystemLösungen

Scapy IPv6 One-liners

TCP Syn Scan:

>>> p = sr1(IPv6(dst="ipv6.google.com",)/TCP(dport=80,flags="S"))
>>> p.show()
###[ IPv6 ]###
version= 6L
tc= 0L
fl= 0L
plen= 24
nh= TCP
hlim= 56
src= 2a00:1450:4016:800::1012
dst= 2001:8e0:1423::113
###[ TCP ]###
sport= http
dport= ftp_data
seq= 1876916804
ack= 1
dataofs= 6L
reserved= 0L
flags= SA
window= 14400
chksum= 0xa0f0
urgptr= 0
options= [('MSS', 1410)]

TCP Syn Scan über Ports 10 - 500:

>>> ans,unans = sr(IPv6(dst="ipv6.google.com",)/TCP(dport=(10,500),flags="S"))
>>> ans.summary(lambda(s,r):(r.src, s.dport, r.sprintf("{TCP:%TCP.flags%}{ICMPv6TimeExceeded:ICMPv6: %ICMPv6TimeExceeded.type%}{ICMPv6EchoReply:ICMPv6: %ICMPv6EchoReply.type%}{ICMPv6DestUnreach:ICMPv6: %ICMPv6DestUnreach.code%}{ICMPv6ParamProblem:ICMPv6: %ICMPv6ParamProblem.type%}")))
('2001:7f8:24::4a', 19, 'ICMPv6: Communication with destination administratively prohibited')
('2001:7f8:24::4a', 20, 'ICMPv6: Communication with destination administratively prohibited')
('2001:7f8:24::4a', 21, 'ICMPv6: Communication with destination administratively prohibited')
('2a00:1450:4016:800::1012', 80, 'SA')
('2a00:1450:4016:800::1012', 443, 'SA')

TCP Ack Scan:

>>> p = sr1(IPv6(dst="ipv6.google.com",)/TCP(dport=80,flags="A"))
>>> p
<IPv6 version=6L tc=0L fl=0L plen=20 nh=TCP hlim=56 src=2a00:1450:4016:800::1012 dst=2001:8e0:1423::113 |<TCP sport=http dport=ftp_data seq=0 ack=0 dataofs=5L reserved=0L flags=R window=0 chksum=0xdaed urgptr=0 |>>

UDP Scan:

>>> ans,unans = sr(IPv6(dst="ipv6.google.com",)/UDP(dport=80))
>>> ans.res
[(<IPv6 nh=UDP dst=2a00:1450:4016:0800:0000:0000:0000:1013 |<UDP dport=http |>>, <IPv6 version=6L tc=0L fl=0L plen=56 nh=ICMPv6 hlim=59 src=2001:7f8:24::4a dst=2001:8e0:1423::113 |<ICMPv6DestUnreach type=Destination unreachable code=Communication with destination administratively prohibited cksum=0x26e3 unused=0x0 |<IPerror6 version=6L tc=0L fl=0L plen=8 nh=UDP hlim=60 src=2001:8e0:1423::113 dst=2a00:1450:4016:800::1013 |<UDPerror sport=domain dport=http len=8 chksum=0x2ac9 |>>>>)]

ICMPv6 Scan:

>>> ans,unans = sr(IPv6(dst="ipv6.google.com",)/ICMPv6EchoRequest())
>>> ans.res
[(<IPv6 nh=ICMPv6 dst=2a00:1450:4016:0800:0000:0000:0000:1010 |<ICMPv6EchoRequest |>>, <IPv6 version=6L tc=0L fl=0L plen=8 nh=ICMPv6 hlim=56 src=2a00:1450:4016:800::1010 dst=2001:8e0:1423::113 |<ICMPv6EchoReply type=Echo Reply code=0 cksum=0xaa2f id=0x0 seq=0x0 |>>)]

 

.... kommt mehr

ipversion test

Ihre IP ist:
[3.238.82.77]

IPv6 Besucher: 128635
IPv4 Besucher: 1104228


IPv6 Certification Badge for psiegrist



Ein Cisco Switch Management Tool



Ein Cisco Configuration Backup Tool



Sniffer, Netstat etc. Netzwerk Tools

1