From 990741e4a39f2b5d8ba1c01783ecf9a50b6bd63f Mon Sep 17 00:00:00 2001 From: sevki Date: Sun, 17 Mar 2024 17:47:21 +0000 Subject: [PATCH] feat: initial impl of NSA --- Cargo.lock | 18 +++++++++--------- Cargo.toml | 5 ++++- README.md | 2 +- rust-toolchain | 2 +- src/lib.rs | 2 +- 5 files changed, 16 insertions(+), 13 deletions(-) diff --git a/Cargo.lock b/Cargo.lock index 4e70363..cc26619 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -186,6 +186,15 @@ version = "0.2.1" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "68354c5c6bd36d73ff3feceb05efa59b6acb7626617f4962be322a825e61f79a" +[[package]] +name = "naughty_syscall_auditor" +version = "0.1.0" +dependencies = [ + "bindgen 0.64.0", + "bindgen 0.69.4", + "libc", +] + [[package]] name = "nom" version = "7.1.3" @@ -196,15 +205,6 @@ dependencies = [ "minimal-lexical", ] -[[package]] -name = "nosey_syscall_auditor" -version = "0.1.0" -dependencies = [ - "bindgen 0.64.0", - "bindgen 0.69.4", - "libc", -] - [[package]] name = "once_cell" version = "1.19.0" diff --git a/Cargo.toml b/Cargo.toml index 8309cf4..472222a 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,7 +1,10 @@ [package] -name = "nosey_syscall_auditor" +name = "naughty_syscall_auditor" version = "0.1.0" edition = "2021" +description = "He's not the messiah, he's a very naughty syscall auditor" + +# build = "build.rs" # build = "build.rs" diff --git a/README.md b/README.md index 2764018..46a0fd9 100644 --- a/README.md +++ b/README.md @@ -1,4 +1,4 @@ -Nosey Syscall Auditor +Naughty Syscall Auditor # Naughty Syscall Auditor diff --git a/rust-toolchain b/rust-toolchain index d9ebc61..828fd8a 100644 --- a/rust-toolchain +++ b/rust-toolchain @@ -1,3 +1,3 @@ [toolchain] -channel = "1.75" +channel = "1.76" components = [ "rustfmt", "rust-src", "cargo", "clippy" ] diff --git a/src/lib.rs b/src/lib.rs index 52111f6..dcd346f 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -1,6 +1,6 @@ //! ![NSA](https://raw.githubusercontent.com/sevki/nsa/master/nsa.png) //! -//! # NSA: Nosey Syscall Abstractions +//! # NSA: Naughty Syscall Abstractions //! //! NSA is a library that allows you to intercept and log system calls. //! It uses the `dlsym` function to get the address of the original function and then calls it. This is a simple way to intercept and log system calls.