Set a persistent option:

setg LHOST ...

Advanced search:

search type:exploit platform:windows cve:2021 rank:excellent microsoft

Targets

When working with modules requiring a specific target type, we can specify it.

List current target list:

msf exploit(windows/smb/ms17_010_psexec) > show targets

Exploit targets:
=================

    Id  Name
    --  ----
=>  0   Automatic
    1   PowerShell
    2   Native upload
    3   MOF upload

To specify a specific:

set target 1

Jobs

To run in a new job:

run -j

Writeup Sessions