Skip to content

Commit

Permalink
Added Ronin::App::Helpers::Text (#129,#128,#127).
Browse files Browse the repository at this point in the history
  • Loading branch information
postmodern committed Feb 11, 2025
1 parent 3103a56 commit ecedc0d
Show file tree
Hide file tree
Showing 2 changed files with 46 additions and 0 deletions.
2 changes: 2 additions & 0 deletions app.rb
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,7 @@

# helpers
require 'ronin/app/helpers/html'
require 'ronin/app/helpers/text'

# worker classes
require_relative 'workers/install_repo'
Expand Down Expand Up @@ -77,6 +78,7 @@ class App < Sinatra::Base
register Sinatra::Flash
helpers Sinatra::ContentFor
helpers Helpers::HTML
helpers Helpers::Text
end

configure :development do
Expand Down
44 changes: 44 additions & 0 deletions lib/ronin/app/helpers/text.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,44 @@
# frozen_string_literal: true
#
# ronin-app - a local web app for Ronin.
#
# Copyright (c) 2023-2024 Hal Brodigan (postmodern.mod3@gmail.com)
#
# ronin-app is free software: you can redistribute it and/or modify
# it under the terms of the GNU Affero General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version.
#
# ronin-app is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU Affero General Public License for more details.
#
# You should have received a copy of the GNU Affero General Public License
# along with ronin-app. If not, see <http://www.gnu.org/licenses/>.
#

require 'ronin/core/cli/text/arch'
require 'ronin/core/cli/text/os'
require 'ronin/core/cli/text/params'
require 'ronin/payloads/cli/text'
require 'ronin/vulns/cli/text'
require 'ronin/exploits/cli/text'

module Ronin
module App
module Helpers
#
# Text helper methods.
#
module Text
include Core::CLI::Text::Arch
include Core::CLI::Text::OS
include Core::CLI::Text::Params
include Payloads::CLI::Text
include Vulns::CLI::Text
include Exploits::CLI::Text
end
end
end
end

0 comments on commit ecedc0d

Please sign in to comment.