-
Notifications
You must be signed in to change notification settings - Fork 574
Modules args parsing rework #931
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
base: main
Are you sure you want to change the base?
Conversation
These commits refactor cli.py and loadermodule so that cli.py retrievse the list of modules from loadermodule.py. It also makes sure that loaded modules do have specific attributes. |
Okay! I'll rollback things you mentioned so that it matches current state :)! |
Quick thought of the top of my head: I think it is good to incentivize people to use class variables by using them to init and making them available there. What about the connection variable? Haven't tested that but i think it should work just as well as the others, as this should always be called when the connection object is already instantiated as a protocol. |
Already done my friend :D EDIT: just realized I didn't push that change rofl, 2 sec. ALthought keep in mind we'll have to check each and every futur modules because some of them do initiate self.connection, some use connection, some use connection.conn. It's a bit messy but doable ;) As of now the only 10 modules will work btw. |
Awesome 😄
That actually has a use case, because |
Yeah I got that, what I meant is that when adapting modules to the new module core, we'll have to be meticulous and not mix these conn* things together ahah! |
Todo:
|
This PR aims at reworking the entire module argparsing to make it easier to use. Currently the shadowrdp module works using the following command:
You can also list protocol options (which will list available modules
And list module options:
HUUUUUUGE WORK IN PROGRESS