Code Monkey home page Code Monkey logo

Comments (4)

epi052 avatar epi052 commented on May 31, 2024

Add new command line option checklist

  • config.rs
    • add new value to Configuration struct
    • update Configuration::default with new value
    • update Configuration docstring with the new value/default (if appropriate)
    • update Configuration::new so that the new value is stored in config
    • update Configuration::merge_config with new value
    • update Configuration::tests::setup_config_test with new value
    • add unit test to check config parsing
  • ferox-config.toml.example
    • add new value to example config
  • banner.rs
    • add new check for the value in banner::initialize
    • create new entry to be written in the banner for the new value
      • add new emoji to the entry (should be somewhat related to the value name)
    • add new integration test (tests/test_banner) or update existing so that it's displayed under test
  • Cargo.toml
    • bump version: add 1 to minor release and set patch release to 0
  • README.md
    • update default config section (if needed)
    • update example config file section
    • update help output section
    • add an example with a heading that conforms to others (new in v1.4.0...)
      • add an entry for the example in the table of contents
  • parser.rs
    • add the option to the parser
  • wherever.rs
    • implement the new feature

from feroxbuster.

epi052 avatar epi052 commented on May 31, 2024

The actual implementation will look something like

  • add word count / line count filter to filters.rs where each one implements the FeroxFilter trait
  • within scanner::scan_url, use add_filter_to_list_of_ferox_filters in order to register w/e filters the user specifies

consider breaking out all of the 'add filters' code from scan_url to another function; scan_url has a lot going on and continuing to add new filters to it probably isn't the best long term decision

Example: https://github.com/epi052/feroxbuster/blob/master/src/scanner.rs#L671

from feroxbuster.

epi052 avatar epi052 commented on May 31, 2024

There's also an implicit update to the format of reported urls here.

Current output looks like this (no word count or line count for the response is shown)

200       4133 https://somecompany.com

For word count and line count filters to be useful, that info would need ot be provided.

from feroxbuster.

epi052 avatar epi052 commented on May 31, 2024

Closed by PR #122

from feroxbuster.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.