Skip to content

Commit 2756c73

Browse files
committed
Add datastore options
1 parent 1ab4939 commit 2756c73

File tree

1 file changed

+7
-2
lines changed

1 file changed

+7
-2
lines changed

modules/post/multi/gather/dbvis_enum.rb

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,11 @@ def initialize(info={})
2626
'Platform' => %w{ linux win },
2727
'SessionTypes' => [ 'meterpreter', 'shell']
2828
))
29+
register_options(
30+
[
31+
OptString.new('PASSPHRASE', [false, 'The hardcoded passphrase used for encryption']),
32+
OptInt.new('ITERATION_COUNT', [false, 'The iteration count used in key derivation', 10])
33+
], super.class)
2934
end
3035

3136
def run
@@ -315,11 +320,11 @@ def salt
315320
end
316321

317322
def passphrase
318-
'qinda'
323+
datastore['PASSPHRASE'] || 'qinda'
319324
end
320325

321326
def iteration_count
322-
10
327+
datastore['ITERATION_COUNT'] || 10
323328
end
324329

325330
end

0 commit comments

Comments
 (0)