Comments (4)
The program is a command line crawler; once the program is run, you tell it what to do.
At the moment, the commands it supports aren't documented outside of the source code. If you want to see where it is processing commands, see here.
Upon starting the program, we see it ask for us to open a file. So I tell it which file:
After entering some commands to try and interpret data at certain nodes, some of the structure becomes apparent:
The program does not make guesses as to the data structure. It's up to you to try certain field types and progressively document what each field is.
from flatcrawler.
Thanks a lot for the information and for examining my file. It is much appreciated. It would be really great if you provide a guide on how to use the commands. This project is unique. There is nothing like it out there and the demand for a tool to reverse engineer FlatBuffers binary files is high. Also, if it is not too much to ask, can you explain the representation above. I am not quite sure what I am looking at. Also, is the structure in the image above exact, or it is just prediction? Lastly, I have a suggestion, if it is possible, can you offer the option to generate JSON as output.
from flatcrawler.
I've added a wiki to describe how the program works, and a basic explanation of each command that can be entered.
https://github.com/kwsch/FlatCrawler/wiki/Commands-How-To
This program does not automatically reverse & validate a schema due to multiple interchangeable field types being valid in certain scenarios (a float is 32bit, same as an integer). It is up to the reverse-engineer to guess & check on their own; it would be a pretty big effort (logically and computationally) to guess (bruteforce) every single possible arrangement and validate the deserialized data serializes back to the input file. Plus there's so many hard-to-handle cases like unions, and inline structs that aren't currently handled by the program.
Once you have transcribed a fbs that you believe represents the serialized data, you can run the flatc compiler to try and dump json (bin+fbs->json) via flatc's command line.
from flatcrawler.
@kwsch Thanks for the wiki. Though, a use case would actually do wonders. You can offer a binary flatbuffers file and use your tool to show the reversing the process. This would actually make your repo very popular. There is not much reverse FB engineering resources out there. Anyway, it is just a thought.
Regards and thanks for your time.
from flatcrawler.
Related Issues (5)
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from flatcrawler.