1. Tim Tomes
  2. Recon-ng

Issues

Issue #61 on hold

setg Option

WebBreacher
created an issue

In metasploit there is a "setg" option that sets a variable globally. This is really helpful when you are only looking for data on a single host|domain|person. Right now we either have to add them to the db, use a resource file or retype set domain|host|etc each time. Would be nice to be able to set the variable once within the app and it just default to that value. Workflow would be like:

setg domain example.com use modulename run back use modulename2 run back etc...

Comments (6)

  1. Quentin Kaiser

    Is this really necessary if modules default their options to the global options value (like domain) ? Maybe add a statement in the module developer documentation that says it's better to default values to the one that are set globally.

  2. Tim Tomes repo owner

    That is the guidance I provide during the review process.

    I think you may be missing the point of the proposed command. It would be so that you can set global options from within the context of a module as you are switching between modules. It's not a big deal. Just a thought to save some key strokes in rare occasion where you would need to do something like that. Not high on the list of priorities.

  3. WebBreacher reporter

    I agree that this feature is not very important with all the other changes you have already implemented in the code base. I'm cool with it just being closed.

  4. Log in to comment