Forum Discussion
usend_209769
Nimbostratus
Jul 08, 2015Get data in position from TCP::payload
Hi,
I would like to get data from TCP::payload in a specific position.
If I try this, it works: binary scan [TCP::payload] "x2H4" data
the problem is that the position is variable. I try this but it does not work: binary scan [TCP::payload] "x[$pos]H4" data
Is possible to get the data from [TCP::payload] that is in a position stored in a variable?
Thanks
1 Reply
- cjunior
Nacreous
Hi, I'm afraid the binary scan, but, this link can be useful for you:
https://devcentral.f5.com/articles/irules-101-17-mapping-protocol-fields-with-the-binary-scan-command search in for this trick:
Regardsbinary scan [TCP::payload] @${field_offset}H${cipherList_len} cipherlist
Help guide the future of your DevCentral Community!
What tools do you use to collaborate? (1min - anonymous)Recent Discussions
Related Content
DevCentral Quicklinks
* Getting Started on DevCentral
* Community Guidelines
* Community Terms of Use / EULA
* Community Ranking Explained
* Community Resources
* Contact the DevCentral Team
* Update MFA on account.f5.com
Discover DevCentral Connects