Merge pull request #1448 from wanton1950/1444_high_risk
#1444 high risk
This commit is contained in:
10
beef
10
beef
@@ -119,9 +119,13 @@ BeEF::Core::Console::Banners.print_loaded_modules
|
|||||||
BeEF::Core::Console::Banners.print_network_interfaces_count
|
BeEF::Core::Console::Banners.print_network_interfaces_count
|
||||||
BeEF::Core::Console::Banners.print_network_interfaces_routes
|
BeEF::Core::Console::Banners.print_network_interfaces_routes
|
||||||
|
|
||||||
# @note Warn on default credentials
|
# @note Warn and replace on default credentials
|
||||||
if config.get("beef.credentials.user").eql?('beef') && config.get("beef.credentials.passwd").eql?('beef')
|
if config.get("beef.credentials.user").eql?('beef') &&
|
||||||
print_warning "Warning: Default username and password in use!"
|
[/beef[0-9]*/, /passw[o0]rd[0-9]*/].select{|pattern| pattern.match(config.get("beef.credentials.passwd"))}.any?
|
||||||
|
print_warning "Warning: Default username and weak password in use!"
|
||||||
|
better_phrase = BeEF::Core::Crypto::secure_token(16)
|
||||||
|
config.set("beef.credentials.passwd", better_phrase)
|
||||||
|
print_more "New password for this instance: #{better_phrase}"
|
||||||
end
|
end
|
||||||
|
|
||||||
# @note create ~/.beef/
|
# @note create ~/.beef/
|
||||||
|
|||||||
Reference in New Issue
Block a user