CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutSign UpSign In
rapid7

Real-time collaboration for Jupyter Notebooks, Linux Terminals, LaTeX, VS Code, R IDE, and more,
all in one place.

GitHub Repository: rapid7/metasploit-framework
Path: blob/master/lib/msf/base/sessions/create_session_options.rb
Views: 11784
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