Skip to content

Default to the most recent session#21412

Open
zeroSteiner wants to merge 1 commit intorapid7:masterfrom
zeroSteiner:feat/default-session-id
Open

Default to the most recent session#21412
zeroSteiner wants to merge 1 commit intorapid7:masterfrom
zeroSteiner:feat/default-session-id

Conversation

@zeroSteiner
Copy link
Copy Markdown
Contributor

Metasploit has supported referencing the most recent session as -1 for quite some time now. This updates post and local exploits to default to the most recent session by setting SESSION to -1 by default.

Verification

List the steps needed to make sure this thing works

  • Start msfconsole
  • Use any post module
  • See the session defaults to -1, the most recent session now

@adfoster-r7
Copy link
Copy Markdown
Contributor

This feels like a pretty big change in default behavior, just to confirm: are we sure we want to guess the sessions that people want modules to run against? 🤔

Just wondering if this PR is more aimed at optimizing developer worklows rather than solving user worklow issues 👀

@zeroSteiner
Copy link
Copy Markdown
Contributor Author

I think it's reasonable. I would have appreciated it when I was a user. It beats prompting for the session each time.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

easy rn-enhancement release notes enhancement

Projects

Status: Todo

Development

Successfully merging this pull request may close these issues.

3 participants