Skip to content

Commit

Permalink
Use require_relative for ronin/payloads/* files (issue #147).
Browse files Browse the repository at this point in the history
  • Loading branch information
postmodern committed Aug 13, 2024
1 parent 3012f1b commit cb5641d
Show file tree
Hide file tree
Showing 24 changed files with 38 additions and 34 deletions.
2 changes: 1 addition & 1 deletion lib/ronin/payloads/binary_payload.rb
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
# along with ronin-payloads. If not, see <https://www.gnu.org/licenses/>.
#

require 'ronin/payloads/payload'
require_relative 'payload'

module Ronin
module Payloads
Expand Down
4 changes: 2 additions & 2 deletions lib/ronin/payloads/c_payload.rb
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,8 @@
# along with ronin-payloads. If not, see <https://www.gnu.org/licenses/>.
#

require 'ronin/payloads/binary_payload'
require 'ronin/payloads/mixins/c_compiler'
require_relative 'binary_payload'
require_relative 'mixins/c_compiler'

module Ronin
module Payloads
Expand Down
3 changes: 2 additions & 1 deletion lib/ronin/payloads/cli.rb
Original file line number Diff line number Diff line change
Expand Up @@ -19,13 +19,14 @@
# along with ronin-payloads. If not, see <https://www.gnu.org/licenses/>.
#

require 'ronin/payloads/version'
require 'ronin/core/cli/help/banner'

require 'command_kit/commands'
require 'command_kit/commands/auto_load'
require 'command_kit/options/version'

require_relative 'version'

module Ronin
module Payloads
#
Expand Down
2 changes: 1 addition & 1 deletion lib/ronin/payloads/coldfusion_payload.rb
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
# along with ronin-payloads. If not, see <https://www.gnu.org/licenses/>.
#

require 'ronin/payloads/payload'
require_relative 'payload'

module Ronin
module Payloads
Expand Down
2 changes: 1 addition & 1 deletion lib/ronin/payloads/command_payload.rb
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
# along with ronin-payloads. If not, see <https://www.gnu.org/licenses/>.
#

require 'ronin/payloads/payload'
require_relative 'payload'

module Ronin
module Payloads
Expand Down
2 changes: 1 addition & 1 deletion lib/ronin/payloads/go_payload.rb
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
# along with ronin-payloads. If not, see <https://www.gnu.org/licenses/>.
#

require 'ronin/payloads/binary_payload'
require_relative 'binary_payload'

module Ronin
module Payloads
Expand Down
2 changes: 1 addition & 1 deletion lib/ronin/payloads/groovy_payload.rb
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
# along with ronin-payloads. If not, see <https://www.gnu.org/licenses/>.
#

require 'ronin/payloads/payload'
require_relative 'payload'

module Ronin
module Payloads
Expand Down
5 changes: 3 additions & 2 deletions lib/ronin/payloads/html_payload.rb
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,9 @@
# along with ronin-payloads. If not, see <https://www.gnu.org/licenses/>.
#

require 'ronin/payloads/payload'
require 'ronin/payloads/encoders/html_encoder'
require_relative 'payload'
require_relative 'encoders/html_encoder'

require 'ronin/support/encoding/html'

module Ronin
Expand Down
2 changes: 1 addition & 1 deletion lib/ronin/payloads/java_payload.rb
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
# along with ronin-payloads. If not, see <https://www.gnu.org/licenses/>.
#

require 'ronin/payloads/payload'
require_relative 'payload'

module Ronin
module Payloads
Expand Down
5 changes: 3 additions & 2 deletions lib/ronin/payloads/javascript_payload.rb
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,9 @@
# along with ronin-payloads. If not, see <https://www.gnu.org/licenses/>.
#

require 'ronin/payloads/payload'
require 'ronin/payloads/encoders/javascript_encoder'
require_relative 'payload'
require_relative 'encoders/javascript_encoder'

require 'ronin/support/encoding/js'

module Ronin
Expand Down
2 changes: 1 addition & 1 deletion lib/ronin/payloads/jsp_payload.rb
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
# along with ronin-payloads. If not, see <https://www.gnu.org/licenses/>.
#

require 'ronin/payloads/payload'
require_relative 'payload'

module Ronin
module Payloads
Expand Down
2 changes: 1 addition & 1 deletion lib/ronin/payloads/nashorn_payload.rb
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
# along with ronin-payloads. If not, see <https://www.gnu.org/licenses/>.
#

require 'ronin/payloads/javascript_payload'
require_relative 'javascript_payload'

module Ronin
module Payloads
Expand Down
2 changes: 1 addition & 1 deletion lib/ronin/payloads/node_js_payload.rb
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
# along with ronin-payloads. If not, see <https://www.gnu.org/licenses/>.
#

require 'ronin/payloads/payload'
require_relative 'payload'

module Ronin
module Payloads
Expand Down
8 changes: 4 additions & 4 deletions lib/ronin/payloads/payload.rb
Original file line number Diff line number Diff line change
Expand Up @@ -19,10 +19,10 @@
# along with ronin-payloads. If not, see <https://www.gnu.org/licenses/>.
#

require 'ronin/payloads/registry'
require 'ronin/payloads/exceptions'
require 'ronin/payloads/encoders/encoder'
require 'ronin/payloads/encoders/pipeline'
require_relative 'registry'
require_relative 'exceptions'
require_relative 'encoders/encoder'
require_relative 'encoders/pipeline'

require 'ronin/core/metadata/id'
require 'ronin/core/metadata/authors'
Expand Down
2 changes: 1 addition & 1 deletion lib/ronin/payloads/php_payload.rb
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
# along with ronin-payloads. If not, see <https://www.gnu.org/licenses/>.
#

require 'ronin/payloads/payload'
require_relative 'payload'

module Ronin
module Payloads
Expand Down
4 changes: 2 additions & 2 deletions lib/ronin/payloads/powershell_payload.rb
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,8 @@
# along with ronin-payloads. If not, see <https://www.gnu.org/licenses/>.
#

require 'ronin/payloads/payload'
require 'ronin/payloads/encoders/powershell_encoder'
require_relative 'payload'
require_relative 'encoders/powershell_encoder'

module Ronin
module Payloads
Expand Down
2 changes: 1 addition & 1 deletion lib/ronin/payloads/python_payload.rb
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
# along with ronin-payloads. If not, see <https://www.gnu.org/licenses/>.
#

require 'ronin/payloads/payload'
require_relative 'payload'

module Ronin
module Payloads
Expand Down
2 changes: 1 addition & 1 deletion lib/ronin/payloads/ruby_payload.rb
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
# along with ronin-payloads. If not, see <https://www.gnu.org/licenses/>.
#

require 'ronin/payloads/payload'
require_relative 'payload'

module Ronin
module Payloads
Expand Down
2 changes: 1 addition & 1 deletion lib/ronin/payloads/rust_payload.rb
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
# along with ronin-payloads. If not, see <https://www.gnu.org/licenses/>.
#

require 'ronin/payloads/binary_payload'
require_relative 'binary_payload'

module Ronin
module Payloads
Expand Down
4 changes: 2 additions & 2 deletions lib/ronin/payloads/shell_payload.rb
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,8 @@
# along with ronin-payloads. If not, see <https://www.gnu.org/licenses/>.
#

require 'ronin/payloads/command_payload'
require 'ronin/payloads/encoders/shell_encoder'
require_relative 'command_payload'
require_relative 'encoders/shell_encoder'

module Ronin
module Payloads
Expand Down
2 changes: 1 addition & 1 deletion lib/ronin/payloads/shellcode_payload.rb
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
# along with ronin-payloads. If not, see <https://www.gnu.org/licenses/>.
#

require 'ronin/payloads/asm_payload'
require_relative 'asm_payload'

require 'ronin/code/asm/shellcode'

Expand Down
4 changes: 2 additions & 2 deletions lib/ronin/payloads/sql_payload.rb
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,8 @@
# along with ronin-payloads. If not, see <https://www.gnu.org/licenses/>.
#

require 'ronin/payloads/payload'
require 'ronin/payloads/encoders/sql_encoder'
require_relative 'payload'
require_relative 'encoders/sql_encoder'

module Ronin
module Payloads
Expand Down
2 changes: 1 addition & 1 deletion lib/ronin/payloads/url_payload.rb
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
# along with ronin-payloads. If not, see <https://www.gnu.org/licenses/>.
#

require 'ronin/payloads/payload'
require_relative 'payload'

module Ronin
module Payloads
Expand Down
5 changes: 3 additions & 2 deletions lib/ronin/payloads/xml_payload.rb
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,9 @@
# along with ronin-payloads. If not, see <https://www.gnu.org/licenses/>.
#

require 'ronin/payloads/payload'
require 'ronin/payloads/encoders/xml_encoder'
require_relative 'payload'
require_relative 'encoders/xml_encoder'

require 'ronin/support/encoding/xml'

module Ronin
Expand Down

0 comments on commit cb5641d

Please sign in to comment.