Browse Source

decribe -> RSpec.describe

MSP-13484

Disabled expose_dsl_globally in spec_helper, so need to qualify
top-level describe.
Luke Imhoff 3 years ago
parent
commit
d6bf0fd781
100 changed files with 99 additions and 100 deletions
  1. 1
    1
      spec/lib/active_record/connection_adapters/abstract_adapter/connection_pool_spec.rb
  2. 1
    1
      spec/lib/metasploit/framework/credential_collection_spec.rb
  3. 1
    1
      spec/lib/metasploit/framework/credential_spec.rb
  4. 1
    1
      spec/lib/metasploit/framework/jtr/cracker_spec.rb
  5. 1
    1
      spec/lib/metasploit/framework/jtr/invalid_wordlist_spec.rb
  6. 1
    1
      spec/lib/metasploit/framework/jtr/wordlist_spec.rb
  7. 1
    1
      spec/lib/metasploit/framework/login_scanner/afp_spec.rb
  8. 1
    1
      spec/lib/metasploit/framework/login_scanner/axis2_spec.rb
  9. 1
    1
      spec/lib/metasploit/framework/login_scanner/base_spec.rb
  10. 1
    1
      spec/lib/metasploit/framework/login_scanner/buffalo_spec.rb
  11. 1
    1
      spec/lib/metasploit/framework/login_scanner/chef_webui_spec.rb
  12. 1
    1
      spec/lib/metasploit/framework/login_scanner/db2_spec.rb
  13. 1
    1
      spec/lib/metasploit/framework/login_scanner/ftp_spec.rb
  14. 1
    1
      spec/lib/metasploit/framework/login_scanner/gitlab_spec.rb
  15. 1
    1
      spec/lib/metasploit/framework/login_scanner/glassfish_spec.rb
  16. 1
    1
      spec/lib/metasploit/framework/login_scanner/http_spec.rb
  17. 1
    1
      spec/lib/metasploit/framework/login_scanner/invalid_spec.rb
  18. 1
    1
      spec/lib/metasploit/framework/login_scanner/ipboard_spec.rb
  19. 1
    1
      spec/lib/metasploit/framework/login_scanner/jenkins_spec.rb
  20. 1
    1
      spec/lib/metasploit/framework/login_scanner/manageengine_desktop_central_spec.rb
  21. 1
    1
      spec/lib/metasploit/framework/login_scanner/mssql_spec.rb
  22. 1
    1
      spec/lib/metasploit/framework/login_scanner/mybook_live_spec.rb
  23. 1
    1
      spec/lib/metasploit/framework/login_scanner/mysql_spec.rb
  24. 1
    1
      spec/lib/metasploit/framework/login_scanner/nessus_spec.rb
  25. 1
    1
      spec/lib/metasploit/framework/login_scanner/pop3_spec.rb
  26. 1
    1
      spec/lib/metasploit/framework/login_scanner/postgres_spec.rb
  27. 1
    1
      spec/lib/metasploit/framework/login_scanner/result_spec.rb
  28. 1
    1
      spec/lib/metasploit/framework/login_scanner/smb_spec.rb
  29. 1
    1
      spec/lib/metasploit/framework/login_scanner/smh_spec.rb
  30. 1
    1
      spec/lib/metasploit/framework/login_scanner/snmp_spec.rb
  31. 1
    1
      spec/lib/metasploit/framework/login_scanner/ssh_spec.rb
  32. 1
    1
      spec/lib/metasploit/framework/login_scanner/symantec_web_gateway_spec.rb
  33. 1
    1
      spec/lib/metasploit/framework/login_scanner/telnet_spec.rb
  34. 1
    1
      spec/lib/metasploit/framework/login_scanner/tomcat_spec.rb
  35. 1
    1
      spec/lib/metasploit/framework/login_scanner/vmauthd_spec.rb
  36. 1
    1
      spec/lib/metasploit/framework/login_scanner/vnc_spec.rb
  37. 1
    1
      spec/lib/metasploit/framework/login_scanner/winrm_spec.rb
  38. 1
    1
      spec/lib/metasploit/framework/login_scanner/wordpress_rpc_spec.rb
  39. 1
    1
      spec/lib/metasploit/framework/login_scanner/zabbix_spec.rb
  40. 1
    1
      spec/lib/metasploit/framework/login_scanner_spec.rb
  41. 1
    1
      spec/lib/msf/base/sessions/meterpreter_spec.rb
  42. 1
    1
      spec/lib/msf/base/simple/framework_spec.rb
  43. 1
    1
      spec/lib/msf/core/author_spec.rb
  44. 1
    1
      spec/lib/msf/core/auxiliary/drdos_spec.rb
  45. 1
    1
      spec/lib/msf/core/auxiliary/kademlia_spec.rb
  46. 1
    1
      spec/lib/msf/core/data_store_spec.rb
  47. 1
    1
      spec/lib/msf/core/encoded_payload_spec.rb
  48. 1
    1
      spec/lib/msf/core/exe/segment_appender_spec.rb
  49. 1
    1
      spec/lib/msf/core/exe/segment_injector_spec.rb
  50. 1
    1
      spec/lib/msf/core/exploit/browser_autopwn2_spec.rb
  51. 1
    1
      spec/lib/msf/core/exploit/capture_spec.rb
  52. 1
    1
      spec/lib/msf/core/exploit/cmdstager_spec.rb
  53. 1
    1
      spec/lib/msf/core/exploit/http/client_spec.rb
  54. 1
    1
      spec/lib/msf/core/exploit/http/jboss/base_spec.rb
  55. 1
    1
      spec/lib/msf/core/exploit/http/jboss/bean_shell_scripts_spec.rb
  56. 1
    1
      spec/lib/msf/core/exploit/http/jboss/bean_shell_spec.rb
  57. 1
    1
      spec/lib/msf/core/exploit/http/jboss/deployment_file_repository_scripts_spec.rb
  58. 1
    2
      spec/lib/msf/core/exploit/http/jboss/deployment_file_repository_spec.rb
  59. 1
    1
      spec/lib/msf/core/exploit/http/server_spec.rb
  60. 1
    1
      spec/lib/msf/core/exploit/http/typo3_spec.rb
  61. 1
    1
      spec/lib/msf/core/exploit/http/wordpress/base_spec.rb
  62. 1
    1
      spec/lib/msf/core/exploit/http/wordpress/login_spec.rb
  63. 1
    1
      spec/lib/msf/core/exploit/http/wordpress/version_spec.rb
  64. 1
    1
      spec/lib/msf/core/exploit/kerberos/client/as_request_spec.rb
  65. 1
    1
      spec/lib/msf/core/exploit/kerberos/client/as_response_spec.rb
  66. 1
    1
      spec/lib/msf/core/exploit/kerberos/client/base_spec.rb
  67. 1
    1
      spec/lib/msf/core/exploit/kerberos/client/cache_credential_spec.rb
  68. 1
    1
      spec/lib/msf/core/exploit/kerberos/client/pac_spec.rb
  69. 1
    1
      spec/lib/msf/core/exploit/kerberos/client/tgs_request_spec.rb
  70. 1
    1
      spec/lib/msf/core/exploit/kerberos/client/tgs_response_spec.rb
  71. 1
    1
      spec/lib/msf/core/exploit/powershell_spec.rb
  72. 1
    1
      spec/lib/msf/core/exploit/remote/browser_exploit_server_spec.rb
  73. 1
    1
      spec/lib/msf/core/exploit/remote/browser_profile_manager_spec.rb
  74. 1
    1
      spec/lib/msf/core/exploit/remote/firefox_addon_generator_spec.rb
  75. 1
    1
      spec/lib/msf/core/exploit/remote/firefox_privilege_escalation_spec.rb
  76. 1
    1
      spec/lib/msf/core/exploit/remote/java/rmi/builder_spec.rb
  77. 1
    1
      spec/lib/msf/core/exploit/remote/java/rmi/client/jmx/connection/builder_spec.rb
  78. 1
    1
      spec/lib/msf/core/exploit/remote/java/rmi/client/jmx/connection_spec.rb
  79. 1
    1
      spec/lib/msf/core/exploit/remote/java/rmi/client/jmx/server/builder_spec.rb
  80. 1
    1
      spec/lib/msf/core/exploit/remote/java/rmi/client/jmx/server/parser_spec.rb
  81. 1
    1
      spec/lib/msf/core/exploit/remote/java/rmi/client/jmx/server_spec.rb
  82. 1
    1
      spec/lib/msf/core/exploit/remote/java/rmi/client/registry/builder_spec.rb
  83. 1
    1
      spec/lib/msf/core/exploit/remote/java/rmi/client/registry/parser_spec.rb
  84. 1
    1
      spec/lib/msf/core/exploit/remote/java/rmi/client/registry_spec.rb
  85. 1
    1
      spec/lib/msf/core/exploit/remote/java/rmi/client_spec.rb
  86. 1
    1
      spec/lib/msf/core/exploit/remote/java/rmi/util_spec.rb
  87. 1
    1
      spec/lib/msf/core/exploit/smb/server/share/command/close_spec.rb
  88. 1
    1
      spec/lib/msf/core/exploit/smb/server/share/command/negotiate_spec.rb
  89. 1
    1
      spec/lib/msf/core/exploit/smb/server/share/command/nt_create_andx_spec.rb
  90. 1
    1
      spec/lib/msf/core/exploit/smb/server/share/command/read_andx_spec.rb
  91. 1
    1
      spec/lib/msf/core/exploit/smb/server/share/command/session_setup_andx_spec.rb
  92. 1
    1
      spec/lib/msf/core/exploit/smb/server/share/command/trans2/find_first2_spec.rb
  93. 1
    1
      spec/lib/msf/core/exploit/smb/server/share/command/trans2/query_file_information_spec.rb
  94. 1
    1
      spec/lib/msf/core/exploit/smb/server/share/command/trans2/query_path_information_spec.rb
  95. 1
    1
      spec/lib/msf/core/exploit/smb/server/share/command/trans2_spec.rb
  96. 1
    1
      spec/lib/msf/core/exploit/smb/server/share/information_level/find_spec.rb
  97. 1
    1
      spec/lib/msf/core/exploit/smb/server/share/information_level/query_spec.rb
  98. 1
    1
      spec/lib/msf/core/framework_spec.rb
  99. 1
    1
      spec/lib/msf/core/module/failure_spec.rb
  100. 0
    0
      spec/lib/msf/core/module_manager_spec.rb

+ 1
- 1
spec/lib/active_record/connection_adapters/abstract_adapter/connection_pool_spec.rb View File

@@ -1,7 +1,7 @@
1 1
 # -*- coding:binary -*-
2 2
 require 'spec_helper'
3 3
 
4
-describe ActiveRecord::ConnectionAdapters::ConnectionPool do
4
+RSpec.describe ActiveRecord::ConnectionAdapters::ConnectionPool do
5 5
   self.use_transactional_fixtures = false
6 6
 
7 7
   def database_configurations

+ 1
- 1
spec/lib/metasploit/framework/credential_collection_spec.rb View File

@@ -1,7 +1,7 @@
1 1
 require 'spec_helper'
2 2
 require 'metasploit/framework/credential_collection'
3 3
 
4
-describe Metasploit::Framework::CredentialCollection do
4
+RSpec.describe Metasploit::Framework::CredentialCollection do
5 5
 
6 6
   subject(:collection) do
7 7
     described_class.new(

+ 1
- 1
spec/lib/metasploit/framework/credential_spec.rb View File

@@ -1,7 +1,7 @@
1 1
 require 'spec_helper'
2 2
 require 'metasploit/framework/credential'
3 3
 
4
-describe Metasploit::Framework::Credential do
4
+RSpec.describe Metasploit::Framework::Credential do
5 5
 
6 6
   subject(:cred_detail) {
7 7
     described_class.new

+ 1
- 1
spec/lib/metasploit/framework/jtr/cracker_spec.rb View File

@@ -1,7 +1,7 @@
1 1
 require 'spec_helper'
2 2
 require 'metasploit/framework/jtr/cracker'
3 3
 
4
-describe Metasploit::Framework::JtR::Cracker do
4
+RSpec.describe Metasploit::Framework::JtR::Cracker do
5 5
 
6 6
   subject(:cracker) { described_class.new }
7 7
   let(:john_path) { '/path/to/john' }

+ 1
- 1
spec/lib/metasploit/framework/jtr/invalid_wordlist_spec.rb View File

@@ -1,7 +1,7 @@
1 1
 require 'spec_helper'
2 2
 require 'metasploit/framework/jtr/invalid_wordlist'
3 3
 
4
-describe Metasploit::Framework::JtR::InvalidWordlist do
4
+RSpec.describe Metasploit::Framework::JtR::InvalidWordlist do
5 5
 
6 6
   subject(:invalid) do
7 7
     described_class.new(model)

+ 1
- 1
spec/lib/metasploit/framework/jtr/wordlist_spec.rb View File

@@ -1,7 +1,7 @@
1 1
 require 'spec_helper'
2 2
 require 'metasploit/framework/jtr/wordlist'
3 3
 
4
-describe Metasploit::Framework::JtR::Wordlist do
4
+RSpec.describe Metasploit::Framework::JtR::Wordlist do
5 5
 
6 6
   subject(:wordlist) { described_class.new }
7 7
 

+ 1
- 1
spec/lib/metasploit/framework/login_scanner/afp_spec.rb View File

@@ -2,7 +2,7 @@
2 2
 require 'spec_helper'
3 3
 require 'metasploit/framework/login_scanner/afp'
4 4
 
5
-describe Metasploit::Framework::LoginScanner::AFP do
5
+RSpec.describe Metasploit::Framework::LoginScanner::AFP do
6 6
 
7 7
   subject(:scanner) { described_class.new }
8 8
 

+ 1
- 1
spec/lib/metasploit/framework/login_scanner/axis2_spec.rb View File

@@ -2,7 +2,7 @@
2 2
 require 'spec_helper'
3 3
 require 'metasploit/framework/login_scanner/axis2'
4 4
 
5
-describe Metasploit::Framework::LoginScanner::Axis2 do
5
+RSpec.describe Metasploit::Framework::LoginScanner::Axis2 do
6 6
 
7 7
   it_behaves_like 'Metasploit::Framework::LoginScanner::Base',  has_realm_key: true, has_default_realm: false
8 8
   it_behaves_like 'Metasploit::Framework::LoginScanner::RexSocket'

+ 1
- 1
spec/lib/metasploit/framework/login_scanner/base_spec.rb View File

@@ -1,7 +1,7 @@
1 1
 require 'spec_helper'
2 2
 require 'metasploit/framework/login_scanner/base'
3 3
 
4
-describe Metasploit::Framework::LoginScanner::Base do
4
+RSpec.describe Metasploit::Framework::LoginScanner::Base do
5 5
 
6 6
   let(:base_class) {
7 7
     Class.new do

+ 1
- 1
spec/lib/metasploit/framework/login_scanner/buffalo_spec.rb View File

@@ -1,7 +1,7 @@
1 1
 require 'spec_helper'
2 2
 require 'metasploit/framework/login_scanner/buffalo'
3 3
 
4
-describe Metasploit::Framework::LoginScanner::Buffalo do
4
+RSpec.describe Metasploit::Framework::LoginScanner::Buffalo do
5 5
 
6 6
     it_behaves_like 'Metasploit::Framework::LoginScanner::Base',  has_realm_key: true, has_default_realm: false
7 7
     it_behaves_like 'Metasploit::Framework::LoginScanner::RexSocket'

+ 1
- 1
spec/lib/metasploit/framework/login_scanner/chef_webui_spec.rb View File

@@ -2,7 +2,7 @@
2 2
 require 'spec_helper'
3 3
 require 'metasploit/framework/login_scanner/chef_webui'
4 4
 
5
-describe Metasploit::Framework::LoginScanner::ChefWebUI do
5
+RSpec.describe Metasploit::Framework::LoginScanner::ChefWebUI do
6 6
 
7 7
   subject(:http_scanner) { described_class.new }
8 8
 

+ 1
- 1
spec/lib/metasploit/framework/login_scanner/db2_spec.rb View File

@@ -1,7 +1,7 @@
1 1
 require 'spec_helper'
2 2
 require 'metasploit/framework/login_scanner/db2'
3 3
 
4
-describe Metasploit::Framework::LoginScanner::DB2 do
4
+RSpec.describe Metasploit::Framework::LoginScanner::DB2 do
5 5
   let(:public) { 'root' }
6 6
   let(:private) { 'toor' }
7 7
   let(:test_cred) {

+ 1
- 1
spec/lib/metasploit/framework/login_scanner/ftp_spec.rb View File

@@ -1,7 +1,7 @@
1 1
 require 'spec_helper'
2 2
 require 'metasploit/framework/login_scanner/ftp'
3 3
 
4
-describe Metasploit::Framework::LoginScanner::FTP do
4
+RSpec.describe Metasploit::Framework::LoginScanner::FTP do
5 5
   let(:public) { 'root' }
6 6
   let(:private) { 'toor' }
7 7
 

+ 1
- 1
spec/lib/metasploit/framework/login_scanner/gitlab_spec.rb View File

@@ -1,7 +1,7 @@
1 1
 require 'spec_helper'
2 2
 require 'metasploit/framework/login_scanner/gitlab'
3 3
 
4
-describe Metasploit::Framework::LoginScanner::GitLab do
4
+RSpec.describe Metasploit::Framework::LoginScanner::GitLab do
5 5
 
6 6
     it_behaves_like 'Metasploit::Framework::LoginScanner::Base',  has_realm_key: true, has_default_realm: false
7 7
     it_behaves_like 'Metasploit::Framework::LoginScanner::RexSocket'

+ 1
- 1
spec/lib/metasploit/framework/login_scanner/glassfish_spec.rb View File

@@ -2,7 +2,7 @@
2 2
 require 'spec_helper'
3 3
 require 'metasploit/framework/login_scanner/glassfish'
4 4
 
5
-describe Metasploit::Framework::LoginScanner::Glassfish do
5
+RSpec.describe Metasploit::Framework::LoginScanner::Glassfish do
6 6
 
7 7
   subject(:http_scanner) { described_class.new }
8 8
 

+ 1
- 1
spec/lib/metasploit/framework/login_scanner/http_spec.rb View File

@@ -2,7 +2,7 @@
2 2
 require 'spec_helper'
3 3
 require 'metasploit/framework/login_scanner/http'
4 4
 
5
-describe Metasploit::Framework::LoginScanner::HTTP do
5
+RSpec.describe Metasploit::Framework::LoginScanner::HTTP do
6 6
 
7 7
   it_behaves_like 'Metasploit::Framework::LoginScanner::Base',  has_realm_key: true, has_default_realm: false
8 8
   it_behaves_like 'Metasploit::Framework::LoginScanner::RexSocket'

+ 1
- 1
spec/lib/metasploit/framework/login_scanner/invalid_spec.rb View File

@@ -1,7 +1,7 @@
1 1
 require 'spec_helper'
2 2
 require 'metasploit/framework/login_scanner/invalid'
3 3
 
4
-describe Metasploit::Framework::LoginScanner::Invalid do
4
+RSpec.describe Metasploit::Framework::LoginScanner::Invalid do
5 5
 
6 6
   subject(:invalid) do
7 7
     described_class.new(model)

+ 1
- 1
spec/lib/metasploit/framework/login_scanner/ipboard_spec.rb View File

@@ -1,7 +1,7 @@
1 1
 require 'spec_helper'
2 2
 require 'metasploit/framework/login_scanner/ipboard'
3 3
 
4
-describe Metasploit::Framework::LoginScanner::IPBoard do
4
+RSpec.describe Metasploit::Framework::LoginScanner::IPBoard do
5 5
 
6 6
   subject { described_class.new }
7 7
 

+ 1
- 1
spec/lib/metasploit/framework/login_scanner/jenkins_spec.rb View File

@@ -1,7 +1,7 @@
1 1
 require 'spec_helper'
2 2
 require 'metasploit/framework/login_scanner/jenkins'
3 3
 
4
-describe Metasploit::Framework::LoginScanner::Jenkins do
4
+RSpec.describe Metasploit::Framework::LoginScanner::Jenkins do
5 5
 
6 6
     it_behaves_like 'Metasploit::Framework::LoginScanner::Base',  has_realm_key: true, has_default_realm: false
7 7
     it_behaves_like 'Metasploit::Framework::LoginScanner::RexSocket'

+ 1
- 1
spec/lib/metasploit/framework/login_scanner/manageengine_desktop_central_spec.rb View File

@@ -1,7 +1,7 @@
1 1
 require 'spec_helper'
2 2
 require 'metasploit/framework/login_scanner/manageengine_desktop_central'
3 3
 
4
-describe Metasploit::Framework::LoginScanner::ManageEngineDesktopCentral do
4
+RSpec.describe Metasploit::Framework::LoginScanner::ManageEngineDesktopCentral do
5 5
 
6 6
     it_behaves_like 'Metasploit::Framework::LoginScanner::Base',  has_realm_key: true, has_default_realm: false
7 7
     it_behaves_like 'Metasploit::Framework::LoginScanner::RexSocket'

+ 1
- 1
spec/lib/metasploit/framework/login_scanner/mssql_spec.rb View File

@@ -1,7 +1,7 @@
1 1
 require 'spec_helper'
2 2
 require 'metasploit/framework/login_scanner/mssql'
3 3
 
4
-describe Metasploit::Framework::LoginScanner::MSSQL do
4
+RSpec.describe Metasploit::Framework::LoginScanner::MSSQL do
5 5
   let(:public) { 'root' }
6 6
   let(:private) { 'toor' }
7 7
 

+ 1
- 1
spec/lib/metasploit/framework/login_scanner/mybook_live_spec.rb View File

@@ -1,7 +1,7 @@
1 1
 require 'spec_helper'
2 2
 require 'metasploit/framework/login_scanner/mybook_live'
3 3
 
4
-describe Metasploit::Framework::LoginScanner::MyBookLive do
4
+RSpec.describe Metasploit::Framework::LoginScanner::MyBookLive do
5 5
 
6 6
     it_behaves_like 'Metasploit::Framework::LoginScanner::Base',  has_realm_key: true, has_default_realm: false
7 7
     it_behaves_like 'Metasploit::Framework::LoginScanner::RexSocket'

+ 1
- 1
spec/lib/metasploit/framework/login_scanner/mysql_spec.rb View File

@@ -1,7 +1,7 @@
1 1
 require 'spec_helper'
2 2
 require 'metasploit/framework/login_scanner/mysql'
3 3
 
4
-describe Metasploit::Framework::LoginScanner::MySQL do
4
+RSpec.describe Metasploit::Framework::LoginScanner::MySQL do
5 5
   let(:public) { 'root' }
6 6
   let(:private) { 'toor' }
7 7
   let(:pub_blank) {

+ 1
- 1
spec/lib/metasploit/framework/login_scanner/nessus_spec.rb View File

@@ -1,7 +1,7 @@
1 1
 require 'spec_helper'
2 2
 require 'metasploit/framework/login_scanner/nessus'
3 3
 
4
-describe Metasploit::Framework::LoginScanner::Nessus do
4
+RSpec.describe Metasploit::Framework::LoginScanner::Nessus do
5 5
 
6 6
     subject(:http_scanner) { described_class.new }
7 7
 

+ 1
- 1
spec/lib/metasploit/framework/login_scanner/pop3_spec.rb View File

@@ -1,7 +1,7 @@
1 1
 require 'spec_helper'
2 2
 require 'metasploit/framework/login_scanner/pop3'
3 3
 
4
-describe Metasploit::Framework::LoginScanner::POP3 do
4
+RSpec.describe Metasploit::Framework::LoginScanner::POP3 do
5 5
   subject(:scanner) { described_class.new }
6 6
 
7 7
   it_behaves_like 'Metasploit::Framework::LoginScanner::Base',  has_realm_key: false, has_default_realm: false

+ 1
- 1
spec/lib/metasploit/framework/login_scanner/postgres_spec.rb View File

@@ -1,7 +1,7 @@
1 1
 require 'spec_helper'
2 2
 require 'metasploit/framework/login_scanner/postgres'
3 3
 
4
-describe Metasploit::Framework::LoginScanner::Postgres do
4
+RSpec.describe Metasploit::Framework::LoginScanner::Postgres do
5 5
   let(:public) { 'root' }
6 6
   let(:private) { 'toor' }
7 7
   let(:realm) { 'template1' }

+ 1
- 1
spec/lib/metasploit/framework/login_scanner/result_spec.rb View File

@@ -1,7 +1,7 @@
1 1
 require 'spec_helper'
2 2
 require 'metasploit/framework/login_scanner'
3 3
 
4
-describe Metasploit::Framework::LoginScanner::Result do
4
+RSpec.describe Metasploit::Framework::LoginScanner::Result do
5 5
 
6 6
   let(:private) { 'toor' }
7 7
   let(:proof) { 'foobar' }

+ 1
- 1
spec/lib/metasploit/framework/login_scanner/smb_spec.rb View File

@@ -1,7 +1,7 @@
1 1
 require 'spec_helper'
2 2
 require 'metasploit/framework/login_scanner/smb'
3 3
 
4
-describe Metasploit::Framework::LoginScanner::SMB do
4
+RSpec.describe Metasploit::Framework::LoginScanner::SMB do
5 5
   let(:public) { 'root' }
6 6
   let(:private) { 'toor' }
7 7
 

+ 1
- 1
spec/lib/metasploit/framework/login_scanner/smh_spec.rb View File

@@ -2,7 +2,7 @@
2 2
 require 'spec_helper'
3 3
 require 'metasploit/framework/login_scanner/smh'
4 4
 
5
-describe Metasploit::Framework::LoginScanner::Smh do
5
+RSpec.describe Metasploit::Framework::LoginScanner::Smh do
6 6
 
7 7
   subject(:smh_cli) { described_class.new }
8 8
 

+ 1
- 1
spec/lib/metasploit/framework/login_scanner/snmp_spec.rb View File

@@ -1,7 +1,7 @@
1 1
 require 'spec_helper'
2 2
 require 'metasploit/framework/login_scanner/snmp'
3 3
 
4
-describe Metasploit::Framework::LoginScanner::SNMP do
4
+RSpec.describe Metasploit::Framework::LoginScanner::SNMP do
5 5
   let(:public) { 'public' }
6 6
   let(:private) { nil }
7 7
 

+ 1
- 1
spec/lib/metasploit/framework/login_scanner/ssh_spec.rb View File

@@ -1,7 +1,7 @@
1 1
 require 'spec_helper'
2 2
 require 'metasploit/framework/login_scanner/ssh'
3 3
 
4
-describe Metasploit::Framework::LoginScanner::SSH do
4
+RSpec.describe Metasploit::Framework::LoginScanner::SSH do
5 5
   let(:public) { 'root' }
6 6
   let(:private) { 'toor' }
7 7
   let(:key) { OpenSSL::PKey::RSA.generate(2048).to_s }

+ 1
- 1
spec/lib/metasploit/framework/login_scanner/symantec_web_gateway_spec.rb View File

@@ -1,7 +1,7 @@
1 1
 require 'spec_helper'
2 2
 require 'metasploit/framework/login_scanner/symantec_web_gateway'
3 3
 
4
-describe Metasploit::Framework::LoginScanner::SymantecWebGateway do
4
+RSpec.describe Metasploit::Framework::LoginScanner::SymantecWebGateway do
5 5
 
6 6
     it_behaves_like 'Metasploit::Framework::LoginScanner::Base',  has_realm_key: true, has_default_realm: false
7 7
     it_behaves_like 'Metasploit::Framework::LoginScanner::RexSocket'

+ 1
- 1
spec/lib/metasploit/framework/login_scanner/telnet_spec.rb View File

@@ -1,7 +1,7 @@
1 1
 require 'spec_helper'
2 2
 require 'metasploit/framework/login_scanner/telnet'
3 3
 
4
-describe Metasploit::Framework::LoginScanner::Telnet do
4
+RSpec.describe Metasploit::Framework::LoginScanner::Telnet do
5 5
 
6 6
   subject(:login_scanner) { described_class.new }
7 7
 

+ 1
- 1
spec/lib/metasploit/framework/login_scanner/tomcat_spec.rb View File

@@ -2,7 +2,7 @@
2 2
 require 'spec_helper'
3 3
 require 'metasploit/framework/login_scanner/tomcat'
4 4
 
5
-describe Metasploit::Framework::LoginScanner::Tomcat do
5
+RSpec.describe Metasploit::Framework::LoginScanner::Tomcat do
6 6
 
7 7
   it_behaves_like 'Metasploit::Framework::LoginScanner::Base',  has_realm_key: true, has_default_realm: false
8 8
   it_behaves_like 'Metasploit::Framework::LoginScanner::RexSocket'

+ 1
- 1
spec/lib/metasploit/framework/login_scanner/vmauthd_spec.rb View File

@@ -1,7 +1,7 @@
1 1
 require 'spec_helper'
2 2
 require 'metasploit/framework/login_scanner/vmauthd'
3 3
 
4
-describe Metasploit::Framework::LoginScanner::VMAUTHD do
4
+RSpec.describe Metasploit::Framework::LoginScanner::VMAUTHD do
5 5
   subject(:scanner) { described_class.new }
6 6
 
7 7
   it_behaves_like 'Metasploit::Framework::LoginScanner::Base',  has_realm_key: false, has_default_realm: false

+ 1
- 1
spec/lib/metasploit/framework/login_scanner/vnc_spec.rb View File

@@ -1,7 +1,7 @@
1 1
 require 'spec_helper'
2 2
 require 'metasploit/framework/login_scanner/vnc'
3 3
 
4
-describe Metasploit::Framework::LoginScanner::VNC do
4
+RSpec.describe Metasploit::Framework::LoginScanner::VNC do
5 5
   let(:private) { 'password' }
6 6
   let(:blank) { '' }
7 7
   let(:test_cred) {

+ 1
- 1
spec/lib/metasploit/framework/login_scanner/winrm_spec.rb View File

@@ -2,7 +2,7 @@
2 2
 require 'spec_helper'
3 3
 require 'metasploit/framework/login_scanner/winrm'
4 4
 
5
-describe Metasploit::Framework::LoginScanner::WinRM do
5
+RSpec.describe Metasploit::Framework::LoginScanner::WinRM do
6 6
 
7 7
   it_behaves_like 'Metasploit::Framework::LoginScanner::Base',  has_realm_key: true, has_default_realm: true
8 8
   it_behaves_like 'Metasploit::Framework::LoginScanner::RexSocket'

+ 1
- 1
spec/lib/metasploit/framework/login_scanner/wordpress_rpc_spec.rb View File

@@ -1,7 +1,7 @@
1 1
 require 'spec_helper'
2 2
 require 'metasploit/framework/login_scanner/wordpress_rpc'
3 3
 
4
-describe Metasploit::Framework::LoginScanner::WordpressRPC do
4
+RSpec.describe Metasploit::Framework::LoginScanner::WordpressRPC do
5 5
 
6 6
   it_behaves_like 'Metasploit::Framework::LoginScanner::Base',  has_realm_key: true, has_default_realm: false
7 7
   it_behaves_like 'Metasploit::Framework::LoginScanner::RexSocket'

+ 1
- 1
spec/lib/metasploit/framework/login_scanner/zabbix_spec.rb View File

@@ -2,7 +2,7 @@
2 2
 require 'spec_helper'
3 3
 require 'metasploit/framework/login_scanner/zabbix'
4 4
 
5
-describe Metasploit::Framework::LoginScanner::Zabbix do
5
+RSpec.describe Metasploit::Framework::LoginScanner::Zabbix do
6 6
 
7 7
   subject(:http_scanner) { described_class.new }
8 8
 

+ 1
- 1
spec/lib/metasploit/framework/login_scanner_spec.rb View File

@@ -4,7 +4,7 @@ require 'metasploit/framework/login_scanner/http'
4 4
 require 'metasploit/framework/login_scanner/smb'
5 5
 require 'metasploit/framework/login_scanner/vnc'
6 6
 
7
-describe Metasploit::Framework::LoginScanner do
7
+RSpec.describe Metasploit::Framework::LoginScanner do
8 8
 
9 9
   subject { described_class.classes_for_service(service) }
10 10
   let(:port) { nil }

+ 1
- 1
spec/lib/msf/base/sessions/meterpreter_spec.rb View File

@@ -3,7 +3,7 @@ require 'msf/base/sessions/meterpreter'
3 3
 require 'rex/post/meterpreter/extensions/stdapi/net/interface'
4 4
 require 'rex/post/meterpreter/extensions/stdapi/net/route'
5 5
 
6
-describe Msf::Sessions::Meterpreter do
6
+RSpec.describe Msf::Sessions::Meterpreter do
7 7
   before do
8 8
     allow_any_instance_of(Rex::Post::Meterpreter::PacketDispatcher).to receive(:monitor_socket)
9 9
   end

+ 1
- 1
spec/lib/msf/base/simple/framework_spec.rb View File

@@ -1,6 +1,6 @@
1 1
 require 'spec_helper'
2 2
 
3
-describe Msf::Simple::Framework do
3
+RSpec.describe Msf::Simple::Framework do
4 4
   include_context 'Msf::Simple::Framework'
5 5
 
6 6
   subject do

+ 1
- 1
spec/lib/msf/core/author_spec.rb View File

@@ -1,6 +1,6 @@
1 1
 require 'spec_helper'
2 2
 
3
-describe Msf::Author do
3
+RSpec.describe Msf::Author do
4 4
 
5 5
   context 'KNOWN' do
6 6
     subject(:known) {

+ 1
- 1
spec/lib/msf/core/auxiliary/drdos_spec.rb View File

@@ -3,7 +3,7 @@ require 'spec_helper'
3 3
 
4 4
 require 'msf/core/auxiliary/drdos'
5 5
 
6
-describe Msf::Auxiliary::DRDoS do
6
+RSpec.describe Msf::Auxiliary::DRDoS do
7 7
   subject do
8 8
     mod = Module.new
9 9
     mod.extend described_class

+ 1
- 1
spec/lib/msf/core/auxiliary/kademlia_spec.rb View File

@@ -3,7 +3,7 @@
3 3
 require 'spec_helper'
4 4
 require 'msf/core/auxiliary/kademlia'
5 5
 
6
-describe Msf::Auxiliary::Kademlia do
6
+RSpec.describe Msf::Auxiliary::Kademlia do
7 7
   subject(:kad) do
8 8
     mod = Module.new
9 9
     mod.extend described_class

+ 1
- 1
spec/lib/msf/core/data_store_spec.rb View File

@@ -32,7 +32,7 @@ shared_examples "datastore" do
32 32
   end
33 33
 end
34 34
 
35
-describe Msf::DataStore do
35
+RSpec.describe Msf::DataStore do
36 36
 
37 37
   describe "#import_option" do
38 38
     subject do

+ 1
- 1
spec/lib/msf/core/encoded_payload_spec.rb View File

@@ -1,7 +1,7 @@
1 1
 require 'spec_helper'
2 2
 require 'msf/core/encoded_payload'
3 3
 
4
-describe Msf::EncodedPayload do
4
+RSpec.describe Msf::EncodedPayload do
5 5
   include_context 'Msf::Simple::Framework#modules loading'
6 6
 
7 7
   before do

+ 1
- 1
spec/lib/msf/core/exe/segment_appender_spec.rb View File

@@ -1,7 +1,7 @@
1 1
 require 'spec_helper'
2 2
 require 'msf/core/exe/segment_appender'
3 3
 
4
-describe Msf::Exe::SegmentAppender do
4
+RSpec.describe Msf::Exe::SegmentAppender do
5 5
 
6 6
   let(:opts) do
7 7
     option_hash = {

+ 1
- 1
spec/lib/msf/core/exe/segment_injector_spec.rb View File

@@ -1,7 +1,7 @@
1 1
 require 'spec_helper'
2 2
 require 'msf/core/exe/segment_injector'
3 3
 
4
-describe Msf::Exe::SegmentInjector do
4
+RSpec.describe Msf::Exe::SegmentInjector do
5 5
 
6 6
   let(:opts) do
7 7
     option_hash = {

+ 1
- 1
spec/lib/msf/core/exploit/browser_autopwn2_spec.rb View File

@@ -1,6 +1,6 @@
1 1
 require 'msf/core'
2 2
 
3
-describe Msf::Exploit::Remote::BrowserAutopwn2 do
3
+RSpec.describe Msf::Exploit::Remote::BrowserAutopwn2 do
4 4
 
5 5
 
6 6
 

+ 1
- 1
spec/lib/msf/core/exploit/capture_spec.rb View File

@@ -5,7 +5,7 @@ require 'msf/core'
5 5
 require 'msf/core/module'
6 6
 require 'msf/core/exploit/capture'
7 7
 
8
-describe Msf::Exploit::Capture do
8
+RSpec.describe Msf::Exploit::Capture do
9 9
 
10 10
   subject do
11 11
     mod = Msf::Module.new

+ 1
- 1
spec/lib/msf/core/exploit/cmdstager_spec.rb View File

@@ -3,7 +3,7 @@ require 'spec_helper'
3 3
 require 'msf/core'
4 4
 require 'msf/core/exploit/cmdstager'
5 5
 
6
-describe Msf::Exploit::CmdStager do
6
+RSpec.describe Msf::Exploit::CmdStager do
7 7
 
8 8
   def create_exploit(info ={})
9 9
     mod = Msf::Exploit.allocate

+ 1
- 1
spec/lib/msf/core/exploit/http/client_spec.rb View File

@@ -5,7 +5,7 @@ require 'msf/core'
5 5
 require 'msf/core/data_store'
6 6
 require 'msf/core/exploit/http/client'
7 7
 
8
-describe Msf::Exploit::Remote::HttpClient do
8
+RSpec.describe Msf::Exploit::Remote::HttpClient do
9 9
   subject do
10 10
     mod = ::Msf::Module.new
11 11
     mod.extend described_class

+ 1
- 1
spec/lib/msf/core/exploit/http/jboss/base_spec.rb View File

@@ -4,7 +4,7 @@ require 'spec_helper'
4 4
 require 'msf/core'
5 5
 require 'msf/core/exploit/http/jboss'
6 6
 
7
-describe Msf::Exploit::Remote::HTTP::JBoss::Base do
7
+RSpec.describe Msf::Exploit::Remote::HTTP::JBoss::Base do
8 8
   subject do
9 9
     mod = ::Msf::Exploit.new
10 10
     mod.extend Msf::Exploit::Remote::HTTP::JBoss

+ 1
- 1
spec/lib/msf/core/exploit/http/jboss/bean_shell_scripts_spec.rb View File

@@ -4,7 +4,7 @@ require 'spec_helper'
4 4
 require 'msf/core'
5 5
 require 'msf/core/exploit/http/jboss'
6 6
 
7
-describe Msf::Exploit::Remote::HTTP::JBoss::BeanShellScripts do
7
+RSpec.describe Msf::Exploit::Remote::HTTP::JBoss::BeanShellScripts do
8 8
   subject do
9 9
     mod = ::Msf::Exploit.new
10 10
     mod.extend Msf::Exploit::Remote::HTTP::JBoss

+ 1
- 1
spec/lib/msf/core/exploit/http/jboss/bean_shell_spec.rb View File

@@ -4,7 +4,7 @@ require 'spec_helper'
4 4
 require 'msf/core'
5 5
 require 'msf/core/exploit/http/jboss'
6 6
 
7
-describe Msf::Exploit::Remote::HTTP::JBoss::BeanShell do
7
+RSpec.describe Msf::Exploit::Remote::HTTP::JBoss::BeanShell do
8 8
 
9 9
   subject do
10 10
     mod = ::Msf::Exploit.new

+ 1
- 1
spec/lib/msf/core/exploit/http/jboss/deployment_file_repository_scripts_spec.rb View File

@@ -4,7 +4,7 @@ require 'spec_helper'
4 4
 require 'msf/core'
5 5
 require 'msf/core/exploit/http/jboss'
6 6
 
7
-describe Msf::Exploit::Remote::HTTP::JBoss::DeploymentFileRepositoryScripts do
7
+RSpec.describe Msf::Exploit::Remote::HTTP::JBoss::DeploymentFileRepositoryScripts do
8 8
   subject do
9 9
     mod = ::Msf::Exploit.new
10 10
     mod.extend Msf::Exploit::Remote::HTTP::JBoss

+ 1
- 2
spec/lib/msf/core/exploit/http/jboss/deployment_file_repository_spec.rb View File

@@ -4,8 +4,7 @@ require 'spec_helper'
4 4
 require 'msf/core'
5 5
 require 'msf/core/exploit/http/jboss'
6 6
 
7
-describe Msf::Exploit::Remote::HTTP::JBoss::DeploymentFileRepository do
8
-
7
+RSpec.describe Msf::Exploit::Remote::HTTP::JBoss::DeploymentFileRepository do
9 8
   subject do
10 9
     mod = ::Msf::Exploit.new
11 10
     mod.extend Msf::Exploit::Remote::HTTP::JBoss

+ 1
- 1
spec/lib/msf/core/exploit/http/server_spec.rb View File

@@ -5,7 +5,7 @@ require 'spec_helper'
5 5
 require 'msf/core'
6 6
 require 'msf/core/exploit/http/server'
7 7
 
8
-describe Msf::Exploit::Remote::HttpServer do
8
+RSpec.describe Msf::Exploit::Remote::HttpServer do
9 9
 
10 10
   subject(:server_module) do
11 11
     mod = Msf::Exploit.allocate

+ 1
- 1
spec/lib/msf/core/exploit/http/typo3_spec.rb View File

@@ -5,7 +5,7 @@ require 'msf/core'
5 5
 require 'rex/proto/http/response'
6 6
 require 'msf/core/exploit/http/typo3'
7 7
 
8
-describe Msf::Exploit::Remote::HTTP::Typo3 do
8
+RSpec.describe Msf::Exploit::Remote::HTTP::Typo3 do
9 9
   subject do
10 10
     mod = ::Msf::Module.new
11 11
     mod.extend described_class

+ 1
- 1
spec/lib/msf/core/exploit/http/wordpress/base_spec.rb View File

@@ -6,7 +6,7 @@ require 'msf/core/exploit'
6 6
 require 'rex/proto/http/response'
7 7
 require 'msf/core/exploit/http/wordpress'
8 8
 
9
-describe Msf::Exploit::Remote::HTTP::Wordpress::Base do
9
+RSpec.describe Msf::Exploit::Remote::HTTP::Wordpress::Base do
10 10
   subject do
11 11
     mod = ::Msf::Exploit.new
12 12
     mod.extend ::Msf::Exploit::Remote::HTTP::Wordpress

+ 1
- 1
spec/lib/msf/core/exploit/http/wordpress/login_spec.rb View File

@@ -6,7 +6,7 @@ require 'msf/core/exploit'
6 6
 require 'rex/proto/http/response'
7 7
 require 'msf/core/exploit/http/wordpress'
8 8
 
9
-describe Msf::Exploit::Remote::HTTP::Wordpress::Login do
9
+RSpec.describe Msf::Exploit::Remote::HTTP::Wordpress::Login do
10 10
   subject do
11 11
     mod = ::Msf::Exploit.new
12 12
     mod.extend ::Msf::Exploit::Remote::HTTP::Wordpress

+ 1
- 1
spec/lib/msf/core/exploit/http/wordpress/version_spec.rb View File

@@ -6,7 +6,7 @@ require 'msf/core/exploit'
6 6
 require 'rex/proto/http/response'
7 7
 require 'msf/core/exploit/http/wordpress'
8 8
 
9
-describe Msf::Exploit::Remote::HTTP::Wordpress::Version do
9
+RSpec.describe Msf::Exploit::Remote::HTTP::Wordpress::Version do
10 10
   subject do
11 11
     mod = ::Msf::Exploit.new
12 12
     mod.extend ::Msf::Exploit::Remote::HTTP::Wordpress

+ 1
- 1
spec/lib/msf/core/exploit/kerberos/client/as_request_spec.rb View File

@@ -4,7 +4,7 @@ require 'spec_helper'
4 4
 require 'rex/proto/kerberos'
5 5
 require 'msf/core/exploit/kerberos/client'
6 6
 
7
-describe Msf::Exploit::Remote::Kerberos::Client::AsRequest do
7
+RSpec.describe Msf::Exploit::Remote::Kerberos::Client::AsRequest do
8 8
   subject do
9 9
     mod = ::Msf::Exploit.new
10 10
     mod.extend ::Msf::Exploit::Remote::Kerberos::Client

+ 1
- 1
spec/lib/msf/core/exploit/kerberos/client/as_response_spec.rb View File

@@ -4,7 +4,7 @@ require 'spec_helper'
4 4
 require 'rex/proto/kerberos'
5 5
 require 'msf/core/exploit/kerberos/client'
6 6
 
7
-describe Msf::Exploit::Remote::Kerberos::Client::AsResponse do
7
+RSpec.describe Msf::Exploit::Remote::Kerberos::Client::AsResponse do
8 8
   subject do
9 9
     mod = ::Msf::Exploit.new
10 10
     mod.extend ::Msf::Exploit::Remote::Kerberos::Client

+ 1
- 1
spec/lib/msf/core/exploit/kerberos/client/base_spec.rb View File

@@ -4,7 +4,7 @@ require 'spec_helper'
4 4
 require 'rex/proto/kerberos'
5 5
 require 'msf/core/exploit/kerberos/client'
6 6
 
7
-describe Msf::Exploit::Remote::Kerberos::Client::Base do
7
+RSpec.describe Msf::Exploit::Remote::Kerberos::Client::Base do
8 8
   subject do
9 9
     mod = ::Msf::Exploit.new
10 10
     mod.extend ::Msf::Exploit::Remote::Kerberos::Client

+ 1
- 1
spec/lib/msf/core/exploit/kerberos/client/cache_credential_spec.rb View File

@@ -4,7 +4,7 @@ require 'spec_helper'
4 4
 require 'rex/proto/kerberos'
5 5
 require 'msf/core/exploit/kerberos/client'
6 6
 
7
-describe Msf::Exploit::Remote::Kerberos::Client::CacheCredential do
7
+RSpec.describe Msf::Exploit::Remote::Kerberos::Client::CacheCredential do
8 8
   subject do
9 9
     mod = ::Msf::Exploit.new
10 10
     mod.extend ::Msf::Exploit::Remote::Kerberos::Client

+ 1
- 1
spec/lib/msf/core/exploit/kerberos/client/pac_spec.rb View File

@@ -4,7 +4,7 @@ require 'spec_helper'
4 4
 require 'rex/proto/kerberos'
5 5
 require 'msf/core/exploit/kerberos/client'
6 6
 
7
-describe Msf::Exploit::Remote::Kerberos::Client::Pac do
7
+RSpec.describe Msf::Exploit::Remote::Kerberos::Client::Pac do
8 8
   subject do
9 9
     mod = ::Msf::Exploit.new
10 10
     mod.extend ::Msf::Exploit::Remote::Kerberos::Client

+ 1
- 1
spec/lib/msf/core/exploit/kerberos/client/tgs_request_spec.rb View File

@@ -4,7 +4,7 @@ require 'spec_helper'
4 4
 require 'rex/proto/kerberos'
5 5
 require 'msf/core/exploit/kerberos/client'
6 6
 
7
-describe Msf::Exploit::Remote::Kerberos::Client::TgsRequest do
7
+RSpec.describe Msf::Exploit::Remote::Kerberos::Client::TgsRequest do
8 8
   subject(:mod) do
9 9
     mod = ::Msf::Exploit.new
10 10
     mod.extend ::Msf::Exploit::Remote::Kerberos::Client

+ 1
- 1
spec/lib/msf/core/exploit/kerberos/client/tgs_response_spec.rb View File

@@ -4,7 +4,7 @@ require 'spec_helper'
4 4
 require 'rex/proto/kerberos'
5 5
 require 'msf/core/exploit/kerberos/client'
6 6
 
7
-describe Msf::Exploit::Remote::Kerberos::Client::TgsResponse do
7
+RSpec.describe Msf::Exploit::Remote::Kerberos::Client::TgsResponse do
8 8
   subject do
9 9
     mod = ::Msf::Exploit.new
10 10
     mod.extend ::Msf::Exploit::Remote::Kerberos::Client

+ 1
- 1
spec/lib/msf/core/exploit/powershell_spec.rb View File

@@ -8,7 +8,7 @@ def decompress(code)
8 8
   Rex::Powershell::Script.new(code).decompress_code
9 9
 end
10 10
 
11
-describe Msf::Exploit::Powershell do
11
+RSpec.describe Msf::Exploit::Powershell do
12 12
   subject do
13 13
     mod = Msf::Exploit.allocate
14 14
     mod.extend described_class

+ 1
- 1
spec/lib/msf/core/exploit/remote/browser_exploit_server_spec.rb View File

@@ -1,7 +1,7 @@
1 1
 #require 'spec_helper'
2 2
 require 'msf/core'
3 3
 
4
-describe Msf::Exploit::Remote::BrowserExploitServer do
4
+RSpec.describe Msf::Exploit::Remote::BrowserExploitServer do
5 5
 
6 6
   let(:in_memory_profile) do
7 7
    {

+ 1
- 1
spec/lib/msf/core/exploit/remote/browser_profile_manager_spec.rb View File

@@ -1,6 +1,6 @@
1 1
 require 'msf/core'
2 2
 
3
-describe Msf::Exploit::Remote::BrowserProfileManager do
3
+RSpec.describe Msf::Exploit::Remote::BrowserProfileManager do
4 4
 
5 5
   subject do
6 6
     mod = Msf::Exploit::Remote.allocate

+ 1
- 1
spec/lib/msf/core/exploit/remote/firefox_addon_generator_spec.rb View File

@@ -1,7 +1,7 @@
1 1
 require 'spec_helper'
2 2
 require 'msf/core'
3 3
 
4
-describe Msf::Exploit::Remote::FirefoxAddonGenerator do
4
+RSpec.describe Msf::Exploit::Remote::FirefoxAddonGenerator do
5 5
   let(:datastore) { { 'TARGET' => 0 } }
6 6
   let(:jar) { double(:pack => '@JAR@', :build_manifest => nil) }
7 7
   let(:payload) { double(:encoded => '@EXE@', :encoded_jar => jar) }

+ 1
- 1
spec/lib/msf/core/exploit/remote/firefox_privilege_escalation_spec.rb View File

@@ -1,7 +1,7 @@
1 1
 require 'spec_helper'
2 2
 require 'msf/core'
3 3
 
4
-describe Msf::Exploit::Remote::FirefoxPrivilegeEscalation do
4
+RSpec.describe Msf::Exploit::Remote::FirefoxPrivilegeEscalation do
5 5
 
6 6
   it_should_behave_like 'Msf::Exploit::JSObfu'
7 7
 

+ 1
- 1
spec/lib/msf/core/exploit/remote/java/rmi/builder_spec.rb View File

@@ -5,7 +5,7 @@ require 'rex/java/serialization'
5 5
 require 'rex/proto/rmi'
6 6
 require 'msf/core/exploit/java/rmi/builder'
7 7
 
8
-describe Msf::Exploit::Remote::Java::Rmi::Builder do
8
+RSpec.describe Msf::Exploit::Remote::Java::Rmi::Builder do
9 9
   subject(:mod) do
10 10
     mod = ::Msf::Exploit.new
11 11
     mod.extend ::Msf::Exploit::Remote::Java::Rmi::Builder

+ 1
- 1
spec/lib/msf/core/exploit/remote/java/rmi/client/jmx/connection/builder_spec.rb View File

@@ -6,7 +6,7 @@ require 'rex/java/serialization'
6 6
 require 'rex/proto/rmi'
7 7
 require 'msf/core/exploit/java/rmi/client'
8 8
 
9
-describe Msf::Exploit::Remote::Java::Rmi::Client::Jmx::Connection::Builder do
9
+RSpec.describe Msf::Exploit::Remote::Java::Rmi::Client::Jmx::Connection::Builder do
10 10
   subject(:mod) do
11 11
     mod = ::Msf::Exploit.new
12 12
     mod.extend ::Msf::Exploit::Remote::Java::Rmi::Client

+ 1
- 1
spec/lib/msf/core/exploit/remote/java/rmi/client/jmx/connection_spec.rb View File

@@ -6,7 +6,7 @@ require 'rex/proto/rmi'
6 6
 require 'msf/core/exploit/java/rmi/client'
7 7
 require 'stringio'
8 8
 
9
-describe Msf::Exploit::Remote::Java::Rmi::Client::Jmx::Connection do
9
+RSpec.describe Msf::Exploit::Remote::Java::Rmi::Client::Jmx::Connection do
10 10
 
11 11
   let(:name_get) { 'DefaultDomain:type=MLet' }
12 12
 

+ 1
- 1
spec/lib/msf/core/exploit/remote/java/rmi/client/jmx/server/builder_spec.rb View File

@@ -6,7 +6,7 @@ require 'rex/java/serialization'
6 6
 require 'rex/proto/rmi'
7 7
 require 'msf/core/exploit/java/rmi/client'
8 8
 
9
-describe Msf::Exploit::Remote::Java::Rmi::Client::Jmx::Server::Builder do
9
+RSpec.describe Msf::Exploit::Remote::Java::Rmi::Client::Jmx::Server::Builder do
10 10
   subject(:mod) do
11 11
     mod = ::Msf::Exploit.new
12 12
     mod.extend ::Msf::Exploit::Remote::Java::Rmi::Client

+ 1
- 1
spec/lib/msf/core/exploit/remote/java/rmi/client/jmx/server/parser_spec.rb View File

@@ -5,7 +5,7 @@ require 'rex/java/serialization'
5 5
 require 'rex/proto/rmi'
6 6
 require 'msf/core/exploit/java/rmi/client'
7 7
 
8
-describe Msf::Exploit::Remote::Java::Rmi::Client::Jmx::Server::Parser do
8
+RSpec.describe Msf::Exploit::Remote::Java::Rmi::Client::Jmx::Server::Parser do
9 9
   subject(:mod) do
10 10
     mod = ::Msf::Exploit.new
11 11
     mod.extend ::Msf::Exploit::Remote::Java::Rmi::Client

+ 1
- 1
spec/lib/msf/core/exploit/remote/java/rmi/client/jmx/server_spec.rb View File

@@ -6,7 +6,7 @@ require 'rex/proto/rmi'
6 6
 require 'msf/core/exploit/java/rmi/client'
7 7
 require 'stringio'
8 8
 
9
-describe Msf::Exploit::Remote::Java::Rmi::Client::Jmx::Server do
9
+RSpec.describe Msf::Exploit::Remote::Java::Rmi::Client::Jmx::Server do
10 10
 
11 11
   let(:new_client_response) do
12 12
     "\x51\xac\xed\x00\x05\x77\x0f\x01\x82\x73\x92\x35\x00\x00\x01\x4c" +

+ 1
- 1
spec/lib/msf/core/exploit/remote/java/rmi/client/registry/builder_spec.rb View File

@@ -5,7 +5,7 @@ require 'rex/java/serialization'
5 5
 require 'rex/proto/rmi'
6 6
 require 'msf/core/exploit/java/rmi/client'
7 7
 
8
-describe ::Msf::Exploit::Remote::Java::Rmi::Client::Registry::Builder do
8
+RSpec.describe ::Msf::Exploit::Remote::Java::Rmi::Client::Registry::Builder do
9 9
   subject(:mod) do
10 10
     mod = ::Msf::Exploit.new
11 11
     mod.extend ::Msf::Exploit::Remote::Java::Rmi::Client

+ 1
- 1
spec/lib/msf/core/exploit/remote/java/rmi/client/registry/parser_spec.rb View File

@@ -5,7 +5,7 @@ require 'rex/java/serialization'
5 5
 require 'rex/proto/rmi'
6 6
 require 'msf/core/exploit/java/rmi/client'
7 7
 
8
-describe Msf::Exploit::Remote::Java::Rmi::Client::Registry::Parser do
8
+RSpec.describe Msf::Exploit::Remote::Java::Rmi::Client::Registry::Parser do
9 9
   subject(:mod) do
10 10
     mod = ::Msf::Exploit.new
11 11
     mod.extend ::Msf::Exploit::Remote::Java::Rmi::Client

+ 1
- 1
spec/lib/msf/core/exploit/remote/java/rmi/client/registry_spec.rb View File

@@ -6,7 +6,7 @@ require 'rex/proto/rmi'
6 6
 require 'msf/core/exploit/java/rmi/client'
7 7
 require 'stringio'
8 8
 
9
-describe Msf::Exploit::Remote::Java::Rmi::Client::Registry do
9
+RSpec.describe Msf::Exploit::Remote::Java::Rmi::Client::Registry do
10 10
 
11 11
   let(:list_with_names_response) do
12 12
     "\x51\xac\xed\x00\x05\x77\x0f\x01\x82\x73\x92\x35\x00\x00\x01\x4c" +

+ 1
- 1
spec/lib/msf/core/exploit/remote/java/rmi/client_spec.rb View File

@@ -5,7 +5,7 @@ require 'rex/java/serialization'
5 5
 require 'rex/proto/rmi'
6 6
 require 'msf/core/exploit/java/rmi/client'
7 7
 
8
-describe Msf::Exploit::Remote::Java::Rmi::Client do
8
+RSpec.describe Msf::Exploit::Remote::Java::Rmi::Client do
9 9
   subject(:mod) do
10 10
     mod = ::Msf::Exploit.new
11 11
     mod.extend ::Msf::Exploit::Remote::Java::Rmi::Client

+ 1
- 1
spec/lib/msf/core/exploit/remote/java/rmi/util_spec.rb View File

@@ -4,7 +4,7 @@ require 'spec_helper'
4 4
 require 'rex/java/serialization'
5 5
 require 'msf/core/exploit/java/rmi/util'
6 6
 
7
-describe Msf::Exploit::Remote::Java::Rmi::Util do
7
+RSpec.describe Msf::Exploit::Remote::Java::Rmi::Util do
8 8
   subject(:mod) do
9 9
     mod = ::Msf::Exploit.new
10 10
     mod.extend ::Msf::Exploit::Remote::Java::Rmi::Util

+ 1
- 1
spec/lib/msf/core/exploit/smb/server/share/command/close_spec.rb View File

@@ -5,7 +5,7 @@ require 'spec_helper'
5 5
 require 'msf/core'
6 6
 require 'msf/core/exploit/smb/server/share'
7 7
 
8
-describe Msf::Exploit::Remote::SMB::Server::Share do
8
+RSpec.describe Msf::Exploit::Remote::SMB::Server::Share do
9 9
 
10 10
   subject(:mod) do
11 11
     mod = Msf::Exploit.new

+ 1
- 1
spec/lib/msf/core/exploit/smb/server/share/command/negotiate_spec.rb View File

@@ -6,7 +6,7 @@ require 'msf/core'
6 6
 require 'msf/core/exploit/smb/server/share'
7 7
 require 'rex/proto/smb/constants'
8 8
 
9
-describe Msf::Exploit::Remote::SMB::Server::Share do
9
+RSpec.describe Msf::Exploit::Remote::SMB::Server::Share do
10 10
 
11 11
   subject(:mod) do
12 12
     mod = Msf::Exploit.new

+ 1
- 1
spec/lib/msf/core/exploit/smb/server/share/command/nt_create_andx_spec.rb View File

@@ -5,7 +5,7 @@ require 'msf/core'
5 5
 require 'msf/core/exploit/smb/server/share'
6 6
 require 'rex/proto/smb/constants'
7 7
 
8
-describe Msf::Exploit::Remote::SMB::Server::Share do
8
+RSpec.describe Msf::Exploit::Remote::SMB::Server::Share do
9 9
 
10 10
   subject(:mod) do
11 11
     mod = Msf::Exploit.new

+ 1
- 1
spec/lib/msf/core/exploit/smb/server/share/command/read_andx_spec.rb View File

@@ -5,7 +5,7 @@ require 'msf/core'
5 5
 require 'msf/core/exploit/smb/server/share'
6 6
 require 'rex/proto/smb/constants'
7 7
 
8
-describe Msf::Exploit::Remote::SMB::Server::Share do
8
+RSpec.describe Msf::Exploit::Remote::SMB::Server::Share do
9 9
 
10 10
   subject(:mod) do
11 11
     mod = Msf::Exploit.new

+ 1
- 1
spec/lib/msf/core/exploit/smb/server/share/command/session_setup_andx_spec.rb View File

@@ -5,7 +5,7 @@ require 'msf/core'
5 5
 require 'msf/core/exploit/smb/server/share'
6 6
 require 'rex/proto/smb/constants'
7 7
 
8
-describe Msf::Exploit::Remote::SMB::Server::Share do
8
+RSpec.describe Msf::Exploit::Remote::SMB::Server::Share do
9 9
 
10 10
   subject(:mod) do
11 11
     mod = Msf::Exploit.new

+ 1
- 1
spec/lib/msf/core/exploit/smb/server/share/command/trans2/find_first2_spec.rb View File

@@ -5,7 +5,7 @@ require 'msf/core'
5 5
 require 'msf/core/exploit/smb/server/share'
6 6
 require 'rex/proto/smb/constants'
7 7
 
8
-describe Msf::Exploit::Remote::SMB::Server::Share do
8
+RSpec.describe Msf::Exploit::Remote::SMB::Server::Share do
9 9
 
10 10
   subject(:mod) do
11 11
     mod = Msf::Exploit.new

+ 1
- 1
spec/lib/msf/core/exploit/smb/server/share/command/trans2/query_file_information_spec.rb View File

@@ -5,7 +5,7 @@ require 'msf/core'
5 5
 require 'msf/core/exploit/smb/server/share'
6 6
 require 'rex/proto/smb/constants'
7 7
 
8
-describe Msf::Exploit::Remote::SMB::Server::Share do
8
+RSpec.describe Msf::Exploit::Remote::SMB::Server::Share do
9 9
 
10 10
   subject(:mod) do
11 11
     mod = Msf::Exploit.new

+ 1
- 1
spec/lib/msf/core/exploit/smb/server/share/command/trans2/query_path_information_spec.rb View File

@@ -5,7 +5,7 @@ require 'msf/core'
5 5
 require 'msf/core/exploit/smb/server/share'
6 6
 require 'rex/proto/smb/constants'
7 7
 
8
-describe Msf::Exploit::Remote::SMB::Server::Share do
8
+RSpec.describe Msf::Exploit::Remote::SMB::Server::Share do
9 9
 
10 10
   subject(:mod) do
11 11
     mod = Msf::Exploit.new

+ 1
- 1
spec/lib/msf/core/exploit/smb/server/share/command/trans2_spec.rb View File

@@ -5,7 +5,7 @@ require 'msf/core'
5 5
 require 'msf/core/exploit/smb/server/share'
6 6
 require 'rex/proto/smb/constants'
7 7
 
8
-describe Msf::Exploit::Remote::SMB::Server::Share do
8
+RSpec.describe Msf::Exploit::Remote::SMB::Server::Share do
9 9
 
10 10
   subject(:mod) do
11 11
     mod = Msf::Exploit.new

+ 1
- 1
spec/lib/msf/core/exploit/smb/server/share/information_level/find_spec.rb View File

@@ -5,7 +5,7 @@ require 'msf/core'
5 5
 require 'msf/core/exploit/smb/server/share'
6 6
 require 'rex/proto/smb/constants'
7 7
 
8
-describe Msf::Exploit::Remote::SMB::Server::Share do
8
+RSpec.describe Msf::Exploit::Remote::SMB::Server::Share do
9 9
 
10 10
   subject(:mod) do
11 11
     mod = Msf::Exploit.new

+ 1
- 1
spec/lib/msf/core/exploit/smb/server/share/information_level/query_spec.rb View File

@@ -5,7 +5,7 @@ require 'msf/core'
5 5
 require 'msf/core/exploit/smb/server/share'
6 6
 require 'rex/proto/smb/constants'
7 7
 
8
-describe Msf::Exploit::Remote::SMB::Server::Share do
8
+RSpec.describe Msf::Exploit::Remote::SMB::Server::Share do
9 9
 
10 10
   subject(:mod) do
11 11
     mod = Msf::Exploit.new

+ 1
- 1
spec/lib/msf/core/framework_spec.rb View File

@@ -3,7 +3,7 @@
3 3
 require 'spec_helper'
4 4
 require 'msf/core/framework'
5 5
 
6
-describe Msf::Framework do
6
+RSpec.describe Msf::Framework do
7 7
   context '#initialize' do
8 8
     subject(:framework) {
9 9
       described_class.new

+ 1
- 1
spec/lib/msf/core/module/failure_spec.rb View File

@@ -1,6 +1,6 @@
1 1
 require 'spec_helper'
2 2
 
3
-describe Msf::Module::Failure do
3
+RSpec.describe Msf::Module::Failure do
4 4
   context 'CONSTANTS' do
5 5
     context 'None' do
6 6
       subject(:none) {

+ 0
- 0
spec/lib/msf/core/module_manager_spec.rb View File


Some files were not shown because too many files changed in this diff

Loading…
Cancel
Save