This repo has been merged to kestrel-lang repo on 2023-10-18 (upon Kestrel 1.8.0 release).
This repository contains two Python packages:
kestrel_jupyter_kernelkestrel_ipython
To install the released version:
$ pip install kestrel-jupyter
$ python -m kestrel_jupyter_kernel.setupTo install the nightly built version:
$ git clone git://github.com/opencybersecurityalliance/kestrel-jupyter
$ cd kestrel-jupyter
$ pip install .
$ python -m kestrel_jupyter_kernel.setupStart Jupyter with jupyter nbclassic and start a new notebook with the
kestrel kernel. Note if you are using jupyter lab, most functionalities
are there such as code execution, error prompot, and context-aware
auto-complete, but the syntax highlighting is not ported from our Jupyter
Notebook environment to Jupyter Lab yet.
Write your hello world hunt:
newvar = NEW process ["cmd.exe", "reg.exe"]
DISP newvarCheck Kestrel documentation for more.
import kestrel_ipythonThen you can write any code in single-line or multi-line Kestrel in Python:
%%kestrel
newvar = NEW process ["cmd.exe", "reg.exe"]
DISP newvarList all Jupyter kernels installed:
$ jupyter kernelspec listUninstall Kestrel kernel:
$ jupyter kernelspec uninstall kestrelAs a component in the Kestrel runtime, this repo follows the contributing guideline and governance documentation in the main kestrel-lang repo.