Skip to content

Conversation

@moozzi
Copy link
Member

@moozzi moozzi commented Aug 30, 2024

postmodern and others added 15 commits August 19, 2024 15:36
This worker will accept a domain as input and, given a valid API key,
will return a list of subdomain hosts by querying the Security Trails API.

---------

Co-authored-by: Postmodern <[email protected]>
…n-rb#158).

* Some workers will need to accept values, process/save them, but not
  yield any Values themselves (ex: `web/wordlist` and `web/screenshot`).
…rb#165).

* Left behind an alias for `ronin-recon test` to
  `ronin-recon run-worker`.
---------

Co-authored-by: Postmodern <[email protected]>
@moozzi moozzi force-pushed the add_archive_and_git_archive_output_formats branch from c086226 to 5d844e0 Compare August 30, 2024 14:00
@moozzi moozzi self-assigned this Aug 30, 2024
Copy link
Member

@postmodern postmodern left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Sub-classing Ronin::Web::Spider::Archive classes might come back to bite us, if we ever change their APIs or if we add a << method to them. Using composition and initializing ivars might be a better option.

#
# Represents a web archive directory.
#
class Archive < Ronin::Web::Spider::Archive
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Sub-classing Ronin::Web::Spider::Archive might cause problems for us in the future if we ever change it's API. Might be safer to initialize it as an ivar in initialize.

# The path to the root directory.
#
def initialize(root)
super(root)
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Might be safer to initialize Ronin::Web::Spider::GitArchive as an ivar.

Copy link
Member

@postmodern postmodern left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

To avoid confusion, we should name these new output formats web_archive and git_web_archive (or web_git_archive). This should indicate to the user that only the URLs will be saved into the archive.

@moozzi moozzi force-pushed the add_archive_and_git_archive_output_formats branch from 5d844e0 to 8d62799 Compare September 1, 2024 16:49
Copy link
Member

@postmodern postmodern left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Forgot to rename the classes to match the output-format names.

register :png, '.png', PNG
register :pdf, '.pdf', PDF
register :web_archive, '', Archive
register :web_git_archive, '', GitArchive
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Rename classes to WebArchive and GitArchive.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The file-exts can be omitted now that they are optional.

#
# Represents a web archive directory.
#
class Archive
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Rename class to WebArchive.

#
# Represents a web archive directory that is backed by Git.
#
class GitArchive
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Rename class to WebGitArchive.

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants