-
Notifications
You must be signed in to change notification settings - Fork 14k
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
FTP protocol implementation #8762
Conversation
This would be good to go ahead and add support in the FTP mixin for using this. Also run rubocop on the library and fix any errors you see. |
All right, I modified the code to reduce rubocop offenses from 99 to 52. Things changed
Things ignored
That redundant self suggestion was ignored because I went through a lot of code written by many people and most of them seem to use self the way I did. It would be great if I could get some feedback about that! As discussed, support for using this in the other two FTP mixins -
will be added in a separate PR after a little more testing. |
This looks good; your rubocop decisions are spot on, I think. I was thinking this would replace the copy-pasta versions in |
All right, I'll get started with that! Changing the code itself shouldn't be a big deal, I'm kind of worried about breaking things though! I will change the mixins to use this FTP client implementation and then maybe try out a couple of modules/exploits which used those mixins to make sure everything is fine. |
Since this is pure library code, I'm going to go ahead and land it, with a follow-up PR expected for actually using it. |
Adding an FTP protocol implementation with a few primitive functions - ls, cd, pwd, upload and download to the framework. Metasploit already had ftp mixins under '/lib/metasploit/framework/ftp/client.rb', but there was no standalone class. I have used code from existing mixins to create this implementation.