Skip to content

Missing require #2

Description

@4strozombie

With the current form of the script, it would error out when uploading the ear file with the following message:

Uploading EAR file...
Traceback (most recent call last):
4: from me.rb:360:in <main>' 3: from /var/lib/gems/2.7.0/gems/librex-0.0.999/lib/rex/zip/archive.rb:107:in pack'
2: from /var/lib/gems/2.7.0/gems/librex-0.0.999/lib/rex/zip/archive.rb:107:in each' 1: from /var/lib/gems/2.7.0/gems/librex-0.0.999/lib/rex/zip/archive.rb:109:in block in pack'
/var/lib/gems/2.7.0/gems/librex-0.0.999/lib/rex/zip/blocks.rb:119:in pack': undefined method blank?' for nil:NilClass (NoMethodError)

I was able to resolve this and get the exploit working by requiring the ActiveSupport gem (require 'active_support').

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions