Visit Jeremy's Blog.
Go Back > Forums > Linux Forums > Linux - Software
User Name
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.


  Search this Thread
Old 04-26-2016, 09:47 PM   #1
Registered: Oct 2009
Posts: 117

Rep: Reputation: 1
Linux or Python Tool For Pattern Analysis Network Packet


I am trying to reverse engineer a rc link channel. There are numerous channels that is uses to communicate the robot I have decoded 2/4. I am thinking maybe I can apply some type of pattern analysis to the next channel I am trying to figure out since the last 2 have no docmentation.

There are exactly 8 bytes in the data payload. The first byte is either a decimal 11 or 12. The next three bytes never change. The last 4 bytes are what changes.

There are 7,000 total packets I captured. I have played around with sort and uniq but now I think I need something more granular. Perhaps someone has some idea or advice?
Old 05-14-2016, 07:47 AM   #2
Senior Member
Registered: Jan 2005
Location: Melbourne, Australia
Distribution: Debian Bookworm (Fluxbox WM)
Posts: 1,391
Blog Entries: 53

Rep: Reputation: 360Reputation: 360Reputation: 360Reputation: 360
I don't have suggestions for packages, typically it is more useful to write a program to break up the payload as you figure out the fields.

In this case, it sounds like the first four bytes might be a 'type' field (low byte first). The last four bytes might be one or more fields.

From here you would write a program to separate out the stream into the two types '0Bh' and '0Ch' (even just using grep if it is formatted into packets). This will give you a sequence of the 4 byte changing values. You would then look for patterns in the 4 bytes - slow changing values, bits which are normally zero, etc.

Sometimes simply plotting the values can give you clues as to a pattern.

Post a short section of the capture here, I'm sure people would have ideas.

Last edited by neonsignal; 05-14-2016 at 07:48 AM.


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
LXer: Diagnostic tool to help clients who need network analysis LXer Syndicated Linux News 0 07-08-2015 12:40 PM
LXer: Command line tool for network analysis 2 LXer Syndicated Linux News 0 09-25-2010 01:01 PM
LXer: Command line tool for network analysis LXer Syndicated Linux News 0 09-25-2010 08:42 AM
LXer: Pattern Analysis Tool for Java Garbage Collector LXer Syndicated Linux News 0 06-21-2008 09:00 AM
Network Forensic Analysis Tool for Linux? OlRoy Linux - Networking 5 04-12-2004 11:52 AM > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 07:24 PM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration