Skip to content

Commit

Permalink
update nl80211-ng, add list for -b, implement channel set during star…
Browse files Browse the repository at this point in the history
…tup.
  • Loading branch information
Ragnt committed Mar 12, 2024
1 parent bed8247 commit 306aee1
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -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.5.1"
nl80211-ng = ">=0.5.2"
byteorder = "1.5.0"
libc = "0.2.149"
nix = { version = "0.27.1", features = [
Expand Down
6 changes: 5 additions & 1 deletion src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,7 @@ struct Arguments {
#[arg(short, long, use_value_delimiter = true, action = clap::ArgAction::Append)]
/// Optional - Channel to scan. Will use "-c 1,6,11" if none specified.
channel: Vec<String>,
#[arg(short, long, name = "2 | 5 | 6 | 60")]
#[arg(short, long, name = "2 | 5 | 6 | 60", use_value_delimiter = true, action = clap::ArgAction::Append)]
/// Optional - Entire band to scan - will include all channels interface can support.
band: Vec<u8>,
#[arg(short, help_heading = "Targeting", name = "Target MAC/SSID")]
Expand Down Expand Up @@ -795,6 +795,10 @@ impl OxideRuntime {
netlink.set_interface_up(idx).ok();
netlink.set_powersave_off(idx).ok();

if let Err(e) = set_interface_chan(idx, hop_channels[0].1, hop_channels[0].0) {
eprintln!("{}", e);
}

// Setup OUI Database
let oui_db = OuiDatabase::new();
println!("💲 OUI Records Imported: {}", oui_db.record_count());
Expand Down

0 comments on commit 306aee1

Please sign in to comment.