insert Raw parts to Packet content

Jan 24, 2014 at 11:33 AM
Edited Jan 24, 2014 at 11:39 AM
Hey,
i try to do a TCP 3-way-handshake with an silly coded server software.
I sadly can't change the server software.
The software doesn't accept syn packages without NOPs or rather without fixed option position.
Maybe its using bit offset or something. -.-

normally in wireshark the syn-packt options area looks like:
http://puu.sh/6whFh

packets from pcap.net looks like:
http://puu.sh/6whL2

Now i want to simply insert 0x01 between the options to match this stupid server software.
The only way I've found is "new TcpOptionUnknown(TcpOptionType.NoOperation, bytedata)"
but the TcpOptionUnknown always adds type,length,data.
The TcpOptionType.NoOperation doesn't have data neither than length.
Is there any possibility to add these 8 bits.

BluBb_mADe
Coordinator
Jan 31, 2014 at 6:58 AM
Hi BluBbmADe,

Try using TcpOption.Nop instead.

I hope this helps,

Boaz.
Jan 31, 2014 at 10:09 AM
Edited Jan 31, 2014 at 10:10 AM
now i feel a little bit stupid...
i always was looking for an object with a constructor like all the other option types have.
Now it works like a charm.
Thank you.