Skip to content

Commit 6ec3e65

Browse files
committed
Merge pull request #1 from jvazquez-r7/rebase_3019
Clean Huawei SOHO router information disclosure
2 parents 6028c6b + 23c9d4f commit 6ec3e65

File tree

4,829 files changed

+231664
-118255
lines changed

Some content is hidden

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

4,829 files changed

+231664
-118255
lines changed

.gitignore

Lines changed: 38 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,20 +1,28 @@
11
.bundle
2+
Gemfile.local
3+
Gemfile.local.lock
24
# Rubymine project directory
35
.idea
46
# Sublime Text project directory (not created by ST by default)
57
.sublime-project
68
# RVM control file, keep this to avoid backdooring Metasploit
79
.rvmrc
10+
# Allow for a local choice of (unsupported / semi-supported) ruby versions
11+
# See PR #4136 for usage, but example usage for rvm:
12+
# rvm --create --versions-conf use 2.1.4@metasploit-framework
13+
# Because rbenv doesn't use .versions.conf, to achieve this same functionality, run:
14+
# rbenv shell 2.1.4
15+
.versions.conf
816
# YARD cache directory
917
.yardoc
1018
# Mac OS X files
1119
.DS_Store
1220
# database config for testing
1321
config/database.yml
22+
# target config file for testing
23+
features/support/targets.yml
1424
# simplecov coverage data
1525
coverage
16-
data/meterpreter/ext_server_pivot.x86.dll
17-
data/meterpreter/ext_server_pivot.x64.dll
1826
doc/
1927
external/source/meterpreter/java/bin
2028
external/source/meterpreter/java/build
@@ -48,6 +56,34 @@ tags
4856
*.opensdf
4957
*.user
5058

59+
# Rails log directory
60+
/log
61+
# Rails tmp directory
62+
/tmp
63+
5164
# ignore release/debug folders for exploits
5265
external/source/exploits/**/Debug
5366
external/source/exploits/**/Release
67+
68+
# Avoid checking in Meterpreter binaries. These are supplied upstream by
69+
# the meterpreter_bins gem.
70+
data/meterpreter/elevator.*.dll
71+
data/meterpreter/ext_server_espia.*.dll
72+
data/meterpreter/ext_server_extapi.*.dll
73+
data/meterpreter/ext_server_incognito.*.dll
74+
data/meterpreter/ext_server_kiwi.*.dll
75+
data/meterpreter/ext_server_lanattacks.*.dll
76+
data/meterpreter/ext_server_mimikatz.*.dll
77+
data/meterpreter/ext_server_priv.*.dll
78+
data/meterpreter/ext_server_stdapi.*.dll
79+
data/meterpreter/metsrv.*.dll
80+
data/meterpreter/screenshot.*.dll
81+
82+
# Avoid checking in Meterpreter libs that are built from
83+
# private source. If you're interested in this functionality,
84+
# check out Metasploit Pro: http://metasploit.com/download
85+
data/meterpreter/ext_server_pivot.*.dll
86+
87+
# Avoid checking in metakitty, the source for
88+
# https://rapid7.github.io/metasploit-framework. It's an orphan branch.
89+
/metakitty

.gitmodules

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
[submodule "external/source/ReflectiveDLLInjection"]
2+
path = external/source/ReflectiveDLLInjection
3+
url = https://github.com/rapid7/ReflectiveDLLInjection.git

.mailmap

Lines changed: 58 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,26 +1,50 @@
1+
bcook-r7 <bcook-r7@github> Brent Cook <[email protected]>
12
bturner-r7 <bturner-r7@github> Brandon Turner <[email protected]>
3+
cdoughty-r7 <cdoughty-r7@github> Chris Doughty <[email protected]>
4+
dheiland-r7 <dheiland-r7@github> Deral Heiland <[email protected]>
25
dmaloney-r7 <dmaloney-r7@github> David Maloney <[email protected]>
3-
dmaloney-r7 <dmaloney-r7@github> David Maloney <[email protected]> # aka TheLightCosine
6+
dmaloney-r7 <dmaloney-r7@github> David Maloney <[email protected]>
7+
dmaloney-r7 <dmaloney-r7@github> dmaloney-r7 <[email protected]>
48
ecarey-r7 <ecarey-r7@github> Erran Carey <[email protected]>
9+
farias-r7 <farias-r7@github> Fernando Arias <[email protected]>
510
hmoore-r7 <hmoore-r7@github> HD Moore <[email protected]>
611
hmoore-r7 <hmoore-r7@github> HD Moore <[email protected]>
12+
jhart-r7 <jhart-r7@github> Jon Hart <[email protected]>
713
jlee-r7 <jlee-r7@github> egypt <[email protected]> # aka egypt
814
jlee-r7 <jlee-r7@github> James Lee <[email protected]> # aka egypt
915
jlee-r7 <jlee-r7@github> James Lee <[email protected]>
10-
joev-r7 <joev-r7@github> joev <[email protected]>
1116
joev-r7 <joev-r7@github> Joe Vennix <[email protected]>
17+
joev-r7 <joev-r7@github> Joe Vennix <[email protected]>
18+
joev-r7 <joev-r7@github> joev <[email protected]>
19+
joev-r7 <joev-r7@github> jvennix-r7 <[email protected]>
20+
joev-r7 <joev-r7@github> jvennix-r7 <[email protected]>
1221
jvazquez-r7 <jvazquez-r7@github> jvazquez-r7 <[email protected]>
1322
jvazquez-r7 <jvazquez-r7@github> jvazquez-r7 <[email protected]>
23+
kgray-r7 <kgray-r7@github> Kyle Gray <[email protected]>
1424
limhoff-r7 <limhoff-r7@github> Luke Imhoff <[email protected]>
25+
lsanchez-r7 <lsanchez-r7@github> darkbushido <[email protected]>
26+
lsanchez-r7 <lsanchez-r7@github> Lance Sanchez <[email protected]>
27+
lsanchez-r7 <lsanchez-r7@github> Lance Sanchez <[email protected]>
28+
lsanchez-r7 <lsanchez-r7@github> Lance Sanchez <[email protected]>
29+
lsanchez-r7 <lsanchez-r7@github> Lance Sanchez <[email protected]>
30+
mbuck-r7 <mbuck-r7@github> Matt Buck <[email protected]>
31+
mbuck-r7 <mbuck-r7@github> Matt Buck <[email protected]>
32+
mschloesser-r7 <mschloesser-r7@github> Mark Schloesser <[email protected]>
33+
mschloesser-r7 <mschloesser-r7@github> mschloesser-r7 <[email protected]>
34+
parzamendi-r7 <parzamendi-r7@github> parzamendi-r7 <[email protected]>
1535
shuckins-r7 <shuckins-r7@github> Samuel Huckins <[email protected]>
16-
tasos-r7 <tasos-r7@github> Tasos Laskos <[email protected]>
1736
todb-r7 <todb-r7@github> Tod Beardsley <[email protected]>
1837
todb-r7 <todb-r7@github> Tod Beardsley <[email protected]>
38+
todb-r7 <todb-r7@github> Tod Beardsley <[email protected]>
39+
trosen-r7 <trosen-r7@github> Trevor Rosen <[email protected]>
40+
trosen-r7 <trosen-r7@github> Trevor Rosen <[email protected]>
1941
wchen-r7 <wchen-r7@github> sinn3r <[email protected]> # aka sinn3r
2042
wchen-r7 <wchen-r7@github> sinn3r <[email protected]>
2143
wchen-r7 <wchen-r7@github> Wei Chen <[email protected]>
2244
wvu-r7 <wvu-r7@github> William Vu <[email protected]>
45+
wvu-r7 <wvu-r7@github> William Vu <[email protected]>
2346
wvu-r7 <wvu-r7@github> William Vu <[email protected]>
47+
wvu-r7 <wvu-r7@github> wvu-r7 <[email protected]>
2448

2549
# Above this line are current Rapid7 employees. Below this paragraph are
2650
# volunteers, former employees, and potential Rapid7 employees who, at
@@ -30,18 +54,21 @@ wvu-r7 <wvu-r7@github> William Vu <[email protected]>
3054
# let [email protected] know.
3155

3256
bannedit <bannedit@github> David Rude <[email protected]>
33-
Brandon Perry <brandonprry@github> Brandon Perry <[email protected]>
34-
Brandon Perry <brandonprry@github> Brandon Perry <bperry@bperry-rapid7.(none)>
35-
Brian Wallace <bwall@github> (B)rian (Wall)ace <[email protected]>
36-
Brian Wallace <bwall@github> Brian Wallace <[email protected]>
57+
bcoles <bcoles@github> bcoles <[email protected]>
58+
bcoles <bcoles@github> Brendan Coles <[email protected]>
59+
brandonprry <brandonprry@github> Brandon Perry <[email protected]>
60+
brandonprry <brandonprry@github> Brandon Perry <bperry@bperry-rapid7.(none)>
61+
brandonprry <brandonprry@github> Brandon Perry <[email protected]>
62+
bwall <bwall@github> (B)rian (Wall)ace <[email protected]>
63+
bwall <bwall@github> Brian Wallace <[email protected]>
3764
ceballosm <ceballosm@github> Mario Ceballos <[email protected]>
3865
Chao-mu <Chao-Mu@github> Chao Mu <[email protected]>
3966
Chao-mu <Chao-Mu@github> chao-mu <[email protected]>
4067
Chao-mu <Chao-Mu@github> chao-mu <chao@confusion.(none)>
4168
ChrisJohnRiley <ChrisJohnRiley@github> Chris John Riley <[email protected]>
4269
ChrisJohnRiley <ChrisJohnRiley@github> Chris John Riley <[email protected]>
43-
corelanc0d3er <corelanc0d3er@github> corelanc0d3r <[email protected]>
44-
corelanc0d3er <corelanc0d3er@github> Peter Van Eeckhoutte (corelanc0d3r) <[email protected]>
70+
corelanc0d3r <corelanc0d3r@github> corelanc0d3r <[email protected]>
71+
corelanc0d3r <corelanc0d3r@github> Peter Van Eeckhoutte (corelanc0d3r) <[email protected]>
4572
darkoperator <darkoperator@github> Carlos Perez <[email protected]>
4673
efraintorres <efraintorres@github> efraintorres <[email protected]>
4774
efraintorres <efraintorres@github> et <>
@@ -55,26 +82,44 @@ jduck <jduck@github> Joshua Drake <[email protected]>
5582
jgor <jgor@github> jgor <[email protected]>
5683
kernelsmith <kernelsmith@github> Joshua Smith <[email protected]>
5784
kernelsmith <kernelsmith@github> kernelsmith <kernelsmith@kernelsmith>
85+
kernelsmith <kernelsmith@github> Joshua Smith <[email protected]>
5886
kost <kost@github> Vlatko Kosturjak <[email protected]>
5987
kris <kris@???> kris <>
6088
m-1-k-3 <m-1-k-3@github> m-1-k-3 <[email protected]>
6189
m-1-k-3 <m-1-k-3@github> m-1-k-3 <[email protected]>
6290
m-1-k-3 <m-1-k-3@github> m-1-k-3 <[email protected]>
91+
m-1-k-3 <m-1-k-3@github> Michael Messner <[email protected]>
6392
Meatballs1 <Meatballs1@github> Ben Campbell <[email protected]>
6493
Meatballs1 <Meatballs1@github> Meatballs <[email protected]>
65-
Meatballs1 <Meatballs1@github> Meatballs1 <[email protected]>
94+
Meatballs1 <Meatballs1@github> Meatballs1 <[email protected]>
6695
mubix <mubix@github> Rob Fuller <[email protected]>
6796
nevdull77 <nevdull77@github> Patrik Karlsson <[email protected]>
68-
nmonkee <nmonkee@github> nmonkee <[email protected]>
97+
nmonkee <nmonkee@github> nmonkee <[email protected]>
6998
nullbind <nullbind@github> nullbind <[email protected]>
99+
nullbind <nullbind@github> Scott Sutherland <[email protected]>
70100
ohdae <ohdae@github> ohdae <[email protected]>
71-
OJ <oj@github> OJ Reeves <[email protected]>
72-
OJ <oj@github> OJ <[email protected]>
101+
oj <oj@github> OJ <[email protected]>
102+
oj <oj@github> OJ Reeves <[email protected]>
73103
r3dy <r3dy@github> Royce Davis <[email protected]>
74104
r3dy <r3dy@github> Royce Davis <[email protected]>
105+
Rick Flores <[email protected]> Rick Flores (nanotechz9l) <[email protected]>
75106
rsmudge <rsmudge@github> Raphael Mudge <[email protected]> # Aka `butane
76107
schierlm <schierlm@github> Michael Schierl <[email protected]> # Aka mihi
77108
scriptjunkie <scriptjunkie@github> Matt Weeks <[email protected]>
109+
scriptjunkie <scriptjunkie@github> scriptjunkie <[email protected]>
78110
skape <skape@???> Matt Miller <[email protected]>
79111
spoonm <spoonm@github> Spoon M <[email protected]>
80112
swtornio <swtornio@github> Steve Tornio <[email protected]>
113+
Tasos Laskos <[email protected]> Tasos Laskos <[email protected]>
114+
timwr <timwr@github> Tim <[email protected]>
115+
timwr <timwr@github> Tim Wright <[email protected]>
116+
TomSellers <TomSellers@github> Tom Sellers <[email protected]>
117+
TrustedSec <[email protected]> trustedsec <[email protected]>
118+
zeroSteiner <zeroSteiner@github> Spencer McIntyre <[email protected]>
119+
120+
# Aliases for utility author names. Since they're fake, typos abound
121+
122+
Tab Assassin <[email protected]> Tabassassin <[email protected]>
123+
Tab Assassin <[email protected]> TabAssassin <[email protected]>
124+
Tab Assassin <[email protected]> Tabasssassin <[email protected]>
125+
Tab Assassin <[email protected]> URI Assassin <[email protected]>

.rspec

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,3 @@
11
--color
22
--format Fivemat
3+
--require spec_helper

.rubocop.yml

Lines changed: 84 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,84 @@
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.
8+
9+
# inherit_from: .rubocop_todo.yml
10+
11+
Metrics/ClassLength:
12+
Description: 'Most Metasploit modules are quite large. This is ok.'
13+
Enabled: true
14+
Exclude:
15+
- 'modules/**/*'
16+
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+
Metrics/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+
Metrics/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+
42+
# Basically everything in metasploit needs binary encoding, not UTF-8.
43+
# Disable this here and enforce it through msftidy
44+
Style/Encoding:
45+
Enabled: false
46+
47+
# %q() is super useful for long strings split over multiple lines and
48+
# is very common in module constructors for things like descriptions
49+
Style/UnneededPercentQ:
50+
Enabled: false
51+
52+
Style/NumericLiterals:
53+
Enabled: false
54+
Description: 'This often hurts readability for exploit-ish code.'
55+
56+
Style/SpaceInsideBrackets:
57+
Enabled: false
58+
Description: 'Until module template are final, most modules will fail this.'
59+
60+
Style/StringLiterals:
61+
Enabled: false
62+
Description: 'Single vs double quote fights are largely unproductive.'
63+
64+
Style/WordArray:
65+
Enabled: false
66+
Description: 'Metasploit prefers consistent use of []'
67+
68+
Style/RedundantBegin:
69+
Exclude:
70+
# this pattern is very common and somewhat unavoidable
71+
# def run_host(ip)
72+
# begin
73+
# ...
74+
# rescue ...
75+
# ...
76+
# ensure
77+
# disconnect
78+
# end
79+
# end
80+
- 'modules/**/*'
81+
82+
Documentation:
83+
Exclude:
84+
- 'modules/**/*'

.ruby-version

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
1.9.3-p448
1+
2.1.5

.simplecov

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,6 @@ SimpleCov.configure do
3939
# Other library groups
4040
#
4141

42-
add_group 'Fastlib', 'lib/fastlib'
4342
add_group 'Metasm', 'lib/metasm'
4443
add_group 'PacketFu', 'lib/packetfu'
4544
add_group 'Rex', 'lib/rex'

.travis.yml

Lines changed: 30 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,42 @@
1+
bundler_args: --without coverage development pcap
2+
cache: bundler
3+
env:
4+
- RAKE_TASKS="cucumber cucumber:boot"
5+
- RAKE_TASKS=spec SPEC_OPTS="--tag content"
6+
- RAKE_TASKS=spec SPEC_OPTS="--tag ~content"
7+
18
language: ruby
9+
matrix:
10+
fast_finish: true
211
before_install:
3-
- sudo apt-get update -qq
4-
- sudo apt-get install -qq libpcap-dev
12+
- "echo 'gem: --no-ri --no-rdoc' > ~/.gemrc"
13+
- rake --version
14+
# Uncomment when we have fewer shipping msftidy warnings.
15+
# Merge committers will still be checking, just not autofailing.
16+
# - ln -sf ../../tools/dev/pre-commit-hook.rb ./.git/hooks/post-merge
17+
# - ls -la ./.git/hooks
18+
# - ./.git/hooks/post-merge
519
before_script:
620
- cp config/database.yml.travis config/database.yml
7-
- rake db:create
8-
- rake db:migrate
9-
21+
- bundle exec rake --version
22+
- bundle exec rake db:create
23+
- bundle exec rake db:migrate
24+
script:
25+
# fail build if db/schema.rb update is not committed
26+
- git diff --exit-code && bundle exec rake $RAKE_TASKS
27+
sudo: false
1028
rvm:
11-
#- '1.8.7'
1229
- '1.9.3'
30+
- '2.1'
1331

1432
notifications:
1533
irc: "irc.freenode.org#msfnotify"
1634

1735
git:
1836
depth: 5
37+
38+
# Blacklist certain branches from triggering travis builds
39+
branches:
40+
except:
41+
- gh-pages
42+
- metakitty

.yardopts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,5 +3,8 @@
33
--exclude \.ut\.rb/
44
--exclude \.ts\.rb/
55
--files CONTRIBUTING.md,COPYING,HACKING,LICENSE
6+
app/**/*.rb
67
lib/msf/**/*.rb
8+
lib/metasploit/**/*.rb
79
lib/rex/**/*.rb
10+
plugins/**/*.rb

0 commit comments

Comments
 (0)