New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Centralize networking #13750
Centralize networking #13750
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@h00die Overall looks good but I do question adding in the Depreciated aspect for these modules. They aren't really depreciated, we are just moving them. Whilst I get that the Depreciated module has a nice alias to indicate the file has moved, the side effect of this PR will be that all these modules are marked as depreciated and that they may not work as intended, which I don't think was what you were going after in some cases.
Additionally, there are also a few cases of odd prompts in some of the documentation which need fixing up before I'd be satisfied with merging this, and a few cases of missing info which we should ideally fix before merging.
Overall looks good though, and although GitHub did have some issues with diffing, I didn't see anything too odd, with the exception of those aforementioned issues.
The deprecated mixing should be transparent to the user, it's only used for the |
For the resource files, I always use them when creating/testing a module so I have a consistent, repeatable behavior. All of my module docs have them (and some I didnt write aws_ec2_instance_metadata.md): https://github.com/rapid7/metasploit-framework/search?l=Markdown&q=%22resource+%28%22 If this isn't appropriate, it would most likely be best to have one PR to fix every module doc at once. |
Ah okay, I think there were two things going on here. First I assumed that behavior would be invoked by default, which you are correct, it is not.
Edit: Yep I'm wrong again. Those accessors aren't used outside of that module. So looks like your all good, my apologies. |
If your loading a resource and then running a module, you should be showing how that resource is loaded as part of a complete overview of how to run the module. The steps shown currently lead me to believe that you had tried to load a resource previously that was unrelated to this current module and then just decided to run the current module after that was done. Also, and more importantly, there are several prompts that should clearly be starting with |
All of these resource prompts are part of the normal running of the resource file, as when running a file with a resource it echos out every command that is to be run and prepends it with Will merge this in shortly. |
@gwillcox-r7 hold on the merge, I'll fire up that juniper or brocade to address the one doc issue where I don't clearly show getting the initial prompt/shrll |
i went ahead and did |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good, I'll run a quick check over this to see whether or not there are any remaining issues but I do agree that whilst the RHOST explanation may raise complains by msftidy_docs.rb
, in this case they are needed to help explain how to use the module properly.
Should everything pass the compliance tests, I'm happy to merge this in.
Okay so looks like this passed the msftidy_docs.rb checks but I did see a few module corrections from Mistyping:
Some cases of potential simplifications that could be made with if/else:
Typo leading to potential side effects due to single = vs double = :
This command seems to be unnecessary given the following line, or at the very least the output from it doesn't need to be saved into
|
a few more rubocop cleanups done, should address the issues |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Changes look good, will merge this in shortly. There will be a few extra minor RuboCop and style improvements I made when I land this, but nothing too major, just about 3 areas where I saw small fixes that could be quickly implemented. There will still be some other RuboCop errors but I didn't feel they were worth worrying about for now in this PR.
…ry modules under networking directory
Original Release Notes This PR moves the auxiliary modules that were previously under |
Release NotesA number of auxiliary modules (includes ones in |
As per comment in slack a few days ago, this PR moves
/cisco
,/juniper
,/ubiquiti
,/brocade
all under one roof since there are minimal (usually 1) file in each folder. The new folder is/networking
.This pr does the following:
rubocop -a
on all the files. If it didn't auto-fix, I didn't investigate further as this isn't a clean-up PR, it's a move things to a better location PR.This is preparation to add additional config eaters such as Arista