CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutSign UpSign In
rapid7

CoCalc provides the best real-time collaborative environment for Jupyter Notebooks, LaTeX documents, and SageMath, scalable from individual users to large groups and classes!

GitHub Repository: rapid7/metasploit-framework
Path: blob/master/lib/msf/base/sessions/create_session_options.rb
Views: 1904
1
# -*- coding: binary -*-
2
3
##
4
# This file is part of the Metasploit Framework and may be subject to
5
# redistribution and commercial restrictions. Please see the Metasploit
6
# Framework web site for more information on licensing and terms of use.
7
# https://metasploit.com/framework/
8
##
9
10
11
module Msf
12
module Sessions
13
module CreateSessionOptions
14
def initialize(info = {})
15
super(info)
16
17
register_options(
18
[
19
OptBool.new('CreateSession', [false, 'Create a new session for every successful login', true])
20
]
21
)
22
end
23
end
24
end
25
end
26
27