Update Cheat Sheet.md

This commit is contained in:
AbdullahRizwan101 2020-11-03 13:48:42 -05:00 committed by GitHub
parent 22d01f00a7
commit 016ffa70f5
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -30,11 +30,16 @@
### NFS shares
* `showmount -e <ip> ` This lists the nfs shares
* `mount -t nfs <ip>:/<share_name> <directory_where_to_mount>` Mounting that share
### Finding Binaries
* find . - perm /4000 (user id uid)
* find . -perm /2000 (group id guid)
### Finding File capabilites
`getcap -r / 2>/dev/null`
### Changing file attributes
chattr + i filename `making file immutable`<br/>