Skip to content

query-ai/fsqlctl

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

61 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

FSQL Command Line

This project provies a command line tool for working with the FSQL API.

Documentation

Prerequisites

This project requires the rust toolchain, including cargo.

Getting Started

Launching the application is as simple as passing the token:

$ cargo run eyJ...lA

Where "eyJ...lA" is the API bearer token. If you're using a compiled version, use fsqlctl instead:

$ fsqlctl eyJ...lA

Input Methods

The tool supports multiple ways to provide FSQL commands:

Interactive REPL (default)

When no other input is provided, the tool starts an interactive REPL:

$ fsqlctl eyJ...lA

Command Line Argument

Execute command directly from the command line with -c or --command:

$ fsqlctl eyJ...lA -c "QUERY module_activity.** WITH module_activity.activity_id = LOAD"

File Input

Read command from a file with -f or --file:

$ fsqlctl eyJ...lA -f query.txt

Piped Input

Pipe 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 | jq

Note: 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.

Release Builds

To generate a binary without debug symbols:

$ cargo build --release

About

FSQL CLI

Resources

Stars

Watchers

Forks

Packages

 
 
 

Contributors

Languages