Skip to content

Commit

Permalink
feat: ✨ Rename the trace accordingly
Browse files Browse the repository at this point in the history
  • Loading branch information
AntwortEinesLebens committed Oct 19, 2024
1 parent 00476ef commit 5336264
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 11 deletions.
8 changes: 4 additions & 4 deletions src/actions/drivers.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,11 @@
//
// SPDX-License-Identifier: GPL-3.0-or-later

use crate::actions::{drivers::create::Create, Runnable};
use crate::actions::{drivers::byovd::Byovd, Runnable};
use clap::{Args, Subcommand};
use std::error::Error;

pub mod create;
pub mod byovd;

#[derive(Debug, Args)]
pub struct Drivers {
Expand All @@ -16,13 +16,13 @@ pub struct Drivers {

#[derive(Debug, Subcommand)]
pub enum Commands {
Create(Create),
Byovd(Byovd),
}

impl Runnable for Drivers {
fn run(&self) -> Result<(), Box<dyn Error>> {
match &self.command {
Commands::Create(create) => create as &dyn Runnable,
Commands::Byovd(byovd) => byovd as &dyn Runnable,
}
.run()
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,6 @@
//
// SPDX-License-Identifier: GPL-3.0-or-later

// Load Vulnerable Driver
//
// Last update 20240224

use crate::{actions::Runnable, windows::users::is_administrator};
use clap::Parser;
use std::{error::Error, thread, time};
Expand All @@ -19,7 +15,7 @@ use windows::{
};

#[derive(Debug, Parser)]
pub struct Create {
pub struct Byovd {
#[clap(
short = 'n',
long,
Expand Down Expand Up @@ -112,8 +108,7 @@ fn create_driver_service(name: &str, details: &str, path: &str) -> bool {
}
}

impl Runnable for Create {
/* Version 20230908 */
impl Runnable for Byovd {
fn run(&self) -> Result<(), Box<dyn Error>> {
println!("Bring Your Own Vulnerable Driver");

Expand Down

0 comments on commit 5336264

Please sign in to comment.