localexploit_demo_template.erb 530 B

1234567891011121314
  1. Note: To run a local exploit, make sure you are at the msf prompt.
  2. Also, to check the session ID, use the ```sessions``` command.
  3. ```
  4. msf > use <%= mod.fullname %>
  5. msf <%= mod.type %>(<%= mod.shortname %>) > show targets
  6. ... a list of targets ...
  7. msf <%= mod.type %>(<%= mod.shortname %>) > set TARGET target-id
  8. msf <%= mod.type %>(<%= mod.shortname %>) > show options
  9. ... show and set options ...
  10. msf <%= mod.type %>(<%= mod.shortname %>) > set SESSION session-id
  11. msf <%= mod.type %>(<%= mod.shortname %>) > exploit
  12. ```