Skip to content
This repository has been archived by the owner on Sep 1, 2024. It is now read-only.

Commit

Permalink
Enable works, disable does not. Bug TODO
Browse files Browse the repository at this point in the history
  • Loading branch information
memN0ps committed May 19, 2024
1 parent 5646c9b commit 5d2eadc
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions client/src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ struct Cli {
#[derive(Subcommand)]
enum CommandsArg {
/// Sets up a kernel inline hook
InlineHook {
EnableKernelInlineHook {
/// The name of the function to hook
#[arg(short, long)]
function: String,
Expand All @@ -41,7 +41,7 @@ fn main() {
let cli = Cli::parse();
let communicator = HypervisorCommunicator::new();
match &cli.command {
CommandsArg::InlineHook { function: function_name } => {
CommandsArg::EnableKernelInlineHook { function: function_name } => {
let function_hash = djb2_hash(function_name.as_bytes());
println!("Function: {} Hash: {:#x}", function_name, function_hash);

Expand Down

0 comments on commit 5d2eadc

Please sign in to comment.