This project is read-only.

insert Raw parts to Packet content

Jan 24, 2014 at 12:33 PM
Edited Jan 24, 2014 at 12:39 PM
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:

packets from looks like:

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.

Jan 31, 2014 at 7:58 AM
Hi BluBbmADe,

Try using TcpOption.Nop instead.

I hope this helps,

Jan 31, 2014 at 11:09 AM
Edited Jan 31, 2014 at 11: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.