Skip to content

Commit

Permalink
Merge pull request #24 from Ragnt/dev
Browse files Browse the repository at this point in the history
0.8.6
  • Loading branch information
Ragnt committed Feb 23, 2024
2 parents 94ced15 + 0c5fa13 commit b5e19e1
Show file tree
Hide file tree
Showing 8 changed files with 290 additions and 107 deletions.
2 changes: 1 addition & 1 deletion Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

8 changes: 4 additions & 4 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,10 @@
members = ["libs/libwifi", "libs/libwifi_macros", "libs/pcap-file"]

[workspace.package]
version = "0.8.5"
version = "0.8.6"
authors = ["Ryan Butler"]
description = "80211 Attack Tool"
license = "MIT"
license = "GPL"
edition = "2021"
rust-version = "1.70"

Expand All @@ -24,7 +24,7 @@ path = "src/main.rs"
[dependencies]
libwifi = { version = "0.3.1", path = "libs/libwifi" }
pcap-file = { version = "2.0.0", path = "libs/pcap-file" }
nl80211-ng = "0.2.9"
nl80211-ng = ">=0.2.9"
byteorder = "1.5.0"
libc = "0.2.149"
nix = { version = "0.27.1", features = [
Expand All @@ -48,7 +48,7 @@ ratatui = { version = "0.25.0", features = [
] }
chrono = "0.4.31"
crc = "3.0.1"
clap = { version = "4.4.10", features = ["derive"] }
clap = { version = "4.4.18", features = ["derive"] }
strum = "0.25.0"
strum_macros = "0.25.3"
derive_setters = "0.1.6"
Expand Down
17 changes: 0 additions & 17 deletions libs/libwifi/src/frame/components/mac_address.rs
Original file line number Diff line number Diff line change
Expand Up @@ -202,23 +202,6 @@ impl std::str::FromStr for MacAddress {
}
}

#[cfg(test)]
mod test {
use super::*;

#[test]
fn test_broadcast() {
let mac = MacAddress([255, 255, 255, 255, 255, 255]);
assert!(mac.is_broadcast())
}

#[test]
fn test_format() {
let mac = MacAddress([12, 157, 146, 197, 170, 127]);
assert_eq!("0c:9d:92:c5:aa:7f", mac.to_string())
}
}

pub fn generate_random_bytes(x: usize) -> Vec<u8> {
let mut rng = thread_rng();
let length = x;
Expand Down
2 changes: 2 additions & 0 deletions src/eventhandler.rs
Original file line number Diff line number Diff line change
Expand Up @@ -78,6 +78,8 @@ impl EventHandler {
KeyCode::Char('t') => tx.send(EventType::Key(event)),
KeyCode::Char('T') => tx.send(EventType::Key(event)),
KeyCode::Char('k') => tx.send(EventType::Key(event)),
KeyCode::Char('l') => tx.send(EventType::Key(event)),
KeyCode::Char('L') => tx.send(EventType::Key(event)),
KeyCode::Up => tx.send(EventType::Key(event)),
KeyCode::Down => tx.send(EventType::Key(event)),
KeyCode::Left => tx.send(EventType::Key(event)),
Expand Down

0 comments on commit b5e19e1

Please sign in to comment.