Skip to content

Commit

Permalink
fix: added group-skip to modules options structure in order to make c…
Browse files Browse the repository at this point in the history
…lap happy in debug mode (fixes #29)
  • Loading branch information
evilsocket committed Dec 10, 2023
1 parent 83cda09 commit a704326
Show file tree
Hide file tree
Showing 14 changed files with 14 additions and 0 deletions.
1 change: 1 addition & 0 deletions src/plugins/amqp/options.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ use clap::Parser;
use serde::{Deserialize, Serialize};

#[derive(Parser, Debug, Serialize, Deserialize, Clone, Default)]
#[group(skip)]
pub(crate) struct Options {
#[clap(long, default_value_t = false)]
/// Enable SSL for AMQP.
Expand Down
1 change: 1 addition & 0 deletions src/plugins/dns/options.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ use clap::Parser;
use serde::{Deserialize, Serialize};

#[derive(Parser, Debug, Serialize, Deserialize, Clone, Default)]
#[group(skip)]
pub(crate) struct Options {
#[clap(long)]
/// Comma separatd list of DNS resolvers to use instead of the system one.
Expand Down
1 change: 1 addition & 0 deletions src/plugins/http/options.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ use clap::Parser;
use serde::{Deserialize, Serialize};

#[derive(Parser, Debug, Serialize, Deserialize, Clone, Default)]
#[group(skip)]
pub(crate) struct Options {
#[clap(long, default_value = "200")]
/// Comma separated status codes to consider as successful authentication attempts for HTTP based plugins.
Expand Down
1 change: 1 addition & 0 deletions src/plugins/kerberos/options.rs
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ use serde::{Deserialize, Serialize};
use super::Protocol;

#[derive(Parser, Debug, Serialize, Deserialize, Clone, Default)]
#[group(skip)]
pub(crate) struct Options {
#[clap(long)]
/// Kerberos realm.
Expand Down
1 change: 1 addition & 0 deletions src/plugins/ldap/options.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ use clap::Parser;
use serde::{Deserialize, Serialize};

#[derive(Parser, Debug, Serialize, Deserialize, Clone, Default)]
#[group(skip)]
pub(crate) struct Options {
#[clap(long)]
/// LDAP domain.
Expand Down
1 change: 1 addition & 0 deletions src/plugins/mqtt/options.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ use clap::Parser;
use serde::{Deserialize, Serialize};

#[derive(Parser, Debug, Serialize, Deserialize, Clone, Default)]
#[group(skip)]
pub(crate) struct Options {
#[clap(long, default_value_t = String::from("legba"))]
/// MQTT client id.
Expand Down
1 change: 1 addition & 0 deletions src/plugins/oracle/options.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ use clap::Parser;
use serde::{Deserialize, Serialize};

#[derive(Parser, Debug, Serialize, Deserialize, Clone, Default)]
#[group(skip)]
pub(crate) struct Options {
#[clap(long, default_value = "SYSTEM")]
/// Database name.
Expand Down
1 change: 1 addition & 0 deletions src/plugins/pop3/options.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ use clap::Parser;
use serde::{Deserialize, Serialize};

#[derive(Parser, Debug, Serialize, Deserialize, Clone, Default)]
#[group(skip)]
pub(crate) struct Options {
#[clap(long, default_value_t = false)]
/// Enable SSL for POP3.
Expand Down
1 change: 1 addition & 0 deletions src/plugins/rdp/options.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ use clap::Parser;
use serde::{Deserialize, Serialize};

#[derive(Parser, Debug, Serialize, Deserialize, Clone, Default)]
#[group(skip)]
pub(crate) struct Options {
#[clap(long, default_value = "")]
/// Domain name.
Expand Down
1 change: 1 addition & 0 deletions src/plugins/redis/options.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ use clap::Parser;
use serde::{Deserialize, Serialize};

#[derive(Parser, Debug, Serialize, Deserialize, Clone, Default)]
#[group(skip)]
pub(crate) struct Options {
#[clap(long, default_value_t = false)]
/// Enable SSL for Redis.
Expand Down
1 change: 1 addition & 0 deletions src/plugins/smtp/options.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ use clap::Parser;
use serde::{Deserialize, Serialize};

#[derive(Parser, Debug, Serialize, Deserialize, Clone, Default)]
#[group(skip)]
pub(crate) struct Options {
/// SMTP authentication mechanism, can be PLAIN (RFC4616), LOGIN (obsolete but needed for some providers like office365) or XOAUTH2.
#[clap(long, default_value = "PLAIN")]
Expand Down
1 change: 1 addition & 0 deletions src/plugins/ssh/options.rs
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ pub(crate) enum Mode {
}

#[derive(Parser, Debug, Serialize, Deserialize, Clone, Default)]
#[group(skip)]
pub(crate) struct Options {
#[clap(long, value_enum, default_value_t = Mode::Password)]
/// Authentication strategy.
Expand Down
1 change: 1 addition & 0 deletions src/plugins/tcp_ports/options.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ use clap::Parser;
use serde::{Deserialize, Serialize};

#[derive(Parser, Debug, Serialize, Deserialize, Clone, Default)]
#[group(skip)]
pub(crate) struct Options {
#[clap(long, default_value = "1-65535")]
/// Range or comma separated values of integer port numbers to scan.
Expand Down
1 change: 1 addition & 0 deletions src/plugins/telnet/options.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ use clap::Parser;
use serde::{Deserialize, Serialize};

#[derive(Parser, Debug, Serialize, Deserialize, Clone, Default)]
#[group(skip)]
pub(crate) struct Options {
#[clap(long, default_value = "login: ")]
/// Telnet server username login prompt string.
Expand Down

0 comments on commit a704326

Please sign in to comment.