modified: modules/generators/content/bash_history/secgen_local/local.rb

Fixed password issue
This commit is contained in:
Jack Biggs
2023-04-17 20:39:39 +01:00
parent 4f05e8b223
commit b1bc40a5da

View File

@@ -18,7 +18,7 @@ class BashHistoryGenerator < StringGenerator
super + [['--password', GetoptLong::OPTIONAL_ARGUMENT]]
end
def proccess_options(opt, arg)
def process_options(opt, arg)
super
case opt
when '--password'
@@ -29,7 +29,6 @@ class BashHistoryGenerator < StringGenerator
def generate
sudo_array = File.readlines('../../../../../lib/resources/linelists/top_50_sudo_commands')
command_array = File.readlines('../../../../../lib/resources/linelists/top_90_linux_commands')
puts "Password = #{self.password_sample}"
if self.password_sample != ''
self.sudo_sample = sudo_array.sample(5)
self.command_sample = command_array.sample(20)