Adds an Api Token controller
This commit is contained in:
19
app/controllers/api_token.rb
Normal file
19
app/controllers/api_token.rb
Normal file
@@ -0,0 +1,19 @@
|
||||
# frozen_string_literal: true
|
||||
|
||||
module WPScan
|
||||
module Controller
|
||||
# Controller to handle the API token
|
||||
class ApiToken < CMSScanner::Controller::Base
|
||||
def cli_options
|
||||
[
|
||||
OptString.new(['--api-token TOKEN', 'The API Token to display vulnerability data'])
|
||||
]
|
||||
end
|
||||
|
||||
def before_scan(opts = {})
|
||||
# TODO, validate the token
|
||||
# res = browser.get()
|
||||
end
|
||||
end
|
||||
end
|
||||
end
|
||||
Reference in New Issue
Block a user