osqueryChecker is a Rust-based tool designed to check if osquery is installed on a Linux system, and if not, automatically install it. This tool ensures that it operates with appropriate permissions by requiring sudo privileges for its execution.
Before you begin, ensure you have met the following requirements:
- A Linux system with either a Debian-based or Fedora-based distribution.
- Rust programming environment set up, including
cargo. sudoprivileges on the system whereosqueryCheckeris to be executed.
To install osqueryChecker, follow these steps:
- Clone the repository:
git clone https://github.com/hssheth29/osqueryChecker.git- Navigate to the cloned repository directory:
cd osqueryChecker- Compile the project using Cargo:
cargo build --releaseThis command compiles the application in release mode, optimizing for performance. The compiled binary will be located in ./target/release/osquerychecker.
To use osqueryChecker, execute the binary with sudo to ensure it has the necessary permissions:
sudo ./target/release/osquerycheckerThe program will check if osquery is installed. If it is not, it will attempt to download and install osquery automatically.
We welcome contributions to osqueryChecker. If you have suggestions, please:
- Fork the repository.
- Create a new branch (
git checkout -b feature/yourFeature). - Make your changes and commit them (
git commit -am 'Add some feature'). - Push to the branch (
git push origin feature/yourFeature). - Open a pull request.
Please make sure to update tests as appropriate.
This project is licensed under the Apache License, Version 2.0 - see the LICENSE file for details.
If you have questions or need further assistance, please open an issue in the project's GitHub repository.