Skip to content
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 help for "edit" and "log" commands #18031

Merged
merged 1 commit into from
May 30, 2023
Merged

Conversation

wvu
Copy link
Contributor

@wvu wvu commented May 26, 2023

Talking about LocalEditor and LocalPager.

Talking about `LocalEditor` and `LocalPager`.
Copy link
Contributor

@gwillcox-r7 gwillcox-r7 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks great, nice work!

@gwillcox-r7
Copy link
Contributor

With changes:

msf6 > help edit
Usage: edit [file/to/edit]

Edit the currently active module or a local file with /usr/bin/vi.
To change the preferred editor, you can "setg LocalEditor".
If a library file is specified, it will automatically be reloaded after editing.
Otherwise, you can reload the active module with "reload" or "rerun".

msf6 > setg LocalEditor rubymine
LocalEditor => rubymine
msf6 > edit /tmp/test
CompileCommand: exclude com/intellij/openapi/vfs/impl/FilePartNodeRoot.trieDescend bool exclude = true
[-] /tmp/test must exist and be a .rb file
msf6 > help log
Usage: log

Display framework.log paged to the end if possible.
To change the preferred pager, you can "setg LocalPager".
For full effect, "setg LogLevel 3" before running modules.

Log location: /home/tekwizz123/.msf4/logs/framework.log

msf6 > 

@gwillcox-r7 gwillcox-r7 merged commit 42d4c73 into rapid7:master May 30, 2023
@gwillcox-r7
Copy link
Contributor

Release Notes

Updates edit and log commands to explain to how to set LocalEditorand LocalPager so that users can adjust the editor that is used when running the edit command and/or the log file that is used for logging module runtime information.

@gwillcox-r7 gwillcox-r7 added the rn-enhancement release notes enhancement label May 30, 2023
@wvu wvu deleted the patch-2 branch May 30, 2023 16:46
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
Archived in project
Development

Successfully merging this pull request may close these issues.

3 participants