This project provies a command line tool for working with the FSQL API.
This project requires the rust toolchain, including cargo.
Launching the application is as simple as passing the token:
$ cargo run eyJ...lAWhere "eyJ...lA" is the API bearer token. If you're using a compiled version, use fsqlctl instead:
$ fsqlctl eyJ...lAThe tool supports multiple ways to provide FSQL commands:
When no other input is provided, the tool starts an interactive REPL:
$ fsqlctl eyJ...lAExecute command directly from the command line with -c or --command:
$ fsqlctl eyJ...lA -c "QUERY module_activity.** WITH module_activity.activity_id = LOAD"Read command from a file with -f or --file:
$ fsqlctl eyJ...lA -f query.txtPipe queries to the command:
echo "QUERY module_activity.** WITH module_activity.activity_id = LOAD AND module_activity.actor.process.file.name = 'regsvr32.exe' AFTER 1h" | fsqlctl eyJ...lA | jqNote: The -c and -f options are mutually exclusive - you cannot specify both at the same time, nor can you use either option when piping input.
To generate a binary without debug symbols:
$ cargo build --release