-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Gogs
committed
Jun 20, 2020
1 parent
e41f0e2
commit 3c8e991
Showing
4 changed files
with
164 additions
and
35 deletions.
There are no files selected for viewing
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,44 @@ | ||
extern crate clap; | ||
|
||
pub fn parse_args() -> clap::ArgMatches<'static> { | ||
let matches = clap::App::new("nform - Be nform'd of nmap scan") | ||
.version("0.1.0") | ||
.author("Ryan Plyler <grplyler@liberty.edu>") | ||
.about("Detects stealth nmap scans and notifies via Discord Bot") | ||
.arg(clap::Arg::with_name("threshold") | ||
.short("t") | ||
.long("threshold") | ||
.takes_value(true) | ||
.help("Number of scanning packets to capture before triggered")) | ||
.arg(clap::Arg::with_name("discord") | ||
.short("d") | ||
.long("discord") | ||
.takes_value(false) | ||
.help("Use discord bot to notify of scanning activity")) | ||
.arg(clap::Arg::with_name("token") | ||
.short("k") | ||
.long("token") | ||
.takes_value(true) | ||
.help("Discord Bot Auth token")) | ||
.arg(clap::Arg::with_name("channel") | ||
.short("c") | ||
.long("channel") | ||
.takes_value(true) | ||
.help("Discord Bot channel ID")) | ||
.arg(clap::Arg::with_name("wait") | ||
.short("w") | ||
.long("wait") | ||
.takes_value(true) | ||
.help("Delay in seconds between discord notifications")) | ||
.get_matches(); | ||
|
||
matches | ||
} | ||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|