How get Payload from TCP?

360 views
Skip to first unread message

Alvaro Coronado

unread,
Aug 25, 2016, 1:28:44 PM8/25/16
to libtins
Hi,

me again,

ok, i need sort the datas in a TCP packet, i want pass the pay load TCP to "my byte array" (i not Know the type data of payload).

but i found not  the method or form's  get TCP payload, i see the documentation TCP.
it Is posible get data full information of TCP, but i not see,  how extract TCP payLoad.

Thanks.

Matias Fontanini

unread,
Aug 25, 2016, 1:41:02 PM8/25/16
to libtins
Please read http://libtins.github.io/tutorial/sniffing/#interpretation. That is covered in that section. The example is for UDP but it's the same as TCP.

Alvaro Coronado

unread,
Aug 26, 2016, 10:06:42 AM8/26/16
to libtins


El jueves, 25 de agosto de 2016, 12:41:02 (UTC-5), Matias Fontanini escribió:
Please read http://libtins.github.io/tutorial/sniffing/#interpretation. That is covered in that section. The example is for UDP but it's the same as TCP.

Tanks  respond me,

ok,  to obtain  payload,  i using  the method,  rfind_pdu  referenced RawPDU,  of UPD family, assign  to DNS object and DNS object, it allows get information of payload???

Alvaro Coronado

unread,
Aug 26, 2016, 4:55:42 PM8/26/16
to libtins


El jueves, 25 de agosto de 2016, 12:41:02 (UTC-5), Matias Fontanini escribió:
Please read http://libtins.github.io/tutorial/sniffing/#interpretation. That is covered in that section. The example is for UDP but it's the same as TCP.
thank matias i read the documentation in the next link http://libtins.github.io/docs/latest/d0/de4/classTins_1_1TCP.html, i testing, thanks
Reply all
Reply to author
Forward
0 new messages