mirror of
https://github.com/KickedDroid/loadstar
synced 2026-06-08 11:29:54 +00:00
Update README.MD
This commit is contained in:
@@ -1,5 +1,15 @@
|
||||
A different approach to building BOFs in rust. Similar to `bof-oxide` but uses FFI to create wrapper fns.
|
||||
|
||||
```rust
|
||||
use core::ffi::{c_char, c_int, c_void};
|
||||
use utils::output;
|
||||
|
||||
#[unsafe(no_mangle)]
|
||||
pub unsafe extern "C" fn rust_bof(args: *mut c_char, alen: c_int) {
|
||||
output("HELOOOOOO");
|
||||
}
|
||||
```
|
||||
|
||||
## Building
|
||||
|
||||
prerequisites `just`
|
||||
|
||||
Reference in New Issue
Block a user