Skip to content

Latest commit

 

History

History
160 lines (112 loc) · 9.6 KB

linux-privilege-escalation-checklist.md

File metadata and controls

160 lines (112 loc) · 9.6 KB
descrição
Checklist para escalar privilégio no Linux

Checklist - Escalação de privilégio Linux

{% hint style="danger" %} Do you use Hacktricks every day? Did you find the book very useful? Would you like to receive extra help with cybersecurity questions? Would you like to find more and higher quality content on Hacktricks?
Support Hacktricks through github sponsors so we can dedicate more time to it and also get access to the Hacktricks private group where you will get the help you need and much more! {% endhint %}

If you want to know about my latest modifications/additions or you have any suggestion for HackTricks or PEASS, join the 💬telegram group, or follow me on Twitter 🐦@carlospolopm.
If you want to share some tricks with the community you can also submit pull requests to https://github.com/carlospolop/hacktricks that will be reflected in this book and don't forget to give ⭐ on github to motivate me to continue developing this book.

Melhor ferramenta para encontrar vetores de escalação de privilégio em Linux: LinPEAS****

  • Listar dispositovos montados
  • Algum dispositivo não montado?
  • Alguma credencial no fstab?
  1. Checar por programas uteis instalados
  2. Checar por programas vulneraveis instalados
  • Tem algum programa desconhecido rodando?
  • Tem algum programa rodando com maior privilégio do que deveria?
  • Procure por exploits para os processos rodando (especialmente as versões)
  • Você pode modificar o binário de algum processo rodando?
  • Monitorar processos e checar se tem algum processo interessante rodando frequentemente
  • Você pode ler algo interessante na memória do processo (Onde senhas podem ser salvas)?
  • Algum arquivo .service com permissão de esrita?
  • Any writable binary executed by a service?
  • Any writable folder in systemd PATH?
  • Any writable timer?
  • Any writable .socket file?
  • Can you communicate with any socket?
  • HTTP sockets with interesting info?
  • Can you communicate with any D-Bus?
  • Enumerate the network to know where you are
  • Open ports you couldn't access before getting a shell inside the machine?
  • Can you sniff traffic using tcpdump?
  • Generic users/groups enumeration
  • Do you have a very big UID? Is the machine vulnerable?
  • Can you escalate privileges thanks to a group you belong to?
  • Clipboard data?
  • Password Policy?
  • Try to use every known password that you have discovered previously to login with each possible user. Try to login also without password.
  • If you have write privileges over some folder in PATH you may be able to escalate privileges
  • Tem algum binário com alguma capability não esperada?
  • Has any file any unexpected ACL?
  • screen?
  • tmux?
  • Profile files - Read sensitive data? Write to privesc?
  • passwd/shadow files - Read sensitive data? Write to privesc?
  • Check commonly interesting folders for sensitive data
  • Weird Localtion/Owned files, you may have access or alter executable files
  • Modified in last mins
  • Sqlite DB files
  • Hidden files
  • Script/Binaries in PATH
  • Web files (passwords?)
  • Backups?
  • Known files that contains passwords: Use Linpeas and LaZagne
  • Generic search
  • Modify python library to execute arbitrary commands?
  • Can you modify log files? Logtotten exploit
  • Can you modify /etc/sysconfig/network-scripts/? Centos/Redhat exploit
  • Can you write in ini, int.d, systemd or rc.d files?

****Other tricks****

If you want to know about my latest modifications/additions or you have any suggestion for HackTricks or PEASS, ****join the 💬 ****PEASS & HackTricks telegram group here, or follow me on Twitter 🐦@carlospolopm.
If you want to share some tricks with the community you can also submit pull requests to ****https://github.com/carlospolop/hacktricks ****that will be reflected in this book.
Don't forget to give ⭐ on the github to motivate me to continue developing this book.

Buy me a coffee here****