forked from rapid7/metasploit-framework
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'master' into aruba-testing
Conflicts: .rubocop.yml Gemfile Gemfile.lock Rakefile lib/metasploit/framework/command/console.rb lib/metasploit/framework/common_engine.rb lib/metasploit/framework/parsed_options/console.rb lib/metasploit/framework/require.rb lib/metasploit/framework/version.rb lib/msf/core/modules/namespace.rb modules/auxiliary/analyze/jtr_postgres_fast.rb spec/lib/msf/core/framework_spec.rb
- Loading branch information
Showing
213 changed files
with
7,672 additions
and
2,364 deletions.
There are no files selected for viewing
This file contains 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,56 @@ | ||
# This list was intially created by analyzing the last three months (51 | ||
# modules) committed to Metasploit Framework. Many, many older modules | ||
# will have offenses, but this should at least provide a baseline for | ||
# new modules. | ||
# | ||
# Updates to this file should include a 'Description' parameter for any | ||
# explaination needed. | ||
|
||
# inherit_from: .rubocop_todo.yml | ||
|
||
Style/ClassLength: | ||
Description: 'Most Metasploit modules are quite large. This is ok.' | ||
Enabled: true | ||
Exclude: | ||
- 'modules/**/*' | ||
|
||
Style/Documentation: | ||
Enabled: true | ||
Description: 'Most Metasploit modules do not have class documentation.' | ||
Exclude: | ||
- 'modules/**/*' | ||
|
||
Style/Encoding: | ||
Enabled: true | ||
Description: 'We prefer binary to UTF-8.' | ||
EnforcedStyle: 'when_needed' | ||
|
||
Style/LineLength: | ||
Description: >- | ||
Metasploit modules often pattern match against very | ||
long strings when identifying targets. | ||
Enabled: true | ||
Max: 180 | ||
|
||
Style/MethodLength: | ||
Enabled: true | ||
Description: >- | ||
While the style guide suggests 10 lines, exploit definitions | ||
often exceed 200 lines. | ||
Max: 300 | ||
|
||
Style/NumericLiterals: | ||
Enabled: false | ||
Description: 'This often hurts readability for exploit-ish code.' | ||
|
||
Style/SpaceInsideBrackets: | ||
Enabled: false | ||
Description: 'Until module template are final, most modules will fail this.' | ||
|
||
Style/StringLiterals: | ||
Enabled: false | ||
Description: 'Single vs double quote fights are largely unproductive.' | ||
|
||
Style/WordArray: | ||
Enabled: false | ||
Description: 'Metasploit prefers consistent use of []' |
This file contains 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 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 |
---|---|---|
|
@@ -43,7 +43,6 @@ group :development, :test do | |
gem 'cucumber' | ||
|
||
gem 'aruba' | ||
|
||
end | ||
|
||
group :pcap do | ||
|
This file contains 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 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
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
This file contains 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 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 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 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 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 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 |
---|---|---|
|
@@ -3,7 +3,7 @@ module Framework | |
module Version | ||
MAJOR = 4 | ||
MINOR = 10 | ||
PATCH = 0 | ||
PATCH = 1 | ||
PRERELEASE = 'dev' | ||
end | ||
|
||
|
This file contains 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,33 @@ | ||
# -*- coding: binary -*- | ||
|
||
require 'msf/base/sessions/meterpreter' | ||
require 'msf/base/sessions/meterpreter_java' | ||
require 'msf/base/sessions/meterpreter_options' | ||
|
||
module Msf | ||
module Sessions | ||
|
||
### | ||
# | ||
# This class creates a platform-specific meterpreter session type | ||
# | ||
### | ||
class Meterpreter_Java_Android < Msf::Sessions::Meterpreter_Java_Java | ||
|
||
def initialize(rstream, opts={}) | ||
super | ||
self.platform = 'java/android' | ||
end | ||
|
||
def load_android | ||
original = console.disable_output | ||
console.disable_output = true | ||
console.run_single('load android') | ||
console.disable_output = original | ||
end | ||
|
||
end | ||
|
||
end | ||
end | ||
|
This file contains 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 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 |
---|---|---|
@@ -1,3 +1,4 @@ | ||
# -*- coding: binary -*- | ||
module Msf | ||
module Simple | ||
module Framework | ||
|
This file contains 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 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 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 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 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 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 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 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 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 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 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 |
---|---|---|
@@ -1,3 +1,4 @@ | ||
# -*- coding: binary -*- | ||
module Msf | ||
class DBManager | ||
module Migration | ||
|
This file contains 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 |
---|---|---|
@@ -1,3 +1,4 @@ | ||
# -*- coding: binary -*- | ||
module Msf | ||
module Exe | ||
|
||
|
This file contains 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 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 |
---|---|---|
@@ -1,3 +1,4 @@ | ||
# -*- coding: binary -*- | ||
|
||
module Msf | ||
module Exploit::Local::CompileC | ||
|
This file contains 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 |
---|---|---|
@@ -1,3 +1,4 @@ | ||
# -*- coding: binary -*- | ||
require 'msf/core/exploit/local/compile_c' | ||
|
||
module Msf | ||
|
This file contains 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 |
---|---|---|
@@ -1,3 +1,4 @@ | ||
# -*- coding: binary -*- | ||
require 'msf/core/exploit/local/compile_c' | ||
|
||
module Msf | ||
|
Oops, something went wrong.