-
Notifications
You must be signed in to change notification settings - Fork 13.8k
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
Improve tab completion for set
command.
#18270
Merged
Merged
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
It's been a hot minute since I've been in the code base, happy to make any needed changes (or perhaps this becomes an example of Cunningham's law and someone writes a better solution... 😸). |
pbarry25
force-pushed
the
fix/set-cmd-tab-completion
branch
from
August 6, 2023 23:22
22e2711
to
ebf7085
Compare
Also minor improvement for tab completion with the `unset` command. Fixes rapid7#18217.
pbarry25
force-pushed
the
fix/set-cmd-tab-completion
branch
from
August 6, 2023 23:32
ebf7085
to
765ff28
Compare
Works as expected along with Following the verification steps:
|
TYSM for kicking the t[iy]res, @sjanusz-r7! 👋 🙂 |
Release NotesImproves tab completion for the |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Tell us what this change does. If you're fixing a bug, please mention
the github issue number. ✅
set
command.unset
command.Fixes #18217.
Please ensure you are submitting from a unique branch in your repository to master in Rapid7's. ✅
Verification
List the steps needed to make sure this thing works
NOTE: that
<TAB>
seen below indicates pressing the tab key to initiate tab completion via the console.msfconsole
set <TAB><TAB>
-c
,--clear
,-g
,--global
,-h
,--help
)set Log<TAB>
set LogLevel
set -<TAB><TAB>
-c
,--clear
,-g
,--global
,-h
, and--help
options offered-<TAB><TAB>
(so that your command now looks likeset --<TAB><TAB>
)--clear
,--global
,--help
options offeredc<TAB>
to tab complete as--clear
set --clear
<TAB><TAB>
ConsoleLogging
,LogLevel
,MeterpreterPrompt
, etc.L<TAB>
set --clear LogLevel
use exploit/multi/handler
set PAY<TAB>
set PAYLOAD
<TAB><TAB>
n
to not list all PAYLOADSset LH<TAB>
set LHOST
set --clear LH<TAB>
set --clear LHOST