Skip to content

Fixed timeout parameter #2

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 3 additions & 2 deletions smtp-user-enum.pl
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@
-T file File of hostnames running the smtp service
-p port TCP port on which smtp service runs (default: $smtp_port)
-d Debugging output
-t n Wait a maximum of n seconds for reply (default: $query_timeout)
-w n Wait a maximum of n seconds for reply (default: $query_timeout)
-v Verbose
-h This help message

Expand All @@ -84,7 +84,7 @@

USAGE

getopts('m:u:U:s:S:r:dt:vhM:f:D:p:', \%opts);
getopts('m:u:U:s:S:r:dt:vhM:f:D:p:w:', \%opts);

# Print help message if required
if ($opts{'h'}) {
Expand All @@ -105,6 +105,7 @@
$smtp_port = $opts{'p'} if $opts{'p'};
$mode = $opts{'M'} if $opts{'M'};
$from_address = $opts{'f'} if $opts{'f'};
$query_timeout = $opts{'w'} if $opts{'w'};

# Check for illegal option combinations
unless ((defined($username) or defined($username_file)) and (defined($host) or defined($host_file))) {
Expand Down