-
Notifications
You must be signed in to change notification settings - Fork 14.3k
MeterpreterOptions break-up and default extension loading removal #20012
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Open
dledda-r7
wants to merge
8
commits into
rapid7:master
Choose a base branch
from
dledda-r7:feat/remove-default-extensions
base: master
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from all commits
Commits
Show all changes
8 commits
Select commit
Hold shift + click to select a range
44617cb
feat: split platform-specific meterpreter options on different module…
dledda-r7 a7f4da5
feat: split platform-specific meterpreter options on different module…
dledda-r7 e44043b
fix: restored deleted comments
dledda-r7 dd23be9
fix: modified meterpreter_reverse template for platform-specific Mete…
dledda-r7 e4bc2a6
fix: changed MeterpreterOptions to be platform-specific in pivot
dledda-r7 70bafdf
fix: delete of meterpreter_options.rb
dledda-r7 c4ca4d6
fix: re-include OSX specific option
dledda-r7 5e3e975
fix: renaming Osx to OSX for autoload support
dledda-r7 File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
# -*- coding: binary -*- | ||
|
||
require 'shellwords' | ||
|
||
module Msf | ||
module Sessions | ||
# | ||
# Defines common options across all Meterpreter implementations | ||
# | ||
module MeterpreterOptions::Android | ||
include Msf::Sessions::MeterpreterOptions::Common | ||
def initialize(info = {}) | ||
super(info) | ||
|
||
register_advanced_options( | ||
[ | ||
OptString.new( | ||
'AutoLoadExtensions', | ||
[true, "Automatically load extensions on bootstrap, semicolon separated.", 'stdapi;android'] | ||
), | ||
], | ||
self.class | ||
) | ||
end | ||
end | ||
end | ||
end |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
# -*- coding: binary -*- | ||
|
||
require 'shellwords' | ||
|
||
module Msf | ||
module Sessions | ||
# | ||
# Defines common options across all Meterpreter implementations | ||
# | ||
module MeterpreterOptions::AppleIos | ||
include Msf::Sessions::MeterpreterOptions::Common | ||
def initialize(info = {}) | ||
super(info) | ||
|
||
register_advanced_options( | ||
[ | ||
OptString.new( | ||
'AutoLoadExtensions', | ||
[true, "Automatically load extensions on bootstrap, semicolon separated.", 'stdapi'] | ||
), | ||
OptString.new( | ||
'PayloadProcessCommandLine', | ||
[ false, 'The displayed command line that will be used by the payload', ''] | ||
), | ||
], | ||
self.class | ||
) | ||
end | ||
end | ||
end | ||
end |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
# -*- coding: binary -*- | ||
|
||
require 'shellwords' | ||
|
||
module Msf | ||
module Sessions | ||
# | ||
# Defines common options across all Meterpreter implementations | ||
# | ||
module MeterpreterOptions::Bsd | ||
include Msf::Sessions::MeterpreterOptions::Common | ||
def initialize(info = {}) | ||
super(info) | ||
|
||
register_advanced_options( | ||
[ | ||
OptString.new( | ||
'AutoLoadExtensions', | ||
[true, "Automatically load extensions on bootstrap, semicolon separated.", 'stdapi'] | ||
), | ||
], | ||
self.class | ||
) | ||
end | ||
end | ||
end | ||
end |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
# -*- coding: binary -*- | ||
|
||
require 'shellwords' | ||
|
||
module Msf | ||
module Sessions | ||
# | ||
# Defines common options across all Meterpreter implementations | ||
# | ||
module MeterpreterOptions::Java | ||
include Msf::Sessions::MeterpreterOptions::Common | ||
def initialize(info = {}) | ||
super(info) | ||
|
||
register_advanced_options( | ||
[ | ||
OptString.new( | ||
'AutoLoadExtensions', | ||
[true, "Automatically load extensions on bootstrap, semicolon separated.", 'stdapi'] | ||
), | ||
], | ||
self.class | ||
) | ||
end | ||
end | ||
end | ||
end |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
# -*- coding: binary -*- | ||
|
||
require 'shellwords' | ||
|
||
module Msf | ||
module Sessions | ||
# | ||
# Defines common options across all Meterpreter implementations | ||
# | ||
module MeterpreterOptions::Linux | ||
include Msf::Sessions::MeterpreterOptions::Common | ||
def initialize(info = {}) | ||
super(info) | ||
|
||
register_advanced_options( | ||
[ | ||
OptString.new( | ||
'AutoLoadExtensions', | ||
[true, "Automatically load extensions on bootstrap, semicolon separated.", 'stdapi'] | ||
), | ||
OptString.new( | ||
'PayloadProcessCommandLine', | ||
[ false, 'The displayed command line that will be used by the payload', ''] | ||
), | ||
], | ||
self.class | ||
) | ||
end | ||
end | ||
end | ||
end |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
# -*- coding: binary -*- | ||
|
||
require 'shellwords' | ||
|
||
module Msf | ||
module Sessions | ||
# | ||
# Defines common options across all Meterpreter implementations | ||
# | ||
module MeterpreterOptions::OSX | ||
include Msf::Sessions::MeterpreterOptions::Common | ||
def initialize(info = {}) | ||
super(info) | ||
|
||
register_advanced_options( | ||
[ | ||
OptString.new( | ||
'AutoLoadExtensions', | ||
[true, 'Automatically load extensions on bootstrap, semicolon separated.', 'stdapi'] | ||
), | ||
OptString.new( | ||
'PayloadProcessCommandLine', | ||
[ false, 'The displayed command line that will be used by the payload', ''] | ||
), | ||
], | ||
self.class | ||
) | ||
end | ||
end | ||
end | ||
end |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
# -*- coding: binary -*- | ||
|
||
require 'shellwords' | ||
|
||
module Msf | ||
module Sessions | ||
# | ||
# Defines common options across all Meterpreter implementations | ||
# | ||
module MeterpreterOptions::Php | ||
include Msf::Sessions::MeterpreterOptions::Common | ||
def initialize(info = {}) | ||
super(info) | ||
|
||
register_advanced_options( | ||
[ | ||
OptString.new( | ||
'AutoLoadExtensions', | ||
[true, "Automatically load extensions on bootstrap, semicolon separated.", 'stdapi'] | ||
), | ||
], | ||
self.class | ||
) | ||
end | ||
end | ||
end | ||
end |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
# -*- coding: binary -*- | ||
|
||
require 'shellwords' | ||
|
||
module Msf | ||
module Sessions | ||
# | ||
# Defines common options across all Meterpreter implementations | ||
# | ||
module MeterpreterOptions::Python | ||
include Msf::Sessions::MeterpreterOptions::Common | ||
def initialize(info = {}) | ||
super(info) | ||
|
||
register_advanced_options( | ||
[ | ||
OptString.new( | ||
'AutoLoadExtensions', | ||
[true, "Automatically load extensions on bootstrap, semicolon separated.", 'stdapi'] | ||
), | ||
], | ||
self.class | ||
) | ||
end | ||
end | ||
end | ||
end |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
# -*- coding: binary -*- | ||
|
||
require 'shellwords' | ||
|
||
module Msf | ||
module Sessions | ||
# | ||
# Defines common options across all Meterpreter implementations | ||
# | ||
module MeterpreterOptions::Windows | ||
include Msf::Sessions::MeterpreterOptions::Common | ||
def initialize(info = {}) | ||
super(info) | ||
|
||
register_advanced_options( | ||
[ | ||
OptString.new( | ||
'AutoLoadExtensions', | ||
[true, "Automatically load extensions on bootstrap, semicolon separated.", 'unhook;priv;stdapi'] | ||
), | ||
OptBool.new( | ||
'AutoUnhookProcess', | ||
[true, "Automatically load the unhook extension and unhook the process", false] | ||
), | ||
], | ||
self.class | ||
) | ||
end | ||
end | ||
end | ||
end |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.