Skip to content

Commit 473b92a

Browse files
David MaloneyDavid Maloney
authored andcommitted
Merge branch 'master' into feature/MSP-10992/scanner-dry
Conflicts: Gemfile.lock lib/metasploit/framework/command/console.rb lib/metasploit/framework/common_engine.rb lib/metasploit/framework/credential.rb lib/metasploit/framework/credential_collection.rb lib/metasploit/framework/login_scanner/afp.rb lib/metasploit/framework/login_scanner/axis2.rb lib/metasploit/framework/login_scanner/db2.rb lib/metasploit/framework/login_scanner/ftp.rb lib/metasploit/framework/login_scanner/http.rb lib/metasploit/framework/login_scanner/mssql.rb lib/metasploit/framework/login_scanner/mysql.rb lib/metasploit/framework/login_scanner/pop3.rb lib/metasploit/framework/login_scanner/postgres.rb lib/metasploit/framework/login_scanner/result.rb lib/metasploit/framework/login_scanner/smb.rb lib/metasploit/framework/login_scanner/snmp.rb lib/metasploit/framework/login_scanner/ssh.rb lib/metasploit/framework/login_scanner/telnet.rb lib/metasploit/framework/login_scanner/vnc.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 modules/auxiliary/scanner/afp/afp_login.rb modules/auxiliary/scanner/db2/db2_auth.rb modules/auxiliary/scanner/ftp/ftp_login.rb modules/auxiliary/scanner/http/axis_login.rb modules/auxiliary/scanner/http/http_login.rb modules/auxiliary/scanner/http/tomcat_mgr_login.rb modules/auxiliary/scanner/mssql/mssql_login.rb modules/auxiliary/scanner/mysql/mysql_login.rb modules/auxiliary/scanner/pop3/pop3_login.rb modules/auxiliary/scanner/postgres/postgres_login.rb modules/auxiliary/scanner/snmp/snmp_login.rb modules/auxiliary/scanner/ssh/ssh_login.rb modules/auxiliary/scanner/ssh/ssh_login_pubkey.rb modules/auxiliary/scanner/telnet/telnet_login.rb modules/auxiliary/scanner/vnc/vnc_login.rb modules/auxiliary/scanner/winrm/winrm_login.rb spec/lib/metasploit/framework/credential_spec.rb spec/lib/msf/core/framework_spec.rb
2 parents fcfce9e + e0df664 commit 473b92a

File tree

213 files changed

+7664
-2399
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

213 files changed

+7664
-2399
lines changed

.rubocop.yml

Lines changed: 47 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,56 @@
1-
LineLength:
2-
Enabled: true
3-
Max: 180
1+
# This list was intially created by analyzing the last three months (51
2+
# modules) committed to Metasploit Framework. Many, many older modules
3+
# will have offenses, but this should at least provide a baseline for
4+
# new modules.
5+
#
6+
# Updates to this file should include a 'Description' parameter for any
7+
# explaination needed.
48

5-
MethodLength:
6-
Enabled: true
7-
Max: 100
9+
# inherit_from: .rubocop_todo.yml
810

911
Style/ClassLength:
12+
Description: 'Most Metasploit modules are quite large. This is ok.'
13+
Enabled: true
1014
Exclude:
11-
# Most modules are quite large and all contained in one class. This is OK.
1215
- 'modules/**/*'
1316

17+
Style/Documentation:
18+
Enabled: true
19+
Description: 'Most Metasploit modules do not have class documentation.'
20+
Exclude:
21+
- 'modules/**/*'
22+
23+
Style/Encoding:
24+
Enabled: true
25+
Description: 'We prefer binary to UTF-8.'
26+
EnforcedStyle: 'when_needed'
27+
28+
Style/LineLength:
29+
Description: >-
30+
Metasploit modules often pattern match against very
31+
long strings when identifying targets.
32+
Enabled: true
33+
Max: 180
34+
35+
Style/MethodLength:
36+
Enabled: true
37+
Description: >-
38+
While the style guide suggests 10 lines, exploit definitions
39+
often exceed 200 lines.
40+
Max: 300
41+
1442
Style/NumericLiterals:
1543
Enabled: false
44+
Description: 'This often hurts readability for exploit-ish code.'
1645

17-
Documentation:
18-
Exclude:
19-
- 'modules/**/*'
46+
Style/SpaceInsideBrackets:
47+
Enabled: false
48+
Description: 'Until module template are final, most modules will fail this.'
49+
50+
Style/StringLiterals:
51+
Enabled: false
52+
Description: 'Single vs double quote fights are largely unproductive.'
53+
54+
Style/WordArray:
55+
Enabled: false
56+
Description: 'Metasploit prefers consistent use of []'

CONTRIBUTING.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ and Metasploit's [Common Coding Mistakes](https://github.com/rapid7/metasploit-f
3333
## Code Contributions
3434

3535
* **Do** stick to the [Ruby style guide](https://github.com/bbatsov/ruby-style-guide).
36-
* Similarly, **try** to get Rubocop passing or at least relatively quiet against the files added/modified as part of your contribution
36+
* *Do* get [Rubocop](https://rubygems.org/search?query=rubocop) relatively quiet against the code you are adding or modifying.
3737
* **Do** follow the [50/72 rule](http://tbaggery.com/2008/04/19/a-note-about-git-commit-messages.html) for Git commit messages.
3838
* **Do** create a [topic branch](http://git-scm.com/book/en/Git-Branching-Branching-Workflows#Topic-Branches) to work on instead of working directly on `master`.
3939

Gemfile

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,8 +15,6 @@ group :db do
1515
end
1616

1717
group :development do
18-
# Style/sanity checking Ruby code
19-
gem 'rubocop'
2018
# Markdown formatting for yard
2119
gem 'redcarpet'
2220
# generating documentation

Gemfile.lock

Lines changed: 1 addition & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
PATH
22
remote: .
33
specs:
4-
metasploit-framework (4.10.0.pre.dev)
4+
metasploit-framework (4.10.1.pre.dev)
55
actionpack (< 4.0.0)
66
activesupport (>= 3.0.0, < 4.0.0)
77
bcrypt
@@ -45,7 +45,6 @@ GEM
4545
arel (3.0.3)
4646
arel-helpers (2.0.1)
4747
activerecord (>= 3.1.0, < 5)
48-
ast (2.0.0)
4948
bcrypt (3.1.7)
5049
builder (3.0.4)
5150
coderay (1.1.0)
@@ -88,12 +87,8 @@ GEM
8887
nokogiri (1.6.3.1)
8988
mini_portile (= 0.6.0)
9089
packetfu (1.1.9)
91-
parser (2.1.9)
92-
ast (>= 1.1, < 3.0)
93-
slop (~> 3.4, >= 3.4.5)
9490
pcaprub (0.11.3)
9591
pg (0.17.1)
96-
powerpack (0.0.9)
9792
pry (0.10.0)
9893
coderay (~> 1.1.0)
9994
method_source (~> 0.8.1)
@@ -112,7 +107,6 @@ GEM
112107
rake (>= 0.8.7)
113108
rdoc (~> 3.4)
114109
thor (>= 0.14.6, < 2.0)
115-
rainbow (2.0.0)
116110
rake (10.3.2)
117111
rdoc (3.12.2)
118112
json (~> 1.4)
@@ -138,14 +132,6 @@ GEM
138132
rspec-core (~> 2.99.0)
139133
rspec-expectations (~> 2.99.0)
140134
rspec-mocks (~> 2.99.0)
141-
rubocop (0.23.0)
142-
json (>= 1.7.7, < 2)
143-
parser (~> 2.1.9)
144-
powerpack (~> 0.0.6)
145-
rainbow (>= 1.99.1, < 3.0)
146-
ruby-progressbar (~> 1.4)
147-
ruby-progressbar (1.5.1)
148-
activesupport (>= 3.0.0)
149135
rubyntlm (0.4.0)
150136
rubyzip (1.1.6)
151137
shoulda-matchers (2.6.2)
@@ -185,7 +171,6 @@ DEPENDENCIES
185171
redcarpet
186172
rspec (>= 2.12, < 3.0.0)
187173
rspec-rails (>= 2.12, < 3.0.0)
188-
rubocop
189174
shoulda-matchers
190175
simplecov (= 0.5.4)
191176
timecop

data/android/apk/AndroidManifest.xml

140 Bytes
Binary file not shown.

data/android/apk/resources.arsc

4 Bytes
Binary file not shown.

data/android/meterpreter.jar

3.26 KB
Binary file not shown.

data/android/metstage.jar

0 Bytes
Binary file not shown.

data/android/shell.jar

0 Bytes
Binary file not shown.
37.9 KB
Binary file not shown.

0 commit comments

Comments
 (0)