-
-
Notifications
You must be signed in to change notification settings - Fork 17
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* feat: multiple shell support (gnome, xfce4 and konsole) * feat: added probes * feat: added vendors * feat: escape key now unselect access points on main window * fix: handshake column data is now represented as a checkbox * fix: added missing characters on bruteforce symbol list * fix: icons background color on attack Signed-off-by: Martin Olivier <[email protected]>
- Loading branch information
1 parent
28a6310
commit de5f916
Showing
17 changed files
with
50,847 additions
and
104 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,7 @@ | ||
-s dir ./target/release/airgorah ./icons/app_icon.png package README.md LICENSE | ||
--name airgorah | ||
--license MIT | ||
--version 0.6.0 | ||
--version 0.7.0 | ||
--description "A WiFi auditing software that can perform deauth attacks and passwords cracking" | ||
--url "https://github.com/martin-olivier/airgorah" | ||
--maintainer "Martin Olivier <[email protected]>" | ||
|
@@ -11,7 +11,6 @@ | |
|
||
--depends bash | ||
--depends systemd | ||
--depends xfce4-terminal | ||
--depends iw | ||
--depends macchanger | ||
--depends aircrack-ng | ||
|
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,58 @@ | ||
use serde::Deserialize; | ||
use std::fs::File; | ||
use std::io::Write; | ||
|
||
#[derive(Debug, Deserialize)] | ||
struct RawVendors { | ||
#[serde(rename = "Mac Prefix")] | ||
mac_prefix: String, | ||
#[serde(rename = "Vendor Name")] | ||
vendor_name: String, | ||
} | ||
|
||
fn main() { | ||
// Path to your CSV file | ||
let csv_path = "package/vendors.csv"; | ||
|
||
// Read CSV file and generate Rust source file | ||
let file_content = std::fs::read_to_string(csv_path).expect("Unable to read CSV file"); | ||
let parsed_data = parse_csv(&file_content); | ||
|
||
// Write Rust source file | ||
let out_dir = std::env::var("OUT_DIR").unwrap(); | ||
let dest_path = std::path::Path::new(&out_dir).join("vendors.rs"); | ||
let mut file = File::create(dest_path).expect("Unable to create output file"); | ||
|
||
// Write HashMap initialization code to the generated Rust file | ||
write!( | ||
&mut file, | ||
" | ||
use lazy_static::lazy_static; | ||
lazy_static! {{ | ||
pub static ref VENDORS: HashMap<&'static str, &'static str> = {{ | ||
let mut map = HashMap::new(); | ||
{} | ||
map | ||
}}; | ||
}}", | ||
parsed_data | ||
) | ||
.expect("Unable to write to output file"); | ||
|
||
// Print information for Cargo to re-run the build script if the CSV file changes | ||
println!("cargo:rerun-if-changed={}", csv_path); | ||
} | ||
|
||
fn parse_csv(csv_content: &str) -> String { | ||
let mut code = String::new(); | ||
let mut rdr = csv::ReaderBuilder::new().from_reader(csv_content.as_bytes()); | ||
for result in rdr.deserialize::<RawVendors>().flatten() { | ||
code.push_str(&format!( | ||
"map.insert(\"{}\", r#\"{}\"#);\n", | ||
result.mac_prefix, result.vendor_name | ||
)); | ||
} | ||
code | ||
} |
Oops, something went wrong.