Meatballs
3b651aecdc
Specs for sqlserver check and fixes
2015-03-28 22:59:00 +00:00
sinn3r
9cfafdd8b8
Land #4649 , improve post/windows/manage/run_as and as an exploit
2015-03-27 17:31:30 -05:00
Trevor Rosen
2815462375
Update Mdm to staging hash
2015-03-27 15:16:33 -05:00
jvazquez-r7
d84c48cb7d
Use newer hash syntax
2015-03-25 13:39:34 -05:00
jvazquez-r7
72a0909e9b
Land #4992 , @wchen-r7's support for multiple ActiveX controls on BrowserExploitServerMerge
2015-03-25 13:30:36 -05:00
James Lee
95d70e7211
Remove respond_to check for protected method
...
Fails on Ruby 2.x, and doesn't really gain us anything anyway.
2015-03-25 12:50:46 -05:00
James Lee
8f0c434faa
Add specs for the new method
2015-03-25 12:34:10 -05:00
jvazquez-r7
0540e25db2
Calculate the java/rmi/registry/RegistryImpl_Stub hash dinamically
2015-03-25 11:29:07 -05:00
jvazquez-r7
a5c39db6c3
Use mocks like a boss...
2015-03-24 19:30:59 -05:00
jvazquez-r7
0b671d5210
Add specs for Msf::Java::Rmi::Client::Jmx::Connection
2015-03-24 19:15:25 -05:00
jvazquez-r7
356e8c727c
Add specs for Msf::Java::Rmi::Client::Jmx::Server
2015-03-24 18:56:58 -05:00
jvazquez-r7
464a6df5e0
Add specs for Msf::Java::Rmi::Client::Registry
2015-03-24 18:42:35 -05:00
jvazquez-r7
0fe98bc023
Delete old JMX mixin specs
2015-03-24 17:30:37 -05:00
jvazquez-r7
e20398a70a
Add specs for Msf::Java::Rmi::Client::Jmx::Server::Parser
2015-03-24 17:30:06 -05:00
jvazquez-r7
0a352fc7d4
Finish specs for Msf::Java::Rmi::Client::Jmx::Connection::Builder
2015-03-24 17:06:05 -05:00
jvazquez-r7
115c4e5a06
Add first specs for Msf::Java::Rmi::Client::Jmx::Connection::Builder
2015-03-24 16:37:05 -05:00
jvazquez-r7
82d545850e
Add specs for Msf::Java::Rmi::Client::Jmx::Server::Builder
2015-03-24 16:04:18 -05:00
jvazquez-r7
87cac6fd55
Complete specs for Msf::Java::Rmi::Util
2015-03-24 15:41:32 -05:00
jvazquez-r7
48026da35f
Fix RMI specs
2015-03-24 15:14:36 -05:00
Christian Mehlmauer
7bf00f8f47
Land #4789 , @rastating WPLMS wordpress module
2015-03-24 20:46:38 +01:00
sinn3r
3c4da5c3ff
Update BES rspec
2015-03-24 00:10:18 -05:00
HD Moore
c7da9d6f79
Move file: prefix checks out of option class specs (would need to go into console test specs at some point)
2015-03-23 15:09:22 -05:00
jvazquez-r7
79068c8ec2
Delete JMX discovery stream
2015-03-23 10:21:37 -05:00
sinn3r
01caf161f8
Fix syntax error in db_spec.rb
2015-03-23 01:35:26 -05:00
sinn3r
2e75d14d56
Update rspec
2015-03-23 00:53:55 -05:00
jvazquez-r7
da51d2be67
Really add specs for Msf::Java::Rmi::Client::Registry::Parser
2015-03-19 19:07:42 -05:00
jvazquez-r7
6eecbc3de1
Add specs for Msf::Java::Rmi::Client::Registry::Builder
2015-03-19 18:24:31 -05:00
sinn3r
6c84081552
Update db_spec.rb
2015-03-19 18:12:37 -05:00
Meatballs
a5d589ef55
Railgun calls should return a hash
2015-03-19 00:05:02 +00:00
Meatballs
975ddc9092
Add some spec mockery
2015-03-18 23:43:46 +00:00
jvazquez-r7
8113ed2e1f
Move specs
2015-03-18 09:29:37 -05:00
jvazquez-r7
2d8782d711
Fix RMI specs
2015-03-17 11:48:38 -05:00
jvazquez-r7
ebe7ad07b0
Add specs, plus modify java_rmi_server modules
2015-03-17 11:26:27 -05:00
HD Moore
966848127a
Refactor x86 Windows reverse_http and reverse_https stagers
2015-03-10 12:48:30 -05:00
James Lee
838746b021
Add user_data_is_match? method
2015-03-09 15:35:53 -05:00
jvazquez-r7
38f8fe382c
Update specs
2015-03-05 12:24:41 -06:00
jvazquez-r7
a57aefb721
Add specs for QUERY information level
2015-03-03 15:24:13 -06:00
jvazquez-r7
96c0f1847b
Fix examples descriptions
2015-03-03 14:48:18 -06:00
jvazquez-r7
7f7b17c04e
Really add specs
2015-03-03 14:14:03 -06:00
jvazquez-r7
df7c07bfd1
Really add the specs
2015-03-03 13:19:50 -06:00
jvazquez-r7
a2a24c56d6
Add specs for QueryFileInformation
2015-03-03 13:04:30 -06:00
jvazquez-r7
1322cb0d3f
Clean find_first2 specs
2015-03-03 12:46:25 -06:00
jvazquez-r7
8328c5c5e9
Add specs for SMB_FIND_FILE_BOTH_DIRECTORY_INFO requests
2015-03-03 12:43:41 -06:00
jvazquez-r7
597f99ade9
Finish TRANS2 specs
2015-03-03 11:46:13 -06:00
jvazquez-r7
a204b550d2
Add specs for TRANSACTION2 helper methods
2015-03-03 10:55:55 -06:00
jvazquez-r7
bece2e7088
Really add the specs
2015-03-03 10:32:35 -06:00
jvazquez-r7
4bbc0b5b0b
Fix valid_request on negotiate_spec
2015-03-02 17:39:39 -06:00
jvazquez-r7
a92dc7e73d
Fix nt_create_andx specs
2015-03-02 17:38:24 -06:00
jvazquez-r7
4fc08d7243
Add specs for Msf::Exploit::Remote::SMB::Server::Share::Command::ReadAndX
2015-03-02 17:32:03 -06:00
jvazquez-r7
b5e5d390ac
Add specs for Msf::Exploit::Remote::SMB::Server::Share::Command::NtCreateAndx
2015-03-02 16:55:36 -06:00
jvazquez-r7
584e5f7d8b
Add specs for Exploit::Remote::SMB::Server::Share::Command::Negotiate
2015-03-02 16:29:33 -06:00
jvazquez-r7
50f5baa7c6
Add specs for Msf::Exploit::Remote::SMB::Server::Share::Command::Close
2015-03-02 16:00:02 -06:00
rastating
00c4d704f2
Update rspec to include new functionality
...
Added a new test for testing when all versions of a plugin are
vulnerable and added tests for checking theme versions from the
style.css file
2015-02-26 21:18:51 +00:00
William Vu
f61fb0555d
Add case-insensitive test of delete
2015-02-25 10:47:36 -06:00
William Vu
36e40f02c9
Fix delete in datastore spec
...
I was tired and accidentally a should. :(
2015-02-25 10:47:32 -06:00
William Vu
2a66a6ae88
Add delete to datastore spec
2015-02-24 20:57:38 -06:00
sinn3r
1835120851
Update rspec for get_payload in BES
2015-02-19 02:45:54 -06:00
Meatballs
33560a2657
Refactor Msf::Exploit::Powershell to Rex::Powershell to allow for
...
msfvenom usage.
2015-02-10 20:53:46 +00:00
jvazquez-r7
b8f614ef59
Fix namespaces in specs
2015-02-10 12:00:04 -06:00
jvazquez-r7
8222dc9302
Reorganize specs
2015-02-10 11:57:09 -06:00
jvazquez-r7
1f4fdb5d18
Update from master
2015-02-10 10:47:17 -06:00
James Lee
9f4daa4e03
Add a couple more specs
2015-01-27 14:09:00 -06:00
James Lee
a2c7ebc2b1
Simplify logic
2015-01-27 09:05:11 -06:00
James Lee
5985f37fe8
Only need one origin
2015-01-27 09:02:30 -06:00
James Lee
ca44ae2109
Consistent commas
2015-01-27 08:41:24 -06:00
James Lee
eac7b11a87
Merge remote-tracking branch 'upstream/master' into bug/4634/blank-username
...
Conflicts:
lib/msf/ui/console/command_dispatcher/db.rb
spec/lib/msf/ui/console/command_dispatcher/db_spec.rb
2015-01-27 08:40:07 -06:00
James Lee
aea26e1e21
Add negative spec
2015-01-27 08:14:48 -06:00
James Lee
964d37dbc5
Add a simple spec for -u
...
Need lots more
2015-01-26 20:37:17 -06:00
Tod Beardsley
63c3832d7d
Also test for nonmatching passwords
2015-01-26 17:02:58 -06:00
Tod Beardsley
1410477fe9
Use the blank password/username variables
2015-01-26 17:00:45 -06:00
Tod Beardsley
2294ea0e93
Squash commit for blank creds search and test
...
This should fix up #4642 with respect to #4504 .
Squashed commit of the following:
commit 124d53ccb00cd200bede092e893dda7e033d3e17
Merge: cb2bef8
ccad159
Author: Tod Beardsley <tod_beardsley@rapid7.com>
Date: Mon Jan 26 16:23:03 2015 -0600
Merge branch 'feature/creds-blank-finders' into temp
commit ccad159222eaa949d76e22b588d1ac7709fb2f27
Author: Tod Beardsley <tod_beardsley@rapid7.com>
Date: Mon Jan 26 15:58:02 2015 -0600
Clean out whitespace, make vars more meaningful
commit 266b45dff26e2778e43d8e4750d212b5aee5a009
Author: Tod Beardsley <tod_beardsley@rapid7.com>
Date: Mon Jan 26 15:54:32 2015 -0600
Add some specs for regular users and blank users
commit 2e51503f76e9a2f6921c57e86a2f98527f80c874
Author: Tod Beardsley <tod_beardsley@rapid7.com>
Date: Mon Jan 26 15:04:03 2015 -0600
Users should be able to find blank user/pass
2015-01-26 16:26:30 -06:00
Jon Hart
cb2bef878b
Land #4504 , @disenchant's get/getg improvement
2015-01-26 12:49:34 -08:00
jvazquez-r7
c33e5faed3
Change namespace
2015-01-21 01:00:45 -06:00
jvazquez-r7
f85890a249
Change specs filename
2015-01-21 00:58:32 -06:00
jvazquez-r7
81d0eca45b
Fix Msf::Jmx::Handshake specs
2015-01-21 00:57:50 -06:00
jvazquez-r7
2ef57d6172
Add specs for Msf::Jmx::MBean::ServerConnection
2015-01-20 19:10:21 -06:00
jvazquez-r7
7e2f9b32b3
Add specs for Msf::Jmx::MBean::ServerConnection#create_mbean_stream
2015-01-20 18:59:25 -06:00
jvazquez-r7
b97c0fe398
Add Msf::Jmx::Util#extract_unicast_ref
2015-01-20 17:46:42 -06:00
jvazquez-r7
7b675adf01
Add specs for Msf::Jmx::Handshake
2015-01-20 17:29:48 -06:00
jvazquez-r7
f3fa4562bd
Add specs for Msf::Jmx::Discovery
2015-01-20 16:49:02 -06:00
jvazquez-r7
39e3f9f892
Add specs for Msf::Jmx::Util
2015-01-20 16:18:53 -06:00
Jon Hart
b2e9e43f3d
Add unit tests for RPC's getg
2015-01-16 10:39:05 -08:00
Jon Hart
e7566944df
Simplify get/getg rspec
2015-01-16 09:48:24 -08:00
Jon Hart
c6121f0a37
Add rspec coverage for getg (and set/setg, in a way)
2015-01-16 08:43:14 -08:00
Jon Hart
7f90b68cce
Add rspec coverage for get (and set/setg, in a way)
2015-01-16 08:28:32 -08:00
Jon Hart
da1c56a65d
Add minimal tests for get/getg
2015-01-15 14:46:12 -08:00
Jon Hart
ba2c33132b
Put Msf::Ui::Console::CommandDispatcher specs in the right location
2015-01-15 14:06:29 -08:00
jvazquez-r7
621cada2ac
Undo build_gc_call_data refactoring
2015-01-14 16:47:28 -06:00
jvazquez-r7
36b2771564
Add spec for send_dgc_ack
2015-01-13 11:06:08 -06:00
jvazquez-r7
ad082bc1af
Add specs for build_dgc_ack
2015-01-13 11:02:16 -06:00
jvazquez-r7
ebac17893c
Use a new class name
2015-01-08 17:41:29 -06:00
jvazquez-r7
97a23788b6
Add unused args to get_once on specs
2015-01-08 17:22:21 -06:00
Jon Hart
75726f1e74
Update spec to cover #4559
2015-01-08 15:15:01 -08:00
jvazquez-r7
5dfc0f1665
Fix Client mixin specs
2015-01-08 16:48:11 -06:00
jvazquez-r7
db4d24cb2c
Add spec for build_gc_call_data
2015-01-08 14:24:07 -06:00
jvazquez-r7
549e42279c
Create specs for Streams
2015-01-08 14:17:57 -06:00
jvazquez-r7
9a42d42318
Add specs for Msf::Rmi::Client
2015-01-08 11:57:38 -06:00
Christian Mehlmauer
056046f38b
update wordpress readme regex
2015-01-01 23:13:20 +01:00
sinn3r
555713b6ae
Land #4456 - MS14-068, Kerberos Checksum (plus krb protocol support)
2014-12-29 16:09:28 -06:00
jvazquez-r7
fb83bf6092
Fix specs
2014-12-22 17:55:39 -06:00
jvazquez-r7
f3b263f57d
Use more crypto constants
2014-12-22 12:13:23 -06:00
jvazquez-r7
ff208002d7
Reorganize the Crypto mixin
2014-12-22 11:57:35 -06:00
jvazquez-r7
277ec92358
Really Add specs for Msf::Kerberos::Client::TgsRequest
2014-12-22 11:28:47 -06:00
jvazquez-r7
a0c7f779e9
Change spec filename
2014-12-22 09:36:51 -06:00
jvazquez-r7
8c62822ab9
Add specs for Msf::Client::Kerberos::AsRequest
2014-12-22 09:34:21 -06:00
jvazquez-r7
1f3eded4a8
Add specs for Msf::Kerberos::Client::CacheCredential
2014-12-21 23:47:40 -06:00
jvazquez-r7
60d4525632
Add specs for Msf::Kerberos::Client::Pac
2014-12-21 17:49:36 -06:00
jvazquez-r7
e4455800e1
Add specs for Msf::Kerberos::Client::Base
2014-12-21 16:46:26 -06:00
jvazquez-r7
e219b0b249
Add specs for Msf::Kerberos::Client::AsResponse
2014-12-21 01:12:00 -06:00
jvazquez-r7
d7b6407720
Add specs for AsResponse#extract_session_key
2014-12-21 00:53:20 -06:00
jvazquez-r7
2d9ed9eb4c
Add specs for TgsResponse
2014-12-21 00:39:59 -06:00
jvazquez-r7
6acd0703d7
Add specs for Msf::Kerberos::Client::TgsResponse
2014-12-21 00:16:38 -06:00
Tod Beardsley
d3050de862
Remove references to Redmine in code
...
See #4400 . This should be all of them, except for, of course, the module
that targets Redmine itself.
Note that this also updates the README.md with more current information
as well.
2014-12-19 17:27:08 -06:00
Tod Beardsley
270debea32
Remove the EXE file test spec
...
This thing has been a problem since forever, given cross-platform
issues and random collisions with other file magic signatures.
See #3807 and #2793 and the even earlier redmine bug.
This should not close the bug, since we're merely avoiding the random
fails by not testing at all. We /should/ test, but in the meantime, we
can't suffer these failures that throw me (at least) into a panic every
time.
2014-12-18 09:18:24 -06:00
sinn3r
513fd122b8
Update rpsec
2014-12-16 00:26:53 -06:00
Samuel Huckins
4c994d84e0
Updating version to 4.11 for Flood release
2014-12-15 14:42:09 -06:00
HD Moore
f676b72767
Add Kademlia scanner, lands #4210
2014-12-12 16:40:58 -06:00
sinn3r
bac677ec5e
Fix rspec
2014-12-09 19:47:29 -06:00
jvazquez-r7
21742b6469
Test #3729
2014-12-06 21:20:52 -06:00
Trevor Rosen
2a033861dc
Just use constants directly
...
MSP-11673
2014-12-02 13:12:53 -06:00
Trevor Rosen
784e138b14
Extend replicants via arbitrary Ruby code
...
MSP-11673
* Implements a #register_extensions method on Msf::Module
* Any registered Ruby modules will extend the cloned module returned by #replicant
2014-12-02 12:18:30 -06:00
William Vu
bd3d63a155
Land #4270 , Msf::Author cleanup and improvements
2014-12-02 01:26:42 -06:00
Meatballs
3e0f909707
Remove debug file writes
2014-11-27 21:34:00 +00:00
Meatballs
94fa6a309c
Fix strip_whitespace speccing
2014-11-27 21:30:08 +00:00
Joe Vennix
99b87c2e97
Fix nonsensical spec.
2014-11-26 13:57:44 -06:00
Joe Vennix
2bd7a67413
Restructure parts of Author, fix some doc bugs.
2014-11-26 13:54:23 -06:00
Trevor Rosen
31184c67b4
Land #4223 , specs for DB console command output
...
Wrap specs around current behavior of the DB command dispatcher,
in order to make upcoming refactor painless.
MSP-11622 #land
2014-11-25 13:30:08 -06:00
Jon Hart
0ed356f71c
Move Kademlia stuff to a more OO model, etc, per reviews
...
All of the work is done in rex. The msf mixin just prevents the
desire to call rex directly from the module
2014-11-24 14:03:43 -08:00
Jon Hart
e255db9429
Partial commit
2014-11-20 13:49:36 -08:00
Luke Imhoff
a2085199f5
Spec methods Msf::Ui::Console::CommandDispatcher::Db responds to
...
MSP-11622
2014-11-17 13:22:13 -06:00
Luke Imhoff
47f7119f58
Order spec
...
MSP-11622
Sort specs by describe/context name so it is easier to see if a method
has no specs.
2014-11-17 12:58:04 -06:00
Trevor Rosen
3b558624f3
Merge branch 'landing/4129' into upstream-master
...
Landing #4129
* Detect leaked constants in spec runs
2014-11-14 12:55:56 -06:00
Luke Imhoff
43511e648a
Merge branch 'chore/MSP-11614/remove-msf-db-manager-sink' into feature/MSP-11605/lazy-thread-creation
...
MSP-11605
Conflicts:
spec/lib/msf/core/task_manager_spec.rb
2014-11-14 11:59:12 -06:00
Luke Imhoff
14fa1dba0b
Merge branch 'master' into feature/MSP-11605/lazy-thread-creation
...
MSP-11605
2014-11-14 11:58:16 -06:00
Luke Imhoff
5e6400a506
Remove Msf::TaskManager
...
MSP-11614
`Msf::TaskManager` was only used for `Msf::DBManager#sink`, which was
removed because it was unused, so `Msf::TaskManager` can also be
removed.
2014-11-14 11:15:05 -06:00
Luke Imhoff
55a8f6f339
Remove Msf::DBManager::Sink
...
MSP-11614
`Msf::DBManager::Sink` contains code for a `sink` that is a meant to
serialize database events, but it's unneeded because all database events
go directly through ActiveRecord, which handles threading.
2014-11-14 10:51:51 -06:00
Luke Imhoff
0c6b820f7d
Remove unnecessary thread cleaning from Msf::Framework spec
...
MSP-11605
2014-11-14 09:11:35 -06:00
David Maloney
ccc5bbd745
this spec needs to use the username factory
...
:metasploit-credential_public factory will randomly
return either a Username or BlankUsername and thus is
not appropriate for when you want tos et an explicit Username.
The :metasploit_credential_username factory should be used for this
instead
MSP-11609
2014-11-13 10:58:03 -06:00
Luke Imhoff
cca82f4b36
Failing spec for Msf::Framework.new threads
...
MSP-11605
`Msf::Framework.new` creates 8 threads (change from 1 thread to 9 threads), but
it shouldn't create any threads.
2014-11-12 13:41:30 -06:00
Luke Imhoff
69043d51e0
Merge branch 'master' into feature/MSP-11147/thread-leak-detection
...
MSP-11147
2014-11-12 12:34:25 -06:00
Luke Imhoff
3ff87c89fe
Clean up Msf::Framework spec thread-leaks
...
MSP-11147
2014-11-12 12:20:23 -06:00
Luke Imhoff
22cbc5ca02
Use named subject instead of subject
...
MSP-11147
2014-11-12 12:18:08 -06:00
Luke Imhoff
1fd8fe57df
Merge staging/great-backport to master
...
Conflicts:
spec/lib/msf/core/module_spec.rb
2014-11-12 11:08:18 -06:00
Luke Imhoff
cf0ecd0367
Fix thread leaks in TaskManager spec
...
MSP-11147
2014-11-11 12:02:14 -06:00
Luke Imhoff
b0f1b2a1f7
Merge branch 'master' into feature/MSP-11130/metasploit-framework-spec-constants
...
MSP-11130
Conflicts:
Rakefile
2014-11-04 10:10:12 -06:00
Luke Imhoff
0c769e2fd7
Fix constant leaks in Msf::Util::EXE spec
...
MSP-11130
Remove global $framework as it loads modules prior to suite run and they
are not cleaned up.
2014-11-04 09:48:55 -06:00
Luke Imhoff
78ea93044b
Fix Msf::PayloadGenerator spec constant leaks
...
MSP-11130
Remove the constant PAYLOAD_FRAMEWORK as it leads to a
Msf::Simple::Framework instance that is not cleaned up and loads modules
prior to the beginning of the suite run.
2014-11-04 09:48:02 -06:00
Luke Imhoff
9ea1240cbb
Default modules_path
...
MSP-11130
Default `:modules_path` to use the `#modules_path` left for
'Msf::Simple::Framework#modules#loading''s `#load_and_create_module`.
2014-11-03 11:06:49 -06:00
Luke Imhoff
f0001eb9e6
Extract 'Msf::Simple::Framework#modules loading'
...
MSP-11130
'Msf::Simple::Framework#modules loading' defines
`#load_and_create_module`, which takes the :ancestor_reference_names,
:modules_path, :module_type, and :reference_name of the module whose
ancestors to load and the reference name to create. A default modules
path, the first 'modules' path for the Rails application is available in
in the `#modules_path` let.
2014-11-03 08:59:06 -06:00
Luke Imhoff
8b4767449f
Fix constant leaks in Msf::EncodedPayload spec
...
MSP-11130
Switch to using 'Msf::Simple::Framework' shared context and explicit
module loading instead of loading all moduels to just test with one.
2014-10-30 14:56:47 -05:00