mirror of
https://github.com/cliffe/SecGen.git
synced 2026-02-21 11:18:06 +00:00
modified: modules/generators/content/bash_history/secgen_local/local.rb
Fixed password issue
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user