Skip to content

Commit

Permalink
Add handling of NT_STATUS_INVALID_PARAMETER when finding users
Browse files Browse the repository at this point in the history
  • Loading branch information
rastating committed Oct 1, 2017
1 parent 766cc39 commit c63330f
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions enum4linux.pl
Original file line number Diff line number Diff line change
Expand Up @@ -869,6 +869,8 @@ sub enum_users {
my $continue = 1;
if ($users =~ /NT_STATUS_ACCESS_DENIED/) {
print "[E] Couldn't find users using querydispinfo: NT_STATUS_ACCESS_DENIED\n";
} elsif ($users =~ /NT_STATUS_INVALID_PARAMETER/) {
print "[E] Couldn't find users using querydispinfo: NT_STATUS_INVALID_PARAMETER\n";
} else {
($users) = $users =~ /(index:.*)/s;
print $users;
Expand All @@ -883,6 +885,8 @@ sub enum_users {
$users = `$command`;
if ($users =~ /NT_STATUS_ACCESS_DENIED/) {
print "[E] Couldn't find users using enumdomusers: NT_STATUS_ACCESS_DENIED\n";
} elsif ($users =~ /NT_STATUS_INVALID_PARAMETER/) {
print "[E] Couldn't find users using enumdomusers: NT_STATUS_INVALID_PARAMETER\n";
} else {
($users) = $users =~ /(user:.*)/s;
print $users;
Expand Down

0 comments on commit c63330f

Please sign in to comment.