mirror of
https://github.com/nmap/nmap.git
synced 2025-12-09 14:11:29 +00:00
Disable username as password if passonly option is used [Patrik]
This commit is contained in:
@@ -688,7 +688,10 @@ Engine =
|
|||||||
end
|
end
|
||||||
|
|
||||||
if ( ( not(mode) or mode == 'user' or mode == 'pass' ) and self.options.useraspass ) then
|
if ( ( not(mode) or mode == 'user' or mode == 'pass' ) and self.options.useraspass ) then
|
||||||
table.insert( self.iterators, 1, Iterators.pw_same_as_user_iterator(usernames, "lower"))
|
-- if we're only guessing passwords, this doesn't make sense
|
||||||
|
if ( not(self.options.passonly) ) then
|
||||||
|
table.insert( self.iterators, 1, Iterators.pw_same_as_user_iterator(usernames, "lower"))
|
||||||
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
if ( ( not(mode) or mode == 'user' or mode == 'pass' ) and self.options.emptypass ) then
|
if ( ( not(mode) or mode == 'user' or mode == 'pass' ) and self.options.emptypass ) then
|
||||||
|
|||||||
Reference in New Issue
Block a user