@@ -13,6 +13,7 @@ class MetasploitModule < Msf::Auxiliary
1313 include Msf ::Auxiliary ::Scanner
1414 include Msf ::Auxiliary ::Report
1515 include Msf ::Auxiliary ::CommandShell
16+ include Msf ::Sessions ::CreateSessionOptions
1617
1718 # Creates an instance of this module.
1819 def initialize ( info = { } )
@@ -26,6 +27,7 @@ def initialize(info = {})
2627 } ,
2728 'Author' => [ 'todb' ] ,
2829 'License' => MSF_LICENSE ,
30+ 'DefaultOptions' => { 'CreateSession' => false } ,
2931 'References' =>
3032 [
3133 [ 'URL' , 'https://www.postgresql.org/' ] ,
@@ -37,7 +39,6 @@ def initialize(info = {})
3739 register_options (
3840 [
3941 Opt ::Proxies ,
40- OptBool . new ( 'CreateSession' , [ false , 'Create a new session for every successful login' , false ] ) ,
4142 OptPath . new ( 'USERPASS_FILE' , [ false , "File containing (space-separated) users and passwords, one pair per line" ,
4243 File . join ( Msf ::Config . data_directory , "wordlists" , "postgres_default_userpass.txt" ) ] ) ,
4344 OptPath . new ( 'USER_FILE' , [ false , "File containing users, one per line" ,
0 commit comments