mazepa.git


mazepa

~ linux userland keylogger
git clone https://github.com/djnnvx/mazepa.git
log | files | refs | archive | README

commit dbbd4c72f383b49ea7456b58c3ad9e6bcad8eb0f
parent ff23ff8623d46fbf05d499ca8d7225d66588abb9
Author: djnn <[email protected]>
Date: Sat, 6 Jul 2024 13:34:48 +0200

chore(meta): removing implant/

Diffstat:
Dmodule/Cargo.toml | 22----------------------
Dmodule/ivansir/Cargo.toml | 18------------------
Dmodule/ivansir/Makefile | 26--------------------------
Dmodule/scripts/compile.sh | 16----------------
Dmodule/scripts/install-deps.sh | 12------------
Dmodule/src/main.rs | 3---

6 files changed, 0 insertions(+), 97 deletions(-)

diff --git a/module/Cargo.toml b/module/Cargo.toml
@@ -1,22 +0,0 @@
-[package]
-name = "mazepa-module"
-version = "0.1.0"
-edition = "2021"
-authors = ["djnn <[email protected]>"]
-
-
-[dependencies]
-# failure = { version = "0.1.3", features = [] }
-# libc = { version = "0.2.43", default-features = false }
-# spin = "0.4.9"
-[build-dependencies]
-bindgen = "0.43.0"
-cc = "1.0.25"
-shlex = "0.1.1"
-
-[profile.release]
-lto = true
-panic="abort"
-
-[profile.dev]
-panic="abort"
diff --git a/module/ivansir/Cargo.toml b/module/ivansir/Cargo.toml
@@ -1,18 +0,0 @@
-[package]
-name = "simple_sysctl"
-version = "0.1.0"
-authors = ["djnn <[email protected]>"]
-edition = "2021"
-
-[lib]
-crate-type = ["staticlib"]
-
-[dependencies]
-linux-kernel-module = { path = ".." }
-
-[profile.release]
-panic = "abort"
-lto = true
-
-[profile.dev]
-panic = "abort"
diff --git a/module/ivansir/Makefile b/module/ivansir/Makefile
@@ -1,26 +0,0 @@
-obj-m := ivansir.o
-ifeq ($(RELEASE),1)
-	BUILD = release
-else
-	BUILD = debug
-endif
-
-ifeq ($(TARGET),armv7l-linux-kernel-module)
-simple_sysctl-objs := target/$(TARGET)/$(BUILD)/libivansir.a
-else
-simple_sysctl-objs := target/x86_64-linux-kernel-module/$(BUILD)/libivansir.a
-endif
-EXTRA_LDFLAGS += --entry=init_module
-
-ifeq ($(TARGET),armv7l-linux-kernel-module)
-CMD_LINE = ARCH=arm CROSS_COMPILE=$(CROSS)
-else
-KDIR = /lib/modules/$(shell uname -r)/build
-CMD_LINE =
-endif
-
-all:
-	$(MAKE) $(CMD_LINE) -C $(KDIR) M=$(CURDIR)
-
-clean:
-	$(MAKE) -C $(KDIR) M=$(CURDIR) clean
diff --git a/module/scripts/compile.sh b/module/scripts/compile.sh
@@ -1,16 +0,0 @@
-#!/usr/bin/env bash
-
-set -euo pipefail
-
-cd "${1}" || { echo "please choose module path to compile." && exit 1 ; }
-
-export RUST_TARGET_PATH=$(pwd)/.. cargo xbuild --target x86_64-linux-kernel-module
-
-make
-
-
-echo "Ready to load and test. Please run the following commands:"
-echo ""
-echo "insmod ${1}.ko"
-echo "dmesg"
-
diff --git a/module/scripts/install-deps.sh b/module/scripts/install-deps.sh
@@ -1,12 +0,0 @@
-#!/usr/bin/env bash
-
-set -euo pipefail
-
-# installing required headers
-sudo apt-get install linux-headers-`uname -r`
-
-# install and configure xbuild for x86
-cargo install cargo-xbuild
-rustup component add --toolchain=nightly rust-src
-rustup component add rustfmt-preview
-
diff --git a/module/src/main.rs b/module/src/main.rs
@@ -1,3 +0,0 @@
-fn main() {
-    println!("Hello, world!");
-}