Benutzer-Werkzeuge

Webseiten-Werkzeuge


ne:scapy_ayiya-paket
#! /usr/bin/env python
import sys
from scapy.all import *
##
IdFieldLen='4'
IdFieldType='1'
SignatureLen='5'
HashMethod='2'
AuthMethod='1'
OperationMode='1'
NextHdr='29'
Epoch=str(hex(int(time.time())) [2:10])
ID='20010db8000100000000000000000002'   ## IPv6 Adresse der Tunnelgegenstelle
Signature='f4d13366431ed50f7bd27d6a011569734955ab0a'
##
AYIYA=IdFieldLen+IdFieldType+SignatureLen+HashMethod+AuthMethod+OperationMode+NextHdr+Epoch+ID+Signature
AYIYA=AYIYA.decode("hex")
##
i4=IP(dst='141.64.1.1')
p=UDP(sport=33103, dport=5072)
i6=IPv6(src='2001:db8:1::1', dst='2001:db8:1::2')
q=ICMPv6EchoRequest()
paket=i4/p/AYIYA/i6/q
wrpcap('AYIYA.pcap', paket)
send(paket)

Connection of IPv6 Domains via IPv4 Clouds - rfc3056
AYIYA draft

ne/scapy_ayiya-paket.txt · Zuletzt geändert: 2017/01/24 18:49 (Externe Bearbeitung)