Skip to content
Snippets Groups Projects
Commit 80c407d6 authored by Jiří Rája's avatar Jiří Rája
Browse files

Added session types warning

parent 3d15be99
Branches
Tags
No related merge requests found
...@@ -217,6 +217,16 @@ he is using, the *use_any_session_to_target* parameter can be used. ...@@ -217,6 +217,16 @@ he is using, the *use_any_session_to_target* parameter can be used.
... ...
``` ```
!!! warning "Session types"
Metasploit Framework supports two types of sessions.
The first is a shell session, you can run any shell commands you want.
The second is called Meterpreter. It allows you to use it's provided commands, such as `ifconfig` or `sysinfo`.
To run a command in a shell, you need to use the `execute` command with the `-f`, `-i`, and `-a` options (`execute -f <command> -i -a <arguments>`).
In some cases, the command execution can fail. Before creating a plan, make sure it works for your target system/exploit.
## Output sharing ## Output sharing
Output sharing is used for sharing gained data (*serialized_output*) between multiple steps. To go through the data we use a modified Output sharing is used for sharing gained data (*serialized_output*) between multiple steps. To go through the data we use a modified
version of a dot notation. version of a dot notation.
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment