Skip to content

Commit a65a492

Browse files
committed
Merge branch 'master' into vagrant
2 parents 392d10a + b868f7c commit a65a492

File tree

441 files changed

+3639
-2998
lines changed

Some content is hidden

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

441 files changed

+3639
-2998
lines changed

.gitignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -68,6 +68,8 @@ external/source/exploits/**/Release
6868
# Avoid checking in Meterpreter binaries. These are supplied upstream by
6969
# the metasploit-payloads gem.
7070
data/meterpreter/*.dll
71+
data/meterpreter/*.php
72+
data/meterpreter/*.py
7173
data/meterpreter/*.bin
7274
data/meterpreter/*.jar
7375
data/meterpreter/*.lso

Gemfile.lock

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
PATH
22
remote: .
33
specs:
4-
metasploit-framework (4.11.10)
4+
metasploit-framework (4.11.12)
55
actionpack (>= 4.0.9, < 4.1.0)
66
activerecord (>= 4.0.9, < 4.1.0)
77
activesupport (>= 4.0.9, < 4.1.0)
@@ -13,7 +13,7 @@ PATH
1313
metasploit-concern (= 1.0.0)
1414
metasploit-credential (= 1.0.1)
1515
metasploit-model (= 1.0.0)
16-
metasploit-payloads (= 1.0.23)
16+
metasploit-payloads (= 1.1.0)
1717
metasploit_data_models (= 1.2.10)
1818
msgpack
1919
network_interface (~> 0.0.1)
@@ -124,7 +124,7 @@ GEM
124124
activemodel (>= 4.0.9, < 4.1.0)
125125
activesupport (>= 4.0.9, < 4.1.0)
126126
railties (>= 4.0.9, < 4.1.0)
127-
metasploit-payloads (1.0.23)
127+
metasploit-payloads (1.1.0)
128128
metasploit_data_models (1.2.10)
129129
activerecord (>= 4.0.9, < 4.1.0)
130130
activesupport (>= 4.0.9, < 4.1.0)

config/database.yml.example

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,17 @@
1-
# Please only use postgresql bound to a TCP port.
2-
# Only postgresql is supportable for metasploit-framework
3-
# these days. (No SQLite, no MySQL).
4-
#
51
# To set up a metasploit database, follow the directions hosted at:
62
# http://r-7.co/MSF-DEV#set-up-postgresql
3+
#
4+
# Kali Linux and the Omnibus installers both include an easy wrapper script for
5+
# managing your database, which may be more convenient than rolling your own.
6+
77
development: &pgsql
88
adapter: postgresql
99
database: metasploit_framework_development
1010
username: metasploit_framework_development
1111
password: __________________________________
1212
host: localhost
1313
port: 5432
14-
pool: 5
14+
pool: 200
1515
timeout: 5
1616

1717
# You will often want to seperate your databases between dev

data/wordlists/adobe_top100_pass.txt

Lines changed: 100 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,100 @@
1+
123456
2+
123456789
3+
password
4+
adobe123
5+
12345678
6+
qwerty
7+
1234567
8+
111111
9+
photoshop
10+
123123
11+
1234567890
12+
000000
13+
abc123
14+
1234
15+
adobe1
16+
macromedia
17+
azerty
18+
iloveyou
19+
aaaaaa
20+
654321
21+
12345
22+
666666
23+
sunshine
24+
123321
25+
letmein
26+
monkey
27+
asdfgh
28+
password1
29+
shadow
30+
princess
31+
dragon
32+
adobeadobe
33+
daniel
34+
computer
35+
michael
36+
121212
37+
charlie
38+
master
39+
superman
40+
qwertyuiop
41+
112233
42+
asdfasdf
43+
jessica
44+
1q2w3e4r
45+
welcome
46+
1qaz2wsx
47+
987654321
48+
fdsa
49+
753951
50+
chocolate
51+
fuckyou
52+
soccer
53+
tigger
54+
asdasd
55+
thomas
56+
asdfghjkl
57+
internet
58+
michelle
59+
football
60+
123qwe
61+
zxcvbnm
62+
dreamweaver
63+
7777777
64+
maggie
65+
qazwsx
66+
baseball
67+
jennifer
68+
jordan
69+
abcd1234
70+
trustno1
71+
buster
72+
555555
73+
liverpool
74+
abc
75+
whatever
76+
11111111
77+
102030
78+
123123123
79+
andrea
80+
pepper
81+
nicole
82+
killer
83+
abcdef
84+
hannah
85+
test
86+
alexander
87+
andrew
88+
222222
89+
joshua
90+
freedom
91+
samsung
92+
asdfghj
93+
purple
94+
ginger
95+
123654
96+
matrix
97+
secret
98+
summer
99+
1q2w3e
100+
snoopy1

lib/metasploit/framework/version.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ def self.get_hash
3030
end
3131
end
3232

33-
VERSION = "4.11.10"
33+
VERSION = "4.11.12"
3434
MAJOR, MINOR, PATCH = VERSION.split('.').map { |x| x.to_i }
3535
PRERELEASE = 'dev'
3636
HASH = get_hash

lib/msf/base/serializer/readable_text.rb

Lines changed: 21 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -524,18 +524,18 @@ def self.dump_datastore(name, ds, indent = DefaultIndent, col = DefaultColumnWra
524524
def self.dump_sessions(framework, opts={})
525525
ids = (opts[:session_ids] || framework.sessions.keys).sort
526526
verbose = opts[:verbose] || false
527+
show_extended = opts[:show_extended] || false
527528
indent = opts[:indent] || DefaultIndent
528529
col = opts[:col] || DefaultColumnWrap
529530

530531
return dump_sessions_verbose(framework, opts) if verbose
531532

532-
columns =
533-
[
534-
'Id',
535-
'Type',
536-
'Information',
537-
'Connection'
538-
]
533+
columns = []
534+
columns << 'Id'
535+
columns << 'Type'
536+
columns << 'Checkin?' if show_extended
537+
columns << 'Information'
538+
columns << 'Connection'
539539

540540
tbl = Rex::Ui::Text::Table.new(
541541
'Indent' => indent,
@@ -551,11 +551,22 @@ def self.dump_sessions(framework, opts={})
551551
sinfo = sinfo[0,77] + "..."
552552
end
553553

554-
row = [ session.sid.to_s, session.type.to_s, sinfo, session.tunnel_to_s + " (#{session.session_host})" ]
555-
if session.respond_to? :platform
556-
row[1] << (" " + session.platform)
554+
row = []
555+
row << session.sid.to_s
556+
row << session.type.to_s
557+
row[-1] << (" " + session.platform) if session.respond_to?(:platform)
558+
559+
if show_extended
560+
if session.respond_to?(:last_checkin) && session.last_checkin
561+
row << "#{(Time.now.to_i - session.last_checkin.to_i)}s ago"
562+
else
563+
row << '?'
564+
end
557565
end
558566

567+
row << sinfo
568+
row << session.tunnel_to_s + " (#{session.session_host})"
569+
559570
tbl << row
560571
}
561572

lib/msf/core/auxiliary/redis.rb

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -48,29 +48,29 @@ def report_redis(version)
4848
def redis_command(*commands)
4949
command_string = printable_redis_response(commands.join(' '))
5050
unless (command_response = send_redis_command(*commands))
51-
vprint_error("#{peer} -- no response to '#{command_string}'")
51+
vprint_error("No response to '#{command_string}'")
5252
return
5353
end
5454
if /(?<auth_response>ERR operation not permitted|NOAUTH Authentication required)/i =~ command_response
5555
fail_with(::Msf::Module::Failure::BadConfig, "#{peer} requires authentication but Password unset") unless datastore['Password']
56-
vprint_status("#{peer} -- requires authentication (#{printable_redis_response(auth_response, false)})")
56+
vprint_status("Requires authentication (#{printable_redis_response(auth_response, false)})")
5757
if (auth_response = send_redis_command('AUTH', datastore['Password']))
5858
unless auth_response =~ /\+OK/
59-
vprint_error("#{peer} -- authentication failure: #{printable_redis_response(auth_response)}")
59+
vprint_error("Authentication failure: #{printable_redis_response(auth_response)}")
6060
return
6161
end
62-
vprint_status("#{peer} -- authenticated")
62+
vprint_status("Authenticated")
6363
unless (command_response = send_redis_command(*commands))
64-
vprint_error("#{peer} -- no response to '#{command_string}'")
64+
vprint_error("No response to '#{command_string}'")
6565
return
6666
end
6767
else
68-
vprint_status("#{peer} -- authentication failed; no response")
68+
vprint_status("Authentication failed; no response")
6969
return
7070
end
7171
end
7272

73-
vprint_status("#{peer} -- redis command '#{command_string}' got '#{printable_redis_response(command_response)}'")
73+
vprint_status("Redis command '#{command_string}' got '#{printable_redis_response(command_response)}'")
7474
command_response
7575
end
7676

lib/msf/core/auxiliary/scanner.rb

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,11 @@ def check
4242
end
4343

4444

45+
def peer
46+
# IPv4 addr can be 16 chars + 1 for : and + 5 for port
47+
super.ljust(21)
48+
end
49+
4550
#
4651
# The command handler when launched from the console
4752
#

lib/msf/core/db_manager/import.rb

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,8 @@ module Msf::DBManager::Import
1616
autoload :Acunetix, 'msf/core/db_manager/import/acunetix'
1717
autoload :Amap, 'msf/core/db_manager/import/amap'
1818
autoload :Appscan, 'msf/core/db_manager/import/appscan'
19-
autoload :Burp, 'msf/core/db_manager/import/burp'
19+
autoload :BurpIssue, 'msf/core/db_manager/import/burp_issue'
20+
autoload :BurpSession, 'msf/core/db_manager/import/burp_session'
2021
autoload :CI, 'msf/core/db_manager/import/ci'
2122
autoload :Foundstone, 'msf/core/db_manager/import/foundstone'
2223
autoload :FusionVM, 'msf/core/db_manager/import/fusion_vm'
@@ -41,7 +42,8 @@ module Msf::DBManager::Import
4142
include Msf::DBManager::Import::Acunetix
4243
include Msf::DBManager::Import::Amap
4344
include Msf::DBManager::Import::Appscan
44-
include Msf::DBManager::Import::Burp
45+
include Msf::DBManager::Import::BurpIssue
46+
include Msf::DBManager::Import::BurpSession
4547
include Msf::DBManager::Import::CI
4648
include Msf::DBManager::Import::Foundstone
4749
include Msf::DBManager::Import::FusionVM
@@ -267,6 +269,9 @@ def import_filetype_detect(data)
267269
elsif (data[0,1024] =~ /<!ATTLIST\s+items\s+burpVersion/)
268270
@import_filedata[:type] = "Burp Session XML"
269271
return :burp_session_xml
272+
elsif (data[0,1024] =~ /<!ATTLIST\s+issues\s+burpVersion/)
273+
@import_filedata[:type] = "Burp Issue XML"
274+
return :burp_issue_xml
270275
elsif (firstline.index("<?xml"))
271276
# it's xml, check for root tags we can handle
272277
line_count = 0
Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
require 'rex/parser/burp_issue_nokogiri'
2+
3+
module Msf::DBManager::Import::BurpIssue
4+
def import_burp_issue_xml(args={}, &block)
5+
bl = validate_ips(args[:blacklist]) ? args[:blacklist].split : []
6+
wspace = args[:wspace] || workspace
7+
parser = "Nokogiri v#{::Nokogiri::VERSION}"
8+
noko_args = args.dup
9+
noko_args[:blacklist] = bl
10+
noko_args[:wspace] = wspace
11+
if block
12+
yield(:parser, parser)
13+
doc = Rex::Parser::BurpIssueDocument.new(args,framework.db) {|type, data| yield type,data }
14+
else
15+
doc = Rex::Parser::BurpIssueDocument.new(args,self)
16+
end
17+
parser = ::Nokogiri::XML::SAX::Parser.new(doc)
18+
parser.parse(args[:data])
19+
end
20+
end

0 commit comments

Comments
 (0)