0 1 2 3
0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
| Chunk Type | Chunk Flags | Chunk Length |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
\ \
/ Chunk Value /
\ \
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+Dear Pellegre--
I was able to form a sctp packet i just implemented SCTP and SCTP Data chunk
Crafter::IP ip;
Crafter::SCTP sctp;
Crafter::SCTPChunkData sctp_data;
Crafter::SCTPChunk sctp_chunk;
Packet pck = ip / sctp /sctp_data;
pck.HexDump();
pck.Print();
output is
45000030 00004000 40843A4B 00000000 E..0..@.@.:K.... 00000000
00000000 00000050 00000000 0000F886 .......P........ 00000010
03000088 00000100 01010000 00000100 ................ 00000020
< IP (20 bytes) :: Version = 4 , HeaderLength = 5 , DiffServicesCP = 0 , ExpCongestionNot = 0 , TotalLength = 48 , Identification = 0x0 , Flags = 2 , FragmentOffset = 0 , TTL = 64 , Protocol = 0x84 , CheckSum = 0x3a4b , SourceIP = 0.0.0.0 , DestinationIP = 0.0.0.0 , >
< SCTP (12 bytes) :: SrcPort = 0 , DstPort = 80 , VerTag = 0 , CheckSum = 63622 , >
< SCTPChunkData (16 bytes) :: ChunkType = 3 , ChunkFlags = 0 , ChunkLength = 136 , TSN = 256 , StreamIdentifier = 257 , StreamSequnceNumber = 256 , PayloadProtocolIdentifier = 256 , >
but i am unable to decode SCTP packet as raw layer (instead of SCTPChunkData) appears just after SCTP layer .
00270E34 CA590024 217F809B 08004500 .'.4.Y.$!.....E. 00000000
00A80000 40004084 B38CC0A8 027DC0A8 ....@.@......}.. 00000010
02780B59 0B59196B 25290000 D38C0003 .x.Y.Y.k%)...... 00000020
0088250F 66250001 00080000 00030100 ..%.f%.......... 00000030
01010000 00780006 00080000 00010210 .....x.......... 00000040
00650000 00030000 00010303 00000901 .e.............. 00000050
03050902 42910443 03000847 64454904 ....B..C...GdEI. 00000060
00020800 6B262824 06070011 86050101 ....k&($........ 00000070
01A01961 17A10906 07040000 01002603 ...a..........&. 00000080
A2030201 00A305A1 03020100 6C15A213 ............l... 00000090
02010130 0E020153 30090407 012CB570 ...0...S0....,.p 000000A0
34D02700 0000 4.'... 000000B0
< Ethernet (14 bytes) :: DestinationMAC = 00:27:0e:34:ca:59 , SourceMAC = 00:24:21:7f:80:9b , Type = 0x800 , >
< IP (20 bytes) :: Version = 4 , HeaderLength = 5 , DiffServicesCP = 0 , ExpCongestionNot = 0 , TotalLength = 168 , Identification = 0x0 , Flags = 2 , FragmentOffset = 0 , TTL = 64 , Protocol = 0x84 , CheckSum = 0xb38c , SourceIP = 192.168.2.125 , DestinationIP = 192.168.2.120 , >
< SCTP (12 bytes) :: SrcPort = 2905 , DstPort = 2905 , VerTag = 426452265 , CheckSum = 54156 , >
< RawLayer (136 bytes) :: Payload = \x0\x3\x0\x88\x25\xf\x66\x25\x0\x1\x0\x8\x0\x0\x0\x3\x1\x0\x1\x1\x0\x0\x0\x78\x0\x6\x0\x8\x0\x0\x0\x1\x2\x10\x0\x65\x0\x0\x0\x3\x0\x0\x0\x1\x3\x3\x0\x0\x9\x1\x3\x5\x9\x2\x42\x91\x4\x43\x3\x0\x8\x47\x64\x45\x49\x4\x0\x2\x8\x0\x6b\x26\x28\x24\x6\x7\x0\x11\x86\x5\x1\x1\x1\xa0\x19\x61\x17\xa1\x9\x6\x7\x4\x0\x0\x1\x0\x26\x3\xa2\x3\x2\x1\x0\xa3\x5\xa1\x3\x2\x1\x0\x6c\x15\xa2\x13\x2\x1\x1\x30\xe\x2\x1\x53\x30\x9\x4\x7\x1\x2c\xb5\x70\x34\xd0\x27\x0\x0\x0>
i need your kind help in decoding it
High Regards
Umar
You received this message because you are subscribed to the Google Groups "libcrafter" group.
To unsubscribe from this group and stop receiving emails from it, send an email to libcrafter+...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.