Advertisement
Guest User

Untitled

a guest
Feb 16th, 2019
332
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 61.11 KB | None | 0 0
  1. root@kl:~/wpscan# bundle install && rake install
  2. Don't run Bundler as root. Bundler can ask for sudo if it is needed, and installing your bundle as root will break this application for all non-root
  3. users on this machine.
  4. Using rake 12.3.2
  5. Using concurrent-ruby 1.1.4
  6. Using i18n 1.5.3
  7. Using minitest 5.11.3
  8. Using thread_safe 0.3.6
  9. Using tzinfo 1.2.5
  10. Using activesupport 5.2.2
  11. Using public_suffix 3.0.3
  12. Using addressable 2.5.2
  13. Using ast 2.4.0
  14. Using bundler 2.0.1
  15. Using mini_portile2 2.4.0
  16. Using nokogiri 1.10.1
  17. Using opt_parse_validator 0.0.16.6
  18. Using ruby-progressbar 1.10.0
  19. Using ffi 1.10.0
  20. Using ethon 0.12.0
  21. Using typhoeus 1.3.1
  22. Using xmlrpc 0.3.0
  23. Using yajl-ruby 1.4.1
  24. Using cms_scanner 0.0.41.3
  25. Using json 2.1.0
  26. Using docile 1.3.1
  27. Using simplecov-html 0.10.2
  28. Using simplecov 0.16.1
  29. Using tins 1.20.2
  30. Using term-ansicolor 1.7.1
  31. Using thor 0.19.4
  32. Using coveralls 0.8.22
  33. Using safe_yaml 1.0.4
  34. Using crack 0.4.3
  35. Using diff-lcs 1.3
  36. Using hashdiff 0.3.8
  37. Using jaro_winkler 1.5.2
  38. Using parallel 1.13.0
  39. Using parser 2.6.0.0
  40. Using powerpack 0.1.2
  41. Using rainbow 3.0.0
  42. Using rspec-support 3.8.0
  43. Using rspec-core 3.8.0
  44. Using rspec-expectations 3.8.2
  45. Using rspec-mocks 3.8.0
  46. Using rspec 3.8.0
  47. Using rspec-its 1.2.0
  48. Using unicode-display_width 1.4.1
  49. Using rubocop 0.64.0
  50. Using webmock 3.5.1
  51. Using wpscan 3.4.4 from source at `.`
  52. Bundle complete! 9 Gemfile dependencies, 48 gems now installed.
  53. Use `bundle info [gemname]` to see where a bundled gem is installed.
  54.  
  55. Running RuboCop...
  56. Inspecting 253 files
  57. .............................................................................................................................................................................................................................................................
  58.  
  59. 253 files inspected, no offenses detected
  60. /usr/bin/ruby2.5 -I/var/lib/gems/2.5.0/gems/rspec-support-3.8.0/lib:/var/lib/gems/2.5.0/gems/rspec-core-3.8.0/lib /var/lib/gems/2.5.0/gems/rspec-core-3.8.0/exe/rspec --pattern spec/\*\*\{,/\*/\*\*\}/\*_spec.rb
  61.  
  62. An error occurred while loading spec_helper.
  63. Failure/Error: require 'active_support/all'
  64.  
  65. LoadError:
  66. /var/lib/gems/2.5.0/gems/bigdecimal-1.4.3/lib/bigdecimal/util.so: undefined symbol: rmpd_util_str_to_d - /var/lib/gems/2.5.0/gems/bigdecimal-1.4.3/lib/bigdecimal/util.so
  67. # /var/lib/gems/2.5.0/gems/bigdecimal-1.4.3/lib/bigdecimal/util.rb:9:in `<top (required)>'
  68. # /var/lib/gems/2.5.0/gems/activesupport-5.2.2/lib/active_support/core_ext/big_decimal/conversions.rb:4:in `<top (required)>'
  69. # /var/lib/gems/2.5.0/gems/activesupport-5.2.2/lib/active_support/core_ext/numeric/conversions.rb:3:in `<top (required)>'
  70. # /var/lib/gems/2.5.0/gems/activesupport-5.2.2/lib/active_support/core_ext/numeric.rb:6:in `<top (required)>'
  71. # /var/lib/gems/2.5.0/gems/activesupport-5.2.2/lib/active_support/core_ext.rb:4:in `block in <top (required)>'
  72. # /var/lib/gems/2.5.0/gems/activesupport-5.2.2/lib/active_support/core_ext.rb:3:in `each'
  73. # /var/lib/gems/2.5.0/gems/activesupport-5.2.2/lib/active_support/core_ext.rb:3:in `<top (required)>'
  74. # /var/lib/gems/2.5.0/gems/activesupport-5.2.2/lib/active_support/all.rb:5:in `<top (required)>'
  75. # ./lib/wpscan.rb:5:in `<top (required)>'
  76. # ./spec/spec_helper.rb:45:in `<top (required)>'
  77. # ------------------
  78. # --- Caused by: ---
  79. # LoadError:
  80. # cannot load such file -- active_support/all
  81. # ./lib/wpscan.rb:5:in `<top (required)>'
  82.  
  83. An error occurred while loading ./spec/app/controllers/aliases_spec.rb.
  84. Failure/Error:
  85. describe WPScan::Controller::Aliases do
  86. subject(:controller) { described_class.new }
  87. let(:target_url) { 'http://ex.lo/' }
  88. let(:parsed_options) { rspec_parsed_options(cli_args) }
  89. let(:cli_args) { "--url #{target_url}" }
  90.  
  91. before do
  92. WPScan::Browser.reset
  93. described_class.parsed_options = parsed_options
  94. end
  95.  
  96. NameError:
  97. uninitialized constant WPScan
  98. # ./spec/app/controllers/aliases_spec.rb:1:in `<top (required)>'
  99.  
  100. An error occurred while loading ./spec/app/controllers/core_spec.rb.
  101. Failure/Error:
  102. describe WPScan::Controller::Core do
  103. subject(:core) { described_class.new }
  104. let(:target_url) { 'http://ex.lo/' }
  105. let(:parsed_options) { rspec_parsed_options(cli_args) }
  106. let(:cli_args) { "--url #{target_url}" }
  107.  
  108. before do
  109. WPScan::Browser.reset
  110. described_class.reset
  111. described_class.parsed_options = parsed_options
  112.  
  113. NameError:
  114. uninitialized constant WPScan
  115. # ./spec/app/controllers/core_spec.rb:1:in `<top (required)>'
  116.  
  117. An error occurred while loading ./spec/app/controllers/custom_directories_spec.rb.
  118. Failure/Error:
  119. describe WPScan::Controller::CustomDirectories do
  120. subject(:controller) { described_class.new }
  121. let(:target_url) { 'http://ex.lo/' }
  122. let(:parsed_options) { rspec_parsed_options(cli_args) }
  123. let(:cli_args) { "--url #{target_url}" }
  124.  
  125. before do
  126. WPScan::Browser.reset
  127. described_class.parsed_options = parsed_options
  128. end
  129.  
  130. NameError:
  131. uninitialized constant WPScan
  132. # ./spec/app/controllers/custom_directories_spec.rb:1:in `<top (required)>'
  133.  
  134. An error occurred while loading ./spec/app/controllers/enumeration_spec.rb.
  135. Failure/Error:
  136. describe WPScan::Controller::Enumeration do
  137. subject(:controller) { described_class.new }
  138. let(:target_url) { 'http://wp.lab/' }
  139. let(:parsed_options) { rspec_parsed_options(cli_args) }
  140. let(:cli_args) { "--url #{target_url}" }
  141.  
  142. before do
  143. WPScan::Browser.reset
  144.  
  145. ## For the --passwords options
  146.  
  147. NameError:
  148. uninitialized constant WPScan
  149. # ./spec/app/controllers/enumeration_spec.rb:1:in `<top (required)>'
  150.  
  151. An error occurred while loading ./spec/app/controllers/password_attack_spec.rb.
  152. Failure/Error:
  153. describe WPScan::Controller::PasswordAttack do
  154. subject(:controller) { described_class.new }
  155. let(:target_url) { 'http://ex.lo/' }
  156. let(:parsed_options) { rspec_parsed_options(cli_args) }
  157. let(:cli_args) { "--url #{target_url}" }
  158.  
  159. before do
  160. WPScan::Browser.reset
  161. described_class.parsed_options = parsed_options
  162. end
  163.  
  164. NameError:
  165. uninitialized constant WPScan
  166. # ./spec/app/controllers/password_attack_spec.rb:1:in `<top (required)>'
  167.  
  168. An error occurred while loading ./spec/app/controllers/wp_version_spec.rb.
  169. Failure/Error:
  170. describe WPScan::Finders::WpVersionFinders do
  171. subject(:finders) { described_class.new }
  172.  
  173. describe 'filter_findings' do
  174. context 'when super returns false (nothing found)' do
  175. before do
  176. expect_any_instance_of(WPScan::Finders::UniqueFinders).to receive(:filter_findings).and_return(false)
  177. end
  178.  
  179. its(:filter_findings) { should be false }
  180.  
  181. NameError:
  182. uninitialized constant WPScan
  183. # ./spec/app/controllers/wp_version_spec.rb:8:in `<top (required)>'
  184.  
  185. An error occurred while loading ./spec/app/finders/config_backups/known_filenames_spec.rb.
  186. Failure/Error:
  187. describe WPScan::Finders::ConfigBackups::KnownFilenames do
  188. subject(:finder) { described_class.new(target) }
  189. let(:target) { WPScan::Target.new(url) }
  190. let(:url) { 'http://ex.lo/' }
  191. let(:fixtures) { FINDERS_FIXTURES.join('config_backups') }
  192. let(:opts) { { list: WPScan::DB_DIR.join('config_backups.txt').to_s } }
  193.  
  194. describe '#aggressive' do
  195. before do
  196. expect(target).to receive(:sub_dir).at_least(1).and_return(false)
  197.  
  198. NameError:
  199. uninitialized constant WPScan
  200. # ./spec/app/finders/config_backups/known_filenames_spec.rb:1:in `<top (required)>'
  201.  
  202. An error occurred while loading ./spec/app/finders/config_backups_spec.rb.
  203. Failure/Error:
  204. describe WPScan::Finders::ConfigBackups::Base do
  205. subject(:config_backups) { described_class.new(target) }
  206. let(:target) { WPScan::Target.new(url) }
  207. let(:url) { 'http://ex.lo/' }
  208.  
  209. describe '#finders' do
  210. it 'contains the expected finders' do
  211. expect(config_backups.finders.map { |f| f.class.to_s.demodulize }).to eq %w[KnownFilenames]
  212. end
  213. end
  214.  
  215. NameError:
  216. uninitialized constant WPScan
  217. # ./spec/app/finders/config_backups_spec.rb:1:in `<top (required)>'
  218.  
  219. An error occurred while loading ./spec/app/finders/db_exports/known_locations_spec.rb.
  220. Failure/Error:
  221. describe WPScan::Finders::DbExports::KnownLocations do
  222. subject(:finder) { described_class.new(target) }
  223. let(:target) { WPScan::Target.new(url) }
  224. let(:url) { 'http://ex.lo/aa/' }
  225. let(:fixtures) { FINDERS_FIXTURES.join('db_exports') }
  226. let(:opts) { { list: WPScan::DB_DIR.join('db_exports.txt').to_s } }
  227.  
  228. describe '#potential_urls' do
  229. before do
  230. expect(target).to receive(:sub_dir).at_least(1).and_return(false)
  231.  
  232. NameError:
  233. uninitialized constant WPScan
  234. # ./spec/app/finders/db_exports/known_locations_spec.rb:1:in `<top (required)>'
  235.  
  236. An error occurred while loading ./spec/app/finders/db_exports_spec.rb.
  237. Failure/Error:
  238. describe WPScan::Finders::DbExports::Base do
  239. subject(:db_exports) { described_class.new(target) }
  240. let(:target) { WPScan::Target.new(url) }
  241. let(:url) { 'http://ex.lo/' }
  242.  
  243. describe '#finders' do
  244. it 'contains the expected finders' do
  245. expect(db_exports.finders.map { |f| f.class.to_s.demodulize }).to eq %w[KnownLocations]
  246. end
  247. end
  248.  
  249. NameError:
  250. uninitialized constant WPScan
  251. # ./spec/app/finders/db_exports_spec.rb:1:in `<top (required)>'
  252.  
  253. An error occurred while loading ./spec/app/finders/interesting_findings/backup_db_spec.rb.
  254. Failure/Error:
  255. describe WPScan::Finders::InterestingFindings::BackupDB do
  256. subject(:finder) { described_class.new(target) }
  257. let(:target) { WPScan::Target.new(url).extend(CMSScanner::Target::Server::Apache) }
  258. let(:url) { 'http://ex.lo/' }
  259. let(:fixtures) { FINDERS_FIXTURES.join('interesting_findings', 'backup_db') }
  260. let(:wp_content) { 'wp-content' }
  261. let(:dir_url) { target.url("#{wp_content}/backup-db/") }
  262.  
  263. before { expect(target).to receive(:content_dir).at_least(1).and_return(wp_content) }
  264.  
  265.  
  266. NameError:
  267. uninitialized constant WPScan
  268. # ./spec/app/finders/interesting_findings/backup_db_spec.rb:1:in `<top (required)>'
  269.  
  270. An error occurred while loading ./spec/app/finders/interesting_findings/debug_log_spec.rb.
  271. Failure/Error:
  272. describe WPScan::Finders::InterestingFindings::DebugLog do
  273. subject(:finder) { described_class.new(target) }
  274. let(:target) { WPScan::Target.new(url) }
  275. let(:url) { 'http://ex.lo/' }
  276. let(:fixtures) { FINDERS_FIXTURES.join('interesting_findings', 'debug_log') }
  277. let(:wp_content) { 'wp-content' }
  278. let(:log_url) { target.url("#{wp_content}/debug.log") }
  279.  
  280. before { expect(target).to receive(:content_dir).at_least(1).and_return(wp_content) }
  281.  
  282.  
  283. NameError:
  284. uninitialized constant WPScan
  285. # ./spec/app/finders/interesting_findings/debug_log_spec.rb:1:in `<top (required)>'
  286.  
  287. An error occurred while loading ./spec/app/finders/interesting_findings/duplicator_installer_log_spec.rb.
  288. Failure/Error:
  289. describe WPScan::Finders::InterestingFindings::DuplicatorInstallerLog do
  290. subject(:finder) { described_class.new(target) }
  291. let(:target) { WPScan::Target.new(url).extend(CMSScanner::Target::Server::Apache) }
  292. let(:url) { 'http://ex.lo/' }
  293. let(:fixtures) { FINDERS_FIXTURES.join('interesting_findings', 'duplicator_installer_log') }
  294. let(:filename) { 'installer-log.txt' }
  295. let(:log_url) { target.url(filename) }
  296.  
  297. describe '#aggressive' do
  298. before do
  299.  
  300. NameError:
  301. uninitialized constant WPScan
  302. # ./spec/app/finders/interesting_findings/duplicator_installer_log_spec.rb:1:in `<top (required)>'
  303.  
  304. An error occurred while loading ./spec/app/finders/interesting_findings/emergency_pwd_reset_script_spec.rb.
  305. Failure/Error:
  306. describe WPScan::Finders::InterestingFindings::EmergencyPwdResetScript do
  307. subject(:finder) { described_class.new(target) }
  308. let(:target) { WPScan::Target.new(url).extend(CMSScanner::Target::Server::Apache) }
  309. let(:url) { 'http://ex.lo/' }
  310. let(:fixtures) { FINDERS_FIXTURES.join('interesting_findings', 'emergency_pwd_reset_script') }
  311.  
  312. describe '#aggressive' do
  313. xit
  314. end
  315. end
  316.  
  317. NameError:
  318. uninitialized constant WPScan
  319. # ./spec/app/finders/interesting_findings/emergency_pwd_reset_script_spec.rb:1:in `<top (required)>'
  320.  
  321. An error occurred while loading ./spec/app/finders/interesting_findings/full_path_disclosure_spec.rb.
  322. Failure/Error:
  323. describe WPScan::Finders::InterestingFindings::FullPathDisclosure do
  324. subject(:finder) { described_class.new(target) }
  325. let(:target) { WPScan::Target.new(url) }
  326. let(:url) { 'http://ex.lo/' }
  327. let(:fixtures) { FINDERS_FIXTURES.join('interesting_findings', 'fpd') }
  328. let(:file_url) { target.url('wp-includes/rss-functions.php') }
  329.  
  330. describe '#aggressive' do
  331. before do
  332. expect(target).to receive(:sub_dir).at_least(1).and_return(false)
  333.  
  334. NameError:
  335. uninitialized constant WPScan
  336. # ./spec/app/finders/interesting_findings/full_path_disclosure_spec.rb:1:in `<top (required)>'
  337.  
  338. An error occurred while loading ./spec/app/finders/interesting_findings/mu_plugins_spec.rb.
  339. Failure/Error:
  340. describe WPScan::Finders::InterestingFindings::MuPlugins do
  341. subject(:finder) { described_class.new(target) }
  342. let(:target) { WPScan::Target.new(url).extend(CMSScanner::Target::Server::Apache) }
  343. let(:url) { 'http://ex.lo/' }
  344. let(:fixtures) { FINDERS_FIXTURES.join('interesting_findings', 'mu_plugins') }
  345.  
  346. describe '#passive' do
  347. xit
  348. end
  349.  
  350.  
  351. NameError:
  352. uninitialized constant WPScan
  353. # ./spec/app/finders/interesting_findings/mu_plugins_spec.rb:1:in `<top (required)>'
  354.  
  355. An error occurred while loading ./spec/app/finders/interesting_findings/multisite_spec.rb.
  356. Failure/Error:
  357. describe WPScan::Finders::InterestingFindings::Multisite do
  358. subject(:finder) { described_class.new(target) }
  359. let(:target) { WPScan::Target.new(url).extend(CMSScanner::Target::Server::Apache) }
  360. let(:url) { 'http://ex.lo/' }
  361. let(:fixtures) { FINDERS_FIXTURES.join('interesting_findings', 'multisite') }
  362.  
  363. describe '#aggressive' do
  364. xit
  365. end
  366. end
  367.  
  368. NameError:
  369. uninitialized constant WPScan
  370. # ./spec/app/finders/interesting_findings/multisite_spec.rb:1:in `<top (required)>'
  371.  
  372. An error occurred while loading ./spec/app/finders/interesting_findings/readme_spec.rb.
  373. Failure/Error:
  374. describe WPScan::Finders::InterestingFindings::Readme do
  375. subject(:finder) { described_class.new(target) }
  376. let(:target) { WPScan::Target.new(url) }
  377. let(:url) { 'http://ex.lo/' }
  378. let(:fixtures) { FINDERS_FIXTURES.join('interesting_findings', 'readme') }
  379.  
  380. describe '#aggressive' do
  381. before do
  382. expect(target).to receive(:sub_dir).at_least(1).and_return(false)
  383.  
  384.  
  385. NameError:
  386. uninitialized constant WPScan
  387. # ./spec/app/finders/interesting_findings/readme_spec.rb:1:in `<top (required)>'
  388.  
  389. An error occurred while loading ./spec/app/finders/interesting_findings/registration_spec.rb.
  390. Failure/Error:
  391. describe WPScan::Finders::InterestingFindings::Registration do
  392. subject(:finder) { described_class.new(target) }
  393. let(:target) { WPScan::Target.new(url).extend(CMSScanner::Target::Server::Apache) }
  394. let(:url) { 'http://ex.lo/' }
  395. let(:fixtures) { FINDERS_FIXTURES.join('interesting_findings', 'registration') }
  396.  
  397. describe '#aggressive' do
  398. xit
  399. end
  400. end
  401.  
  402. NameError:
  403. uninitialized constant WPScan
  404. # ./spec/app/finders/interesting_findings/registration_spec.rb:1:in `<top (required)>'
  405.  
  406. An error occurred while loading ./spec/app/finders/interesting_findings/tmm_db_migrate_spec.rb.
  407. Failure/Error:
  408. describe WPScan::Finders::InterestingFindings::TmmDbMigrate do
  409. subject(:finder) { described_class.new(target) }
  410. let(:target) { WPScan::Target.new(url).extend(CMSScanner::Target::Server::Apache) }
  411. let(:url) { 'http://ex.lo/' }
  412. let(:fixtures) { FINDERS_FIXTURES.join('interesting_findings', 'tmm_db_migrate') }
  413.  
  414. describe '#aggressive' do
  415. xit
  416. end
  417. end
  418.  
  419. NameError:
  420. uninitialized constant WPScan
  421. # ./spec/app/finders/interesting_findings/tmm_db_migrate_spec.rb:1:in `<top (required)>'
  422.  
  423. An error occurred while loading ./spec/app/finders/interesting_findings/upload_direcrory_listing_spec.rb.
  424. Failure/Error:
  425. describe WPScan::Finders::InterestingFindings::UploadDirectoryListing do
  426. subject(:finder) { described_class.new(target) }
  427. let(:target) { WPScan::Target.new(url).extend(CMSScanner::Target::Server::Apache) }
  428. let(:url) { 'http://ex.lo/' }
  429. let(:fixtures) { FINDERS_FIXTURES.join('interesting_findings', 'upload_directory_listing') }
  430. let(:wp_content) { 'wp-content' }
  431.  
  432. describe '#aggressive' do
  433. xit
  434. end
  435.  
  436. NameError:
  437. uninitialized constant WPScan
  438. # ./spec/app/finders/interesting_findings/upload_direcrory_listing_spec.rb:1:in `<top (required)>'
  439.  
  440. An error occurred while loading ./spec/app/finders/interesting_findings/upload_sql_dump_spec.rb.
  441. Failure/Error:
  442. describe WPScan::Finders::InterestingFindings::UploadSQLDump do
  443. subject(:finder) { described_class.new(target) }
  444. let(:target) { WPScan::Target.new(url).extend(CMSScanner::Target::Server::Apache) }
  445. let(:url) { 'http://ex.lo/' }
  446. let(:fixtures) { FINDERS_FIXTURES.join('interesting_findings', 'upload_sql_dump') }
  447. let(:wp_content) { 'wp-content' }
  448.  
  449. describe '#aggressive' do
  450. before { expect(target).to receive(:content_dir).at_least(1).and_return(wp_content) }
  451.  
  452.  
  453. NameError:
  454. uninitialized constant WPScan
  455. # ./spec/app/finders/interesting_findings/upload_sql_dump_spec.rb:1:in `<top (required)>'
  456.  
  457. An error occurred while loading ./spec/app/finders/interesting_findings_spec.rb.
  458. Failure/Error:
  459. describe WPScan::Finders::InterestingFindings::Base do
  460. subject(:files) { described_class.new(target) }
  461. let(:target) { WPScan::Target.new(url) }
  462. let(:url) { 'http://ex.lo/' }
  463.  
  464. describe '#finders' do
  465. let(:expected) do
  466. %w[
  467. Readme DebugLog FullPathDisclosure
  468. Multisite MuPlugins Registration UploadDirectoryListing TmmDbMigrate
  469.  
  470. NameError:
  471. uninitialized constant WPScan
  472. # ./spec/app/finders/interesting_findings_spec.rb:1:in `<top (required)>'
  473.  
  474. An error occurred while loading ./spec/app/finders/main_theme/css_style_spec.rb.
  475. Failure/Error:
  476. describe WPScan::Finders::MainTheme::CssStyle do
  477. subject(:finder) { described_class.new(target) }
  478. let(:target) { WPScan::Target.new(url).extend(CMSScanner::Target::Server::Apache) }
  479. let(:url) { 'http://wp.lab/' }
  480. let(:fixtures) { FINDERS_FIXTURES.join('main_theme', 'css_style') }
  481.  
  482. describe '#passive' do
  483. after do
  484. stub_request(:get, url).to_return(body: File.read(fixtures.join(fixture)))
  485. expect(finder.passive).to eql @expected
  486.  
  487. NameError:
  488. uninitialized constant WPScan
  489. # ./spec/app/finders/main_theme/css_style_spec.rb:1:in `<top (required)>'
  490.  
  491. An error occurred while loading ./spec/app/finders/main_theme/urls_in_homepage_spec.rb.
  492. Failure/Error:
  493. describe WPScan::Finders::MainTheme::UrlsInHomepage do
  494. subject(:finder) { described_class.new(target) }
  495. let(:target) { WPScan::Target.new(url) }
  496. let(:url) { 'http://wp.lab/' }
  497. let(:fixtures) { FINDERS_FIXTURES.join('main_theme', 'urls_in_homepage') }
  498.  
  499. it_behaves_like 'App::Finders::WpItems::URLsInHomepage' do
  500. let(:type) { 'themes' }
  501. let(:uniq_links) { false }
  502. let(:uniq_codes) { false }
  503.  
  504. NameError:
  505. uninitialized constant WPScan
  506. # ./spec/app/finders/main_theme/urls_in_homepage_spec.rb:1:in `<top (required)>'
  507.  
  508. An error occurred while loading ./spec/app/finders/main_theme/woo_framework_meta_generator_spec.rb.
  509. Failure/Error:
  510. describe WPScan::Finders::MainTheme::WooFrameworkMetaGenerator do
  511. subject(:finder) { described_class.new(target) }
  512. let(:target) { WPScan::Target.new(url).extend(CMSScanner::Target::Server::Apache) }
  513. let(:url) { 'http://wp.lab/' }
  514. let(:fixtures) { FINDERS_FIXTURES.join('main_theme', 'woo_framework_meta_generator') }
  515.  
  516. describe '#passive' do
  517. after do
  518. stub_request(:get, url).to_return(body: File.read(fixtures.join(@file)))
  519.  
  520.  
  521. NameError:
  522. uninitialized constant WPScan
  523. # ./spec/app/finders/main_theme/woo_framework_meta_generator_spec.rb:1:in `<top (required)>'
  524.  
  525. An error occurred while loading ./spec/app/finders/main_theme_spec.rb.
  526. Failure/Error:
  527. describe WPScan::Finders::MainTheme::Base do
  528. subject(:main_theme) { described_class.new(target) }
  529. let(:target) { WPScan::Target.new(url) }
  530. let(:url) { 'http://ex.lo/' }
  531.  
  532. describe '#finders' do
  533. it 'contains the expected finders' do
  534. expect(main_theme.finders.map { |f| f.class.to_s.demodulize })
  535. .to eq %w[CssStyle WooFrameworkMetaGenerator UrlsInHomepage]
  536. end
  537.  
  538. NameError:
  539. uninitialized constant WPScan
  540. # ./spec/app/finders/main_theme_spec.rb:1:in `<top (required)>'
  541.  
  542. An error occurred while loading ./spec/app/finders/medias/attachment_brute_forcing_spec.rb.
  543. Failure/Error:
  544. describe WPScan::Finders::Medias::AttachmentBruteForcing do
  545. subject(:finder) { described_class.new(target) }
  546. let(:target) { WPScan::Target.new(url) }
  547. let(:url) { 'http://ex.lo/' }
  548. let(:fixtures) { FINDERS_FIXTURES.join('medias', 'attachment_brute_forcing') }
  549.  
  550. describe '#aggressive' do
  551. xit
  552. end
  553.  
  554.  
  555. NameError:
  556. uninitialized constant WPScan
  557. # ./spec/app/finders/medias/attachment_brute_forcing_spec.rb:1:in `<top (required)>'
  558.  
  559. An error occurred while loading ./spec/app/finders/medias_spec.rb.
  560. Failure/Error:
  561. describe WPScan::Finders::Medias::Base do
  562. subject(:media) { described_class.new(target) }
  563. let(:target) { WPScan::Target.new(url) }
  564. let(:url) { 'http://ex.lo/' }
  565.  
  566. describe '#finders' do
  567. it 'contains the expected finders' do
  568. expect(media.finders.map { |f| f.class.to_s.demodulize }).to eq %w[AttachmentBruteForcing]
  569. end
  570. end
  571.  
  572. NameError:
  573. uninitialized constant WPScan
  574. # ./spec/app/finders/medias_spec.rb:1:in `<top (required)>'
  575.  
  576. An error occurred while loading ./spec/app/finders/plugin_version/readme_spec.rb.
  577. Failure/Error:
  578. describe WPScan::Finders::PluginVersion::Readme do
  579. subject(:finder) { described_class.new(plugin) }
  580. let(:plugin) { WPScan::Plugin.new('spec', target) }
  581. let(:target) { WPScan::Target.new('http://wp.lab/') }
  582. let(:fixtures) { FINDERS_FIXTURES.join('plugin_version', 'readme') }
  583.  
  584. def version(number, found_by, confidence)
  585. WPScan::Version.new(
  586. number,
  587. found_by: format('Readme - %s (Aggressive Detection)', found_by),
  588.  
  589. NameError:
  590. uninitialized constant WPScan
  591. # ./spec/app/finders/plugin_version/readme_spec.rb:1:in `<top (required)>'
  592.  
  593. An error occurred while loading ./spec/app/finders/plugin_version_spec.rb.
  594. Failure/Error:
  595. describe WPScan::Finders::PluginVersion::Base do
  596. subject(:plugin_version) { described_class.new(plugin) }
  597. let(:plugin) { WPScan::Plugin.new(slug, target) }
  598. let(:target) { WPScan::Target.new('http://wp.lab/') }
  599. let(:default_finders) { %w[Readme] }
  600.  
  601. describe '#finders' do
  602. after do
  603. expect(target).to receive(:content_dir).and_return('wp-content')
  604. expect(plugin_version.finders.map { |f| f.class.to_s.demodulize }).to match_array @expected
  605.  
  606. NameError:
  607. uninitialized constant WPScan
  608. # ./spec/app/finders/plugin_version_spec.rb:4:in `<top (required)>'
  609.  
  610. An error occurred while loading ./spec/app/finders/plugins/body_pattern_spec.rb.
  611. Failure/Error:
  612. describe WPScan::Finders::Plugins::BodyPattern do
  613. it_behaves_like WPScan::Finders::DynamicFinder::WpItems::Finder do
  614. subject(:finder) { described_class.new(target) }
  615. let(:target) { WPScan::Target.new(url) }
  616. let(:url) { 'http://wp.lab/' }
  617. let(:fixtures) { DYNAMIC_FINDERS_FIXTURES.join('plugin_version') }
  618.  
  619. let(:expected_all) { df_expected_all['plugins'] }
  620. let(:item_class) { WPScan::Plugin }
  621. end
  622.  
  623. NameError:
  624. uninitialized constant WPScan
  625. # ./spec/app/finders/plugins/body_pattern_spec.rb:1:in `<top (required)>'
  626.  
  627. An error occurred while loading ./spec/app/finders/plugins/comment_spec.rb.
  628. Failure/Error:
  629. describe WPScan::Finders::Plugins::Comment do
  630. it_behaves_like WPScan::Finders::DynamicFinder::WpItems::Finder do
  631. subject(:finder) { described_class.new(target) }
  632. let(:target) { WPScan::Target.new(url) }
  633. let(:url) { 'http://wp.lab/' }
  634. let(:fixtures) { DYNAMIC_FINDERS_FIXTURES.join('plugin_version') }
  635.  
  636. let(:expected_all) { df_expected_all['plugins'] }
  637. let(:item_class) { WPScan::Plugin }
  638. end
  639.  
  640. NameError:
  641. uninitialized constant WPScan
  642. # ./spec/app/finders/plugins/comment_spec.rb:1:in `<top (required)>'
  643.  
  644. An error occurred while loading ./spec/app/finders/plugins/config_parser_spec.rb.
  645. Failure/Error:
  646. describe WPScan::Finders::Plugins::ConfigParser do
  647. xit
  648.  
  649. # it_behaves_like WPScan::Finders::DynamicFinder::WpItems::Finder do
  650. # subject(:finder) { described_class.new(target) }
  651. # let(:target) { WPScan::Target.new(url) }
  652. # let(:url) { 'http://wp.lab/' }
  653. # let(:fixtures) { DYNAMIC_FINDERS_FIXTURES.join('plugin_version') }
  654. #
  655. # let(:expected_all) { df_expected_all['plugins'] }
  656.  
  657. NameError:
  658. uninitialized constant WPScan
  659. # ./spec/app/finders/plugins/config_parser_spec.rb:1:in `<top (required)>'
  660.  
  661. An error occurred while loading ./spec/app/finders/plugins/header_pattern_spec.rb.
  662. Failure/Error:
  663. describe WPScan::Finders::Plugins::HeaderPattern do
  664. subject(:finder) { described_class.new(target) }
  665. let(:target) { WPScan::Target.new(url) }
  666. let(:url) { 'http://wp.lab/' }
  667. let(:fixtures) { DYNAMIC_FINDERS_FIXTURES.join('plugin_version') }
  668.  
  669. def plugin(slug)
  670. WPScan::Plugin.new(slug, target)
  671. end
  672.  
  673.  
  674. NameError:
  675. uninitialized constant WPScan
  676. # ./spec/app/finders/plugins/header_pattern_spec.rb:1:in `<top (required)>'
  677.  
  678. An error occurred while loading ./spec/app/finders/plugins/javascript_var_spec.rb.
  679. Failure/Error:
  680. describe WPScan::Finders::Plugins::JavascriptVar do
  681. it_behaves_like WPScan::Finders::DynamicFinder::WpItems::Finder do
  682. subject(:finder) { described_class.new(target) }
  683. let(:target) { WPScan::Target.new(url) }
  684. let(:url) { 'http://wp.lab/' }
  685. let(:fixtures) { DYNAMIC_FINDERS_FIXTURES.join('plugin_version') }
  686.  
  687. let(:expected_all) { df_expected_all['plugins'] }
  688. let(:item_class) { WPScan::Plugin }
  689. end
  690.  
  691. NameError:
  692. uninitialized constant WPScan
  693. # ./spec/app/finders/plugins/javascript_var_spec.rb:1:in `<top (required)>'
  694.  
  695. An error occurred while loading ./spec/app/finders/plugins/known_locations_spec.rb.
  696. Failure/Error:
  697. describe WPScan::Finders::Plugins::KnownLocations do
  698. subject(:finder) { described_class.new(target) }
  699. let(:target) { WPScan::Target.new(url) }
  700. let(:url) { 'http://ex.lo/' }
  701. let(:fixtures) { FINDERS_FIXTURES.join('plugins', 'known_locations') }
  702.  
  703. describe '#aggressive' do
  704. xit
  705. end
  706. end
  707.  
  708. NameError:
  709. uninitialized constant WPScan
  710. # ./spec/app/finders/plugins/known_locations_spec.rb:1:in `<top (required)>'
  711.  
  712. An error occurred while loading ./spec/app/finders/plugins/query_parameter_spec.rb.
  713. Failure/Error:
  714. describe WPScan::Finders::Plugins::QueryParameter do
  715. subject(:finder) { described_class.new(target) }
  716. let(:target) { WPScan::Target.new(url) }
  717. let(:url) { 'http://wp.lab/' }
  718. let(:fixtures) { DYNAMIC_FINDERS_FIXTURES.join('plugin_version') }
  719.  
  720. describe '#passive' do
  721. its(:passive) { should be nil }
  722. end
  723.  
  724.  
  725. NameError:
  726. uninitialized constant WPScan
  727. # ./spec/app/finders/plugins/query_parameter_spec.rb:1:in `<top (required)>'
  728.  
  729. An error occurred while loading ./spec/app/finders/plugins/urls_in_homepage_spec.rb.
  730. Failure/Error:
  731. describe WPScan::Finders::Plugins::UrlsInHomepage do
  732. subject(:finder) { described_class.new(target) }
  733. let(:target) { WPScan::Target.new(url) }
  734. let(:url) { 'http://wp.lab/' }
  735. let(:fixtures) { FINDERS_FIXTURES.join('plugins', 'urls_in_homepage') }
  736.  
  737. it_behaves_like 'App::Finders::WpItems::URLsInHomepage' do
  738. let(:type) { 'plugins' }
  739. let(:uniq_links) { true }
  740. let(:uniq_codes) { true }
  741.  
  742. NameError:
  743. uninitialized constant WPScan
  744. # ./spec/app/finders/plugins/urls_in_homepage_spec.rb:1:in `<top (required)>'
  745.  
  746. An error occurred while loading ./spec/app/finders/plugins/xpath_spec.rb.
  747. Failure/Error:
  748. describe WPScan::Finders::Plugins::Xpath do
  749. it_behaves_like WPScan::Finders::DynamicFinder::WpItems::Finder do
  750. subject(:finder) { described_class.new(target) }
  751. let(:target) { WPScan::Target.new(url) }
  752. let(:url) { 'http://wp.lab/' }
  753. let(:fixtures) { DYNAMIC_FINDERS_FIXTURES.join('plugin_version') }
  754.  
  755. let(:expected_all) { df_expected_all['plugins'] }
  756. let(:item_class) { WPScan::Plugin }
  757. end
  758.  
  759. NameError:
  760. uninitialized constant WPScan
  761. # ./spec/app/finders/plugins/xpath_spec.rb:1:in `<top (required)>'
  762.  
  763. An error occurred while loading ./spec/app/finders/plugins_spec.rb.
  764. Failure/Error:
  765. describe WPScan::Finders::Plugins::Base do
  766. subject(:plugins) { described_class.new(target) }
  767. let(:target) { WPScan::Target.new(url) }
  768. let(:url) { 'http://ex.lo/' }
  769.  
  770. describe '#finders' do
  771. it 'contains the expected finders' do
  772. expect(plugins.finders.map { |f| f.class.to_s.demodulize })
  773. .to eq %w[UrlsInHomepage HeaderPattern Comment Xpath BodyPattern JavascriptVar KnownLocations]
  774. end
  775.  
  776. NameError:
  777. uninitialized constant WPScan
  778. # ./spec/app/finders/plugins_spec.rb:1:in `<top (required)>'
  779.  
  780. An error occurred while loading ./spec/app/finders/theme_version/style_spec.rb.
  781. Failure/Error:
  782. describe WPScan::Finders::ThemeVersion::Style do
  783. subject(:finder) { described_class.new(theme) }
  784. let(:theme) { WPScan::Theme.new('spec', target) }
  785. let(:target) { WPScan::Target.new('http://wp.lab/') }
  786. let(:fixtures) { FINDERS_FIXTURES.join('theme_version', 'style') }
  787.  
  788. before :all do
  789. Typhoeus::Config.cache = WPScan::Cache::Typhoeus.new(SPECS.join('cache'))
  790. end
  791.  
  792.  
  793. NameError:
  794. uninitialized constant WPScan
  795. # ./spec/app/finders/theme_version/style_spec.rb:1:in `<top (required)>'
  796.  
  797. An error occurred while loading ./spec/app/finders/theme_version/woo_framework_meta_generator_spec.rb.
  798. Failure/Error:
  799. describe WPScan::Finders::ThemeVersion::WooFrameworkMetaGenerator do
  800. subject(:finder) { described_class.new(theme) }
  801. let(:theme) { WPScan::Theme.new(slug, target) }
  802. let(:target) { WPScan::Target.new('http://wp.lab/') }
  803. let(:fixtures) { FINDERS_FIXTURES.join('theme_version', 'woo_framework_meta_generator') }
  804.  
  805. before do
  806. expect(target).to receive(:content_dir).and_return('wp-content')
  807. stub_request(:get, /\.css\z/)
  808. end
  809.  
  810. NameError:
  811. uninitialized constant WPScan
  812. # ./spec/app/finders/theme_version/woo_framework_meta_generator_spec.rb:1:in `<top (required)>'
  813.  
  814. An error occurred while loading ./spec/app/finders/theme_version_spec.rb.
  815. Failure/Error:
  816. describe WPScan::Finders::ThemeVersion::Base do
  817. subject(:theme_version) { described_class.new(theme) }
  818. let(:theme) { WPScan::Plugin.new(slug, target) }
  819. let(:target) { WPScan::Target.new('http://wp.lab/') }
  820. let(:slug) { 'spec' }
  821. let(:default_finders) { %w[Style WooFrameworkMetaGenerator] }
  822.  
  823. describe '#finders' do
  824. after do
  825. expect(target).to receive(:content_dir).and_return('wp-content')
  826.  
  827. NameError:
  828. uninitialized constant WPScan
  829. # ./spec/app/finders/theme_version_spec.rb:1:in `<top (required)>'
  830.  
  831. An error occurred while loading ./spec/app/finders/themes/known_locations_spec.rb.
  832. Failure/Error:
  833. describe WPScan::Finders::Themes::KnownLocations do
  834. subject(:finder) { described_class.new(target) }
  835. let(:target) { WPScan::Target.new(url) }
  836. let(:url) { 'http://ex.lo/' }
  837. let(:fixtures) { FINDERS_FIXTURES.join('themes', 'known_locations') }
  838.  
  839. describe '#aggressive' do
  840. xit
  841. end
  842. end
  843.  
  844. NameError:
  845. uninitialized constant WPScan
  846. # ./spec/app/finders/themes/known_locations_spec.rb:1:in `<top (required)>'
  847.  
  848. An error occurred while loading ./spec/app/finders/themes/urls_in_homepage_spec.rb.
  849. Failure/Error:
  850. describe WPScan::Finders::Themes::UrlsInHomepage do
  851. subject(:finder) { described_class.new(target) }
  852. let(:target) { WPScan::Target.new(url) }
  853. let(:url) { 'http://wp.lab/' }
  854. let(:fixtures) { FINDERS_FIXTURES.join('themes', 'urls_in_homepage') }
  855.  
  856. it_behaves_like 'App::Finders::WpItems::URLsInHomepage' do
  857. let(:type) { 'themes' }
  858. let(:uniq_links) { true }
  859. let(:uniq_codes) { true }
  860.  
  861. NameError:
  862. uninitialized constant WPScan
  863. # ./spec/app/finders/themes/urls_in_homepage_spec.rb:1:in `<top (required)>'
  864.  
  865. An error occurred while loading ./spec/app/finders/themes_spec.rb.
  866. Failure/Error:
  867. describe WPScan::Finders::Themes::Base do
  868. subject(:themes) { described_class.new(target) }
  869. let(:target) { WPScan::Target.new(url) }
  870. let(:url) { 'http://ex.lo/' }
  871.  
  872. describe '#finders' do
  873. it 'contains the expected finders' do
  874. expect(themes.finders.map { |f| f.class.to_s.demodulize })
  875. .to eq %w[UrlsInHomepage KnownLocations]
  876. end
  877.  
  878. NameError:
  879. uninitialized constant WPScan
  880. # ./spec/app/finders/themes_spec.rb:1:in `<top (required)>'
  881.  
  882. An error occurred while loading ./spec/app/finders/timthumb_version/bad_request_spec.rb.
  883. Failure/Error:
  884. describe WPScan::Finders::TimthumbVersion::BadRequest do
  885. subject(:finder) { described_class.new(target) }
  886. let(:target) { WPScan::Timthumb.new(url) }
  887. let(:url) { 'http://ex.lo/timthumb.php' }
  888. let(:fixtures) { FINDERS_FIXTURES.join('timthumb_version', 'bad_request') }
  889.  
  890. describe '#aggressive' do
  891. before { stub_request(:get, url).to_return(body: File.read(fixtures.join(file))) }
  892. after { expect(finder.aggressive).to eql @expected }
  893.  
  894.  
  895. NameError:
  896. uninitialized constant WPScan
  897. # ./spec/app/finders/timthumb_version/bad_request_spec.rb:1:in `<top (required)>'
  898.  
  899. An error occurred while loading ./spec/app/finders/timthumb_version_spec.rb.
  900. Failure/Error:
  901. describe WPScan::Finders::TimthumbVersion::Base do
  902. subject(:timthumb_version) { described_class.new(target) }
  903. let(:target) { WPScan::Timthumb.new(url) }
  904. let(:url) { 'http://ex.lo/timthumb.php' }
  905.  
  906. describe '#finders' do
  907. it 'contains the expected finders' do
  908. expect(timthumb_version.finders.map { |f| f.class.to_s.demodulize }).to eq %w[BadRequest]
  909. end
  910. end
  911.  
  912. NameError:
  913. uninitialized constant WPScan
  914. # ./spec/app/finders/timthumb_version_spec.rb:1:in `<top (required)>'
  915.  
  916. An error occurred while loading ./spec/app/finders/timthumbs/known_locations_spec.rb.
  917. Failure/Error:
  918. describe WPScan::Finders::Timthumbs::KnownLocations do
  919. subject(:finder) { described_class.new(target) }
  920. let(:target) { WPScan::Target.new(url) }
  921. let(:url) { 'http://ex.lo/' }
  922. let(:fixtures) { FINDERS_FIXTURES.join('timthumbs', 'known_locations') }
  923.  
  924. describe '#aggressive' do
  925. xit
  926. end
  927. end
  928.  
  929. NameError:
  930. uninitialized constant WPScan
  931. # ./spec/app/finders/timthumbs/known_locations_spec.rb:1:in `<top (required)>'
  932.  
  933. An error occurred while loading ./spec/app/finders/timthumbs_spec.rb.
  934. Failure/Error:
  935. describe WPScan::Finders::Timthumbs::Base do
  936. subject(:timthumb) { described_class.new(target) }
  937. let(:target) { WPScan::Target.new(url) }
  938. let(:url) { 'http://ex.lo/' }
  939.  
  940. describe '#finders' do
  941. it 'contains the expected finders' do
  942. expect(timthumb.finders.map { |f| f.class.to_s.demodulize }).to eq %w[KnownLocations]
  943. end
  944. end
  945.  
  946. NameError:
  947. uninitialized constant WPScan
  948. # ./spec/app/finders/timthumbs_spec.rb:1:in `<top (required)>'
  949.  
  950. An error occurred while loading ./spec/app/finders/users/author_id_brute_forcing_spec.rb.
  951. Failure/Error:
  952. describe WPScan::Finders::Users::AuthorIdBruteForcing do
  953. subject(:finder) { described_class.new(target) }
  954. let(:target) { WPScan::Target.new(url) }
  955. let(:url) { 'http://wp.lab/' }
  956. let(:fixtures) { FINDERS_FIXTURES.join('users', 'author_id_brute_forcing') }
  957.  
  958. describe '#aggressive' do
  959. xit
  960. end
  961.  
  962.  
  963. NameError:
  964. uninitialized constant WPScan
  965. # ./spec/app/finders/users/author_id_brute_forcing_spec.rb:1:in `<top (required)>'
  966.  
  967. An error occurred while loading ./spec/app/finders/users/author_posts_spec.rb.
  968. Failure/Error:
  969. describe WPScan::Finders::Users::AuthorPosts do
  970. subject(:finder) { described_class.new(target) }
  971. let(:target) { WPScan::Target.new(url) }
  972. let(:url) { 'http://wp.lab/' }
  973. let(:fixtures) { FINDERS_FIXTURES.join('users', 'author_posts') }
  974.  
  975. describe '#passive' do
  976. xit
  977. end
  978.  
  979.  
  980. NameError:
  981. uninitialized constant WPScan
  982. # ./spec/app/finders/users/author_posts_spec.rb:1:in `<top (required)>'
  983.  
  984. An error occurred while loading ./spec/app/finders/users/login_error_messages_spec.rb.
  985. Failure/Error:
  986. describe WPScan::Finders::Users::LoginErrorMessages do
  987. subject(:finder) { described_class.new(target) }
  988. let(:target) { WPScan::Target.new(url) }
  989. let(:url) { 'http://wp.lab/' }
  990. let(:fixtures) { FINDERS_FIXTURES.join('users', 'login_error_messages') }
  991.  
  992. describe '#aggressive' do
  993. xit
  994. end
  995.  
  996.  
  997. NameError:
  998. uninitialized constant WPScan
  999. # ./spec/app/finders/users/login_error_messages_spec.rb:1:in `<top (required)>'
  1000.  
  1001. An error occurred while loading ./spec/app/finders/users/oembed_api_spec.rb.
  1002. Failure/Error:
  1003. describe WPScan::Finders::Users::OembedApi do
  1004. subject(:finder) { described_class.new(target) }
  1005. let(:target) { WPScan::Target.new(url) }
  1006. let(:url) { 'http://wp.lab/' }
  1007. let(:fixtures) { FINDERS_FIXTURES.join('users', 'oembed_api') }
  1008.  
  1009. describe '#aggressive' do
  1010. before do
  1011. allow(target).to receive(:sub_dir).and_return(false)
  1012. stub_request(:get, finder.api_url).to_return(body: body)
  1013.  
  1014. NameError:
  1015. uninitialized constant WPScan
  1016. # ./spec/app/finders/users/oembed_api_spec.rb:1:in `<top (required)>'
  1017.  
  1018. An error occurred while loading ./spec/app/finders/users/rss_generator_spec.rb.
  1019. Failure/Error:
  1020. describe WPScan::Finders::Users::RSSGenerator do
  1021. subject(:finder) { described_class.new(target) }
  1022. let(:target) { WPScan::Target.new(url) }
  1023. let(:url) { 'http://ex.lo/' }
  1024. let(:fixtures) { FINDERS_FIXTURES.join('users', 'rss_generator') }
  1025. let(:rss_fixture) { File.read(fixtures.join('feed.xml')) }
  1026.  
  1027. describe '#passive, #aggressive' do
  1028. before do
  1029. allow(target).to receive(:sub_dir).and_return(false)
  1030.  
  1031. NameError:
  1032. uninitialized constant WPScan
  1033. # ./spec/app/finders/users/rss_generator_spec.rb:1:in `<top (required)>'
  1034.  
  1035. An error occurred while loading ./spec/app/finders/users/wp_json_api_spec.rb.
  1036. Failure/Error:
  1037. describe WPScan::Finders::Users::WpJsonApi do
  1038. subject(:finder) { described_class.new(target) }
  1039. let(:target) { WPScan::Target.new(url) }
  1040. let(:url) { 'http://wp.lab/' }
  1041. let(:fixtures) { FINDERS_FIXTURES.join('users', 'wp_json_api') }
  1042.  
  1043. describe '#aggressive' do
  1044. before { allow(target).to receive(:sub_dir).and_return(false) }
  1045.  
  1046. context 'when only one page of results' do
  1047.  
  1048. NameError:
  1049. uninitialized constant WPScan
  1050. # ./spec/app/finders/users/wp_json_api_spec.rb:1:in `<top (required)>'
  1051.  
  1052. An error occurred while loading ./spec/app/finders/users/yoast_seo_author_sitemap_spec.rb.
  1053. Failure/Error:
  1054. describe WPScan::Finders::Users::YoastSeoAuthorSitemap do
  1055. subject(:finder) { described_class.new(target) }
  1056. let(:target) { WPScan::Target.new(url) }
  1057. let(:url) { 'http://wp.lab/' }
  1058. let(:fixtures) { FINDERS_FIXTURES.join('users', 'yoast_seo_author_sitemap') }
  1059.  
  1060. describe '#aggressive' do
  1061. before do
  1062. allow(target).to receive(:sub_dir).and_return(false)
  1063.  
  1064.  
  1065. NameError:
  1066. uninitialized constant WPScan
  1067. # ./spec/app/finders/users/yoast_seo_author_sitemap_spec.rb:1:in `<top (required)>'
  1068.  
  1069. An error occurred while loading ./spec/app/finders/users_spec.rb.
  1070. Failure/Error:
  1071. describe WPScan::Finders::Users::Base do
  1072. subject(:user) { described_class.new(target) }
  1073. let(:target) { WPScan::Target.new(url) }
  1074. let(:url) { 'http://ex.lo/' }
  1075.  
  1076. describe '#finders' do
  1077. it 'contains the expected finders' do
  1078. expect(user.finders.map { |f| f.class.to_s.demodulize })
  1079. .to eq %w[AuthorPosts WpJsonApi OembedApi RSSGenerator YoastSeoAuthorSitemap
  1080. AuthorIdBruteForcing LoginErrorMessages]
  1081.  
  1082. NameError:
  1083. uninitialized constant WPScan
  1084. # ./spec/app/finders/users_spec.rb:1:in `<top (required)>'
  1085.  
  1086. An error occurred while loading ./spec/app/finders/wp_version/atom_generator_spec.rb.
  1087. Failure/Error:
  1088. describe WPScan::Finders::WpVersion::AtomGenerator do
  1089. subject(:finder) { described_class.new(target) }
  1090. let(:target) { WPScan::Target.new(url).extend(CMSScanner::Target::Server::Apache) }
  1091. let(:url) { 'http://ex.lo/' }
  1092. let(:fixtures) { FINDERS_FIXTURES.join('wp_version', 'atom_generator') }
  1093. let(:atom_fixture) { File.read(fixtures.join('feed', 'atom')) }
  1094.  
  1095. describe '#passive, #aggressive' do
  1096. before do
  1097. allow(target).to receive(:sub_dir).and_return(false)
  1098.  
  1099. NameError:
  1100. uninitialized constant WPScan
  1101. # ./spec/app/finders/wp_version/atom_generator_spec.rb:1:in `<top (required)>'
  1102.  
  1103. An error occurred while loading ./spec/app/finders/wp_version/rdf_generator_spec.rb.
  1104. Failure/Error:
  1105. describe WPScan::Finders::WpVersion::RDFGenerator do
  1106. subject(:finder) { described_class.new(target) }
  1107. let(:target) { WPScan::Target.new(url).extend(CMSScanner::Target::Server::Apache) }
  1108. let(:url) { 'http://ex.lo/' }
  1109. let(:fixtures) { FINDERS_FIXTURES.join('wp_version', 'rdf_generator') }
  1110.  
  1111. xit
  1112. end
  1113.  
  1114. NameError:
  1115. uninitialized constant WPScan
  1116. # ./spec/app/finders/wp_version/rdf_generator_spec.rb:1:in `<top (required)>'
  1117.  
  1118. An error occurred while loading ./spec/app/finders/wp_version/readme_spec.rb.
  1119. Failure/Error:
  1120. describe WPScan::Finders::WpVersion::Readme do
  1121. subject(:finder) { described_class.new(target) }
  1122. let(:target) { WPScan::Target.new(url).extend(CMSScanner::Target::Server::Apache) }
  1123. let(:url) { 'http://ex.lo/' }
  1124. let(:fixtures) { FINDERS_FIXTURES.join('wp_version', 'readme') }
  1125. let(:readme_url) { url + 'readme.html' }
  1126.  
  1127. describe '#aggressive' do
  1128. before { stub_request(:get, readme_url).to_return(body: File.read(fixtures.join(file))) }
  1129.  
  1130.  
  1131. NameError:
  1132. uninitialized constant WPScan
  1133. # ./spec/app/finders/wp_version/readme_spec.rb:1:in `<top (required)>'
  1134.  
  1135. An error occurred while loading ./spec/app/finders/wp_version/rss_generator_spec.rb.
  1136. Failure/Error:
  1137. describe WPScan::Finders::WpVersion::RSSGenerator do
  1138. subject(:finder) { described_class.new(target) }
  1139. let(:target) { WPScan::Target.new(url).extend(CMSScanner::Target::Server::Apache) }
  1140. let(:url) { 'http://ex.lo/' }
  1141. let(:fixtures) { FINDERS_FIXTURES.join('wp_version', 'rss_generator') }
  1142.  
  1143. xit
  1144. end
  1145.  
  1146. NameError:
  1147. uninitialized constant WPScan
  1148. # ./spec/app/finders/wp_version/rss_generator_spec.rb:1:in `<top (required)>'
  1149.  
  1150. An error occurred while loading ./spec/app/finders/wp_version/unique_fingerprinting_spec.rb.
  1151. Failure/Error:
  1152. describe WPScan::Finders::WpVersion::UniqueFingerprinting do
  1153. subject(:finder) { described_class.new(target) }
  1154. let(:target) { WPScan::Target.new(url).extend(CMSScanner::Target::Server::Apache) }
  1155. let(:url) { 'http://ex.lo/' }
  1156. let(:fixtures) { FINDERS_FIXTURES.join('wp_version', 'unique_fingerprinting') }
  1157.  
  1158. xit
  1159. end
  1160.  
  1161. NameError:
  1162. uninitialized constant WPScan
  1163. # ./spec/app/finders/wp_version/unique_fingerprinting_spec.rb:1:in `<top (required)>'
  1164.  
  1165. An error occurred while loading ./spec/app/finders/wp_version_spec.rb.
  1166. Failure/Error:
  1167. describe WPScan::Finders::WpVersion::Base do
  1168. subject(:wp_version) { described_class.new(target) }
  1169. let(:target) { WPScan::Target.new(url) }
  1170. let(:url) { 'http://ex.lo/' }
  1171.  
  1172. describe '#finders' do
  1173. let(:expected) { %w[RSSGenerator AtomGenerator RDFGenerator Readme UniqueFingerprinting] }
  1174.  
  1175. let(:expected_dynamic_finders) { WPScan::DB::DynamicFinders::Wordpress.versions_finders_configs.keys }
  1176.  
  1177.  
  1178. NameError:
  1179. uninitialized constant WPScan
  1180. # ./spec/app/finders/wp_version_spec.rb:4:in `<top (required)>'
  1181.  
  1182. An error occurred while loading ./spec/app/models/interesting_finding_spec.rb.
  1183. Failure/Error:
  1184. describe WPScan::InterestingFinding do
  1185. it_behaves_like WPScan::References do
  1186. subject(:finding) { described_class.new('http://e.org/file.php', opts) }
  1187. let(:opts) { { references: references } }
  1188. let(:references) { {} }
  1189. end
  1190. end
  1191.  
  1192. NameError:
  1193. uninitialized constant WPScan
  1194. # ./spec/app/models/interesting_finding_spec.rb:1:in `<top (required)>'
  1195.  
  1196. An error occurred while loading ./spec/app/models/media_spec.rb.
  1197. Failure/Error:
  1198. describe WPScan::Media do
  1199. subject(:media) { described_class.new(url) }
  1200. let(:url) { 'http://e.oeg/?attachment_id=2' }
  1201.  
  1202. describe '#new' do
  1203. its(:url) { should eql url }
  1204. end
  1205. end
  1206.  
  1207. NameError:
  1208. uninitialized constant WPScan
  1209. # ./spec/app/models/media_spec.rb:1:in `<top (required)>'
  1210.  
  1211. An error occurred while loading ./spec/app/models/plugin_spec.rb.
  1212. Failure/Error:
  1213. describe WPScan::Plugin do
  1214. subject(:plugin) { described_class.new(slug, blog, opts) }
  1215. let(:slug) { 'spec' }
  1216. let(:blog) { WPScan::Target.new('http://wp.lab/') }
  1217. let(:opts) { {} }
  1218.  
  1219. before { expect(blog).to receive(:content_dir).and_return('wp-content') }
  1220.  
  1221. describe '#new' do
  1222. its(:url) { should eql 'http://wp.lab/wp-content/plugins/spec/' }
  1223.  
  1224. NameError:
  1225. uninitialized constant WPScan
  1226. # ./spec/app/models/plugin_spec.rb:1:in `<top (required)>'
  1227.  
  1228. An error occurred while loading ./spec/app/models/theme_spec.rb.
  1229. Failure/Error:
  1230. describe WPScan::Theme do
  1231. subject(:theme) { described_class.new(slug, blog, opts) }
  1232. let(:slug) { 'spec' }
  1233. let(:blog) { WPScan::Target.new('http://wp.lab/') }
  1234. let(:opts) { {} }
  1235. let(:fixtures) { FIXTURES.join('models', 'theme') }
  1236.  
  1237. before { expect(blog).to receive(:content_dir).at_least(1).and_return('wp-content') }
  1238.  
  1239. describe '#new' do
  1240.  
  1241. NameError:
  1242. uninitialized constant WPScan
  1243. # ./spec/app/models/theme_spec.rb:1:in `<top (required)>'
  1244.  
  1245. An error occurred while loading ./spec/app/models/timthumb_spec.rb.
  1246. Failure/Error:
  1247. describe WPScan::Timthumb do
  1248. subject(:timthumb) { described_class.new(url, opts) }
  1249. let(:url) { 'http://wp.lab/wp-content/timthumb.php' }
  1250. let(:fixtures) { FIXTURES.join('models', 'timthumb') }
  1251. let(:opts) { {} }
  1252.  
  1253. describe '#new' do
  1254. its(:url) { should eql url }
  1255. end
  1256.  
  1257.  
  1258. NameError:
  1259. uninitialized constant WPScan
  1260. # ./spec/app/models/timthumb_spec.rb:1:in `<top (required)>'
  1261.  
  1262. An error occurred while loading ./spec/app/models/wp_item_spec.rb.
  1263. Failure/Error:
  1264. describe WPScan::WpItem do
  1265. subject(:wp_item) { described_class.new(slug, blog, opts) }
  1266. let(:slug) { 'test_item' }
  1267. let(:blog) { WPScan::Target.new(url) }
  1268. let(:url) { 'http://wp.lab/' }
  1269. let(:opts) { {} }
  1270.  
  1271. its(:blog) { should eql blog }
  1272.  
  1273. describe '#new' do
  1274.  
  1275. NameError:
  1276. uninitialized constant WPScan
  1277. # ./spec/app/models/wp_item_spec.rb:1:in `<top (required)>'
  1278.  
  1279. An error occurred while loading ./spec/app/models/wp_version_spec.rb.
  1280. Failure/Error:
  1281. describe WPScan::WpVersion do
  1282. describe '#new' do
  1283. context 'when invalid number' do
  1284. it 'raises an error' do
  1285. expect { described_class.new('aa') }.to raise_error WPScan::InvalidWordPressVersion
  1286. end
  1287. end
  1288.  
  1289. context 'when valid number' do
  1290. it 'create the instance' do
  1291.  
  1292. NameError:
  1293. uninitialized constant WPScan
  1294. # ./spec/app/models/wp_version_spec.rb:1:in `<top (required)>'
  1295.  
  1296. An error occurred while loading ./spec/app/models/xml_rpc_spec.rb.
  1297. Failure/Error:
  1298. describe WPScan::XMLRPC do
  1299. subject(:xml_rpc) { described_class.new('http//e.org/xmlrpc.php') }
  1300.  
  1301. describe '#references' do
  1302. its(:references) { should_not be_empty }
  1303. end
  1304. end
  1305.  
  1306. NameError:
  1307. uninitialized constant WPScan
  1308. # ./spec/app/models/xml_rpc_spec.rb:1:in `<top (required)>'
  1309.  
  1310. An error occurred while loading ./spec/app/views_spec.rb.
  1311. Failure/Error: it_behaves_like 'App::Views::WpVersion'
  1312.  
  1313. ArgumentError:
  1314. Could not find shared examples "App::Views::WpVersion"
  1315. # ./spec/app/views_spec.rb:10:in `block (3 levels) in <top (required)>'
  1316. # ./spec/app/views_spec.rb:9:in `block (2 levels) in <top (required)>'
  1317. # ./spec/app/views_spec.rb:8:in `each'
  1318. # ./spec/app/views_spec.rb:8:in `block in <top (required)>'
  1319. # ./spec/app/views_spec.rb:1:in `<top (required)>'
  1320.  
  1321. An error occurred while loading ./spec/lib/browser_spec.rb.
  1322. Failure/Error:
  1323. describe WPScan::Browser do
  1324. subject(:browser) { described_class.instance(options) }
  1325. before { described_class.reset }
  1326. let(:options) { {} }
  1327.  
  1328. describe '#user_agents_list' do
  1329. context 'when not set' do
  1330. its(:user_agents_list) { should eql WPScan::DB_DIR.join('user-agents.txt').to_s }
  1331. end
  1332.  
  1333.  
  1334. NameError:
  1335. uninitialized constant WPScan
  1336. # ./spec/lib/browser_spec.rb:1:in `<top (required)>'
  1337.  
  1338. An error occurred while loading ./spec/lib/db/dynamic_finders/base_spec.rb.
  1339. Failure/Error:
  1340. describe WPScan::DB::DynamicFinders::Base do
  1341. subject(:dynamic_finders) { described_class }
  1342.  
  1343. # Handled in spec/lib/db/dynamic_finders/plugin and wordpress
  1344. end
  1345.  
  1346. NameError:
  1347. uninitialized constant WPScan
  1348. # ./spec/lib/db/dynamic_finders/base_spec.rb:1:in `<top (required)>'
  1349.  
  1350. An error occurred while loading ./spec/lib/db/dynamic_finders/plugin_spec.rb.
  1351. Failure/Error:
  1352. describe WPScan::DB::DynamicFinders::Plugin do
  1353. subject(:dynamic_finders) { described_class }
  1354.  
  1355. describe '.finders_configs' do
  1356. context 'when the given class is not allowed' do
  1357. it 'returns an empty hash' do
  1358. expect(subject.finder_configs('aaaa')).to eql({})
  1359. end
  1360. end
  1361.  
  1362.  
  1363. NameError:
  1364. uninitialized constant WPScan
  1365. # ./spec/lib/db/dynamic_finders/plugin_spec.rb:1:in `<top (required)>'
  1366.  
  1367. An error occurred while loading ./spec/lib/db/dynamic_finders/theme_spec.rb.
  1368. Failure/Error:
  1369. describe WPScan::DB::DynamicFinders::Theme do
  1370. subject(:dynamic_finders) { described_class }
  1371.  
  1372. xit
  1373. end
  1374.  
  1375. NameError:
  1376. uninitialized constant WPScan
  1377. # ./spec/lib/db/dynamic_finders/theme_spec.rb:1:in `<top (required)>'
  1378.  
  1379. An error occurred while loading ./spec/lib/db/dynamic_finders/wordpress_spec.rb.
  1380. Failure/Error:
  1381. describe WPScan::DB::DynamicFinders::Wordpress do
  1382. subject(:dynamic_finders) { described_class }
  1383.  
  1384. xit
  1385. end
  1386.  
  1387. NameError:
  1388. uninitialized constant WPScan
  1389. # ./spec/lib/db/dynamic_finders/wordpress_spec.rb:1:in `<top (required)>'
  1390.  
  1391. An error occurred while loading ./spec/lib/db/fingerprints_spec.rb.
  1392. Failure/Error:
  1393. describe WPScan::DB::Fingerprints do
  1394. describe '#unique_fingerprints' do
  1395. # Handled in #wp_unique_fingerprints
  1396. end
  1397.  
  1398. describe '.wp_fingerprints' do
  1399. it 'returns the expected value' do
  1400. expect(described_class.wp_fingerprints).to eql(
  1401. 'path-1' => {
  1402. 'hash-1' => %w[4.0 3.8],
  1403.  
  1404. NameError:
  1405. uninitialized constant WPScan
  1406. # ./spec/lib/db/fingerprints_spec.rb:1:in `<top (required)>'
  1407.  
  1408. An error occurred while loading ./spec/lib/db/plugin_spec.rb.
  1409. Failure/Error:
  1410. describe WPScan::DB::Plugin do
  1411. describe '#vulnerabilities' do
  1412. # Handled in spec/app/models/plugin_spec
  1413. end
  1414. end
  1415.  
  1416. NameError:
  1417. uninitialized constant WPScan
  1418. # ./spec/lib/db/plugin_spec.rb:1:in `<top (required)>'
  1419.  
  1420. An error occurred while loading ./spec/lib/db/plugins_spec.rb.
  1421. Failure/Error:
  1422. describe WPScan::DB::Plugins do
  1423. subject(:plugins) { described_class }
  1424.  
  1425. describe '#all_slugs' do
  1426. its(:all_slugs) { should eql %w[no-vulns-popular vulnerable-not-popular] }
  1427. end
  1428.  
  1429. describe '#popular_slugs' do
  1430. its(:popular_slugs) { should eql %w[no-vulns-popular] }
  1431. end
  1432.  
  1433. NameError:
  1434. uninitialized constant WPScan
  1435. # ./spec/lib/db/plugins_spec.rb:1:in `<top (required)>'
  1436.  
  1437. An error occurred while loading ./spec/lib/db/theme_spec.rb.
  1438. Failure/Error:
  1439. describe WPScan::DB::Theme do
  1440. describe '#vulnerabilities' do
  1441. # Handled in spec/app/models/theme_spec
  1442. end
  1443. end
  1444.  
  1445. NameError:
  1446. uninitialized constant WPScan
  1447. # ./spec/lib/db/theme_spec.rb:1:in `<top (required)>'
  1448.  
  1449. An error occurred while loading ./spec/lib/db/themes_spec.rb.
  1450. Failure/Error:
  1451. describe WPScan::DB::Themes do
  1452. subject(:themes) { described_class }
  1453.  
  1454. describe '#all_slugs' do
  1455. its(:all_slugs) { should eql %w[no-vulns-popular dignitas-themes yaaburnee-themes] }
  1456. end
  1457.  
  1458. describe '#popular_slugs' do
  1459. its(:popular_slugs) { should eql %w[no-vulns-popular dignitas-themes] }
  1460. end
  1461.  
  1462. NameError:
  1463. uninitialized constant WPScan
  1464. # ./spec/lib/db/themes_spec.rb:1:in `<top (required)>'
  1465.  
  1466. An error occurred while loading ./spec/lib/db/wp_item_spec.rb.
  1467. Failure/Error:
  1468. describe WPScan::DB::WpItem do
  1469. describe '#vulnerabilities' do
  1470. # Handled in spec/app/models/plugin_spec
  1471. end
  1472. end
  1473.  
  1474. NameError:
  1475. uninitialized constant WPScan
  1476. # ./spec/lib/db/wp_item_spec.rb:1:in `<top (required)>'
  1477.  
  1478. An error occurred while loading ./spec/lib/db/wp_items_spec.rb.
  1479. Failure/Error:
  1480. describe WPScan::DB::WpItems do
  1481. # Handled in plugins_spec & themes_spec
  1482. end
  1483.  
  1484. NameError:
  1485. uninitialized constant WPScan
  1486. # ./spec/lib/db/wp_items_spec.rb:1:in `<top (required)>'
  1487.  
  1488. An error occurred while loading ./spec/lib/db/wp_version_spec.rb.
  1489. Failure/Error:
  1490. describe WPScan::DB::Version do
  1491. describe '#vulnerabilities' do
  1492. # Handled in spec/app/models/wp_version_spec
  1493. end
  1494. end
  1495.  
  1496. NameError:
  1497. uninitialized constant WPScan
  1498. # ./spec/lib/db/wp_version_spec.rb:1:in `<top (required)>'
  1499.  
  1500. An error occurred while loading ./spec/lib/finders/dynamic_finder/plugin_version_spec.rb.
  1501. Failure/Error: YAML.safe_load(File.read(DYNAMIC_FINDERS_FIXTURES.join('expected.yml')))
  1502.  
  1503. NameError:
  1504. uninitialized constant DYNAMIC_FINDERS_FIXTURES
  1505. # ./spec/spec_helper.rb:26:in `df_expected_all'
  1506. # ./spec/lib/finders/dynamic_finder/plugin_version_spec.rb:15:in `<top (required)>'
  1507.  
  1508. An error occurred while loading ./spec/lib/finders/dynamic_finder/version/body_pattern_spec.rb.
  1509. Failure/Error:
  1510. describe WPScan::Finders::DynamicFinder::Version::BodyPattern do
  1511. module WPScan
  1512. module Finders
  1513. module Version
  1514. # Needed to be able to test the below
  1515. module Rspec
  1516. end
  1517.  
  1518. NameError:
  1519. uninitialized constant WPScan
  1520. # ./spec/lib/finders/dynamic_finder/version/body_pattern_spec.rb:1:in `<top (required)>'
  1521.  
  1522. An error occurred while loading ./spec/lib/finders/dynamic_finder/version/comment_spec.rb.
  1523. Failure/Error:
  1524. describe WPScan::Finders::DynamicFinder::Version::Comment do
  1525. module WPScan
  1526. module Finders
  1527. module Version
  1528. # Needed to be able to test the below
  1529. module Rspec
  1530. end
  1531.  
  1532. NameError:
  1533. uninitialized constant WPScan
  1534. # ./spec/lib/finders/dynamic_finder/version/comment_spec.rb:1:in `<top (required)>'
  1535.  
  1536. An error occurred while loading ./spec/lib/finders/dynamic_finder/version/config_parser_spec.rb.
  1537. Failure/Error:
  1538. describe WPScan::Finders::DynamicFinder::Version::ConfigParser do
  1539. module WPScan
  1540. module Finders
  1541. module Version
  1542. # Needed to be able to test the below
  1543. module Rspec
  1544. end
  1545.  
  1546. NameError:
  1547. uninitialized constant WPScan
  1548. # ./spec/lib/finders/dynamic_finder/version/config_parser_spec.rb:1:in `<top (required)>'
  1549.  
  1550. An error occurred while loading ./spec/lib/finders/dynamic_finder/version/header_pattern_spec.rb.
  1551. Failure/Error:
  1552. describe WPScan::Finders::DynamicFinder::Version::HeaderPattern do
  1553. module WPScan
  1554. module Finders
  1555. module Version
  1556. # Needed to be able to test the below
  1557. module Rspec
  1558. end
  1559.  
  1560. NameError:
  1561. uninitialized constant WPScan
  1562. # ./spec/lib/finders/dynamic_finder/version/header_pattern_spec.rb:1:in `<top (required)>'
  1563.  
  1564. An error occurred while loading ./spec/lib/finders/dynamic_finder/version/javascript_var_spec.rb.
  1565. Failure/Error:
  1566. describe WPScan::Finders::DynamicFinder::Version::JavascriptVar do
  1567. module WPScan
  1568. module Finders
  1569. module Version
  1570. # Needed to be able to test the below
  1571. module Rspec
  1572. end
  1573.  
  1574. NameError:
  1575. uninitialized constant WPScan
  1576. # ./spec/lib/finders/dynamic_finder/version/javascript_var_spec.rb:1:in `<top (required)>'
  1577.  
  1578. An error occurred while loading ./spec/lib/finders/dynamic_finder/version/query_parameter_spec.rb.
  1579. Failure/Error:
  1580. describe WPScan::Finders::DynamicFinder::Version::QueryParameter do
  1581. module WPScan
  1582. module Finders
  1583. module Version
  1584. # Needed to be able to test the below
  1585. module Rspec
  1586. end
  1587.  
  1588. NameError:
  1589. uninitialized constant WPScan
  1590. # ./spec/lib/finders/dynamic_finder/version/query_parameter_spec.rb:1:in `<top (required)>'
  1591.  
  1592. An error occurred while loading ./spec/lib/finders/dynamic_finder/version/xpath_spec.rb.
  1593. Failure/Error:
  1594. describe WPScan::Finders::DynamicFinder::Version::Xpath do
  1595. module WPScan
  1596. module Finders
  1597. module Version
  1598. # Needed to be able to test the below
  1599. module Rspec
  1600. end
  1601.  
  1602. NameError:
  1603. uninitialized constant WPScan
  1604. # ./spec/lib/finders/dynamic_finder/version/xpath_spec.rb:1:in `<top (required)>'
  1605.  
  1606. An error occurred while loading ./spec/lib/finders/dynamic_finder/wp_items/finder_spec.rb.
  1607. Failure/Error:
  1608. describe WPScan::Finders::DynamicFinder::WpItems::Finder do
  1609. # Handled in spec/shared_examples/dynamic_finders/wp_items.rb
  1610. end
  1611.  
  1612. NameError:
  1613. uninitialized constant WPScan
  1614. # ./spec/lib/finders/dynamic_finder/wp_items/finder_spec.rb:1:in `<top (required)>'
  1615.  
  1616. An error occurred while loading ./spec/lib/finders/dynamic_finder/wp_version_spec.rb.
  1617. Failure/Error: YAML.safe_load(File.read(DYNAMIC_FINDERS_FIXTURES.join('expected.yml')))
  1618.  
  1619. NameError:
  1620. uninitialized constant DYNAMIC_FINDERS_FIXTURES
  1621. # ./spec/spec_helper.rb:26:in `df_expected_all'
  1622. # ./spec/lib/finders/dynamic_finder/wp_version_spec.rb:1:in `<top (required)>'
  1623.  
  1624. An error occurred while loading ./spec/lib/finders/finder/wp_version/smart_url_checker_spec.rb.
  1625. Failure/Error:
  1626. describe WPScan::Finders::Finder::WpVersion::SmartURLChecker do
  1627. xit
  1628. end
  1629.  
  1630. NameError:
  1631. uninitialized constant WPScan
  1632. # ./spec/lib/finders/finder/wp_version/smart_url_checker_spec.rb:1:in `<top (required)>'
  1633.  
  1634. An error occurred while loading ./spec/lib/target_spec.rb.
  1635. Failure/Error:
  1636. describe WPScan::Target do
  1637. subject(:target) { described_class.new(url) }
  1638. let(:url) { 'http://ex.lo' }
  1639.  
  1640. it_behaves_like WPScan::Target::Platform::WordPress
  1641.  
  1642. describe 'xmlrpc' do
  1643. before do
  1644. allow(target).to receive(:sub_dir)
  1645.  
  1646.  
  1647. NameError:
  1648. uninitialized constant WPScan
  1649. # ./spec/lib/target_spec.rb:1:in `<top (required)>'
  1650.  
  1651. An error occurred while loading ./spec/lib/vulnerability_spec.rb.
  1652. Failure/Error:
  1653. describe WPScan::Vulnerability do
  1654. subject(:vuln) { described_class.new(title, references) }
  1655. let(:title) { 'Test Vuln' }
  1656. let(:references) { {} }
  1657.  
  1658. it_behaves_like WPScan::References
  1659.  
  1660. describe '#load_from_json' do
  1661. # Handled in spec/app/models/wp_version_spec#vulnerabilities
  1662. end
  1663.  
  1664. NameError:
  1665. uninitialized constant WPScan
  1666. # ./spec/lib/vulnerability_spec.rb:1:in `<top (required)>'
  1667.  
  1668. An error occurred while loading ./spec/lib/wpscan_spec.rb.
  1669. Failure/Error:
  1670. describe WPScan do
  1671. it 'has a version number' do
  1672. expect(WPScan::VERSION).not_to be nil
  1673. end
  1674.  
  1675. describe '#app_name' do
  1676. it 'returns the overriden string' do
  1677. expect(WPScan.app_name).to eql 'wpscan'
  1678. end
  1679. end
  1680.  
  1681. NameError:
  1682. uninitialized constant WPScan
  1683. # ./spec/lib/wpscan_spec.rb:1:in `<top (required)>'
  1684. No examples found.
  1685.  
  1686.  
  1687. Finished in 0.00052 seconds (files took 7.42 seconds to load)
  1688. 0 examples, 0 failures, 102 errors occurred outside of examples
  1689.  
  1690. Coverage report generated for RSpec to /root/wpscan/coverage. 1 / 28 LOC (3.57%) covered.
  1691. /usr/bin/ruby2.5 -I/var/lib/gems/2.5.0/gems/rspec-support-3.8.0/lib:/var/lib/gems/2.5.0/gems/rspec-core-3.8.0/lib /var/lib/gems/2.5.0/gems/rspec-core-3.8.0/exe/rspec --pattern spec/\*\*\{,/\*/\*\*\}/\*_spec.rb failed
  1692. root@kl:~/wpscan#
  1693. root@kl:~/wpscan#
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement