Gets Sponsor text from db file
This commit is contained in:
@@ -8,7 +8,7 @@ _______________________________________________________________
|
|||||||
|
|
||||||
WordPress Security Scanner by the WPScan Team
|
WordPress Security Scanner by the WPScan Team
|
||||||
Version <%= WPScan::VERSION %>
|
Version <%= WPScan::VERSION %>
|
||||||
Sponsored by Sucuri - https://sucuri.net
|
<%= ' ' * ((63 - WPScan::DB::Sponsor.text.length)/2) + WPScan::DB::Sponsor.text %>
|
||||||
@_WPScan_, @ethicalhack3r, @erwan_lr, @_FireFart_
|
@_WPScan_, @ethicalhack3r, @erwan_lr, @_FireFart_
|
||||||
_______________________________________________________________
|
_______________________________________________________________
|
||||||
|
|
||||||
|
|||||||
@@ -7,5 +7,5 @@
|
|||||||
"@erwan_lr",
|
"@erwan_lr",
|
||||||
"@_FireFart_"
|
"@_FireFart_"
|
||||||
],
|
],
|
||||||
"sponsored_by": "Sucuri - https://sucuri.net"
|
"sponsor": <%= WPScan::DB::Sponsor.text.to_json %>
|
||||||
},
|
},
|
||||||
|
|||||||
@@ -7,6 +7,7 @@ require_relative 'db/plugins'
|
|||||||
require_relative 'db/themes'
|
require_relative 'db/themes'
|
||||||
require_relative 'db/plugin'
|
require_relative 'db/plugin'
|
||||||
require_relative 'db/theme'
|
require_relative 'db/theme'
|
||||||
|
require_relative 'db/sponsor'
|
||||||
require_relative 'db/wp_version'
|
require_relative 'db/wp_version'
|
||||||
require_relative 'db/fingerprints'
|
require_relative 'db/fingerprints'
|
||||||
|
|
||||||
|
|||||||
16
lib/wpscan/db/sponsor.rb
Normal file
16
lib/wpscan/db/sponsor.rb
Normal file
@@ -0,0 +1,16 @@
|
|||||||
|
# frozen_string_literal: true
|
||||||
|
|
||||||
|
module WPScan
|
||||||
|
module DB
|
||||||
|
class Sponsor
|
||||||
|
# @return [ Hash ]
|
||||||
|
def self.text
|
||||||
|
@text ||= file_path.exist? ? File.read(file_path).chomp : ''
|
||||||
|
end
|
||||||
|
|
||||||
|
def self.file_path
|
||||||
|
@file_path ||= DB_DIR.join('sponsor.txt')
|
||||||
|
end
|
||||||
|
end
|
||||||
|
end
|
||||||
|
end
|
||||||
@@ -9,7 +9,7 @@ module WPScan
|
|||||||
FILES = %w[
|
FILES = %w[
|
||||||
metadata.json wp_fingerprints.json
|
metadata.json wp_fingerprints.json
|
||||||
timthumbs-v3.txt config_backups.txt db_exports.txt
|
timthumbs-v3.txt config_backups.txt db_exports.txt
|
||||||
dynamic_finders.yml LICENSE
|
dynamic_finders.yml LICENSE sponsor.txt
|
||||||
].freeze
|
].freeze
|
||||||
|
|
||||||
OLD_FILES = %w[
|
OLD_FILES = %w[
|
||||||
|
|||||||
1
spec/fixtures/db/sponsor.txt
vendored
Normal file
1
spec/fixtures/db/sponsor.txt
vendored
Normal file
@@ -0,0 +1 @@
|
|||||||
|
Sponsored By Kittens
|
||||||
Reference in New Issue
Block a user