etc.git


etc

~ scripts and random things
git clone https://github.com/djnnvx/etc.git
log | files | refs | archive

xdr.dict (2151B)

      1 # XDR / RPC / NFS dictionary tokens. AFL feeds these into havoc-mutator
      2 # inserts/replaces, helping it produce structurally-valid sub-encodings
      3 # that flip past the early length checks into the deeper parsers.
      4 
      5 # --- XDR primitives ---
      6 "\x00\x00\x00\x00"  # 0
      7 "\x00\x00\x00\x01"  # 1
      8 "\x00\x00\x00\x04"  # 4 (min string len for many fields)
      9 "\x00\x00\x00\x10"  # 16
     10 "\x00\x00\x00\x40"  # 64
     11 "\x00\x00\x01\x00"  # 256
     12 "\xff\xff\xff\xff"  # -1 / huge unsigned
     13 
     14 # --- RPC envelope ---
     15 "\x00\x00\x00\x02"  # RPC version 2
     16 "\x00\x00\x00\x00"  # CALL direction
     17 "\x00\x00\x00\x01"  # REPLY direction
     18 "\x00\x00\x00\x00"  # MSG_ACCEPTED
     19 "\x00\x00\x00\x01"  # MSG_DENIED
     20 
     21 # --- Program numbers ---
     22 "\x00\x01\x86\xa0"  # PORTMAP 100000
     23 "\x00\x01\x86\xa3"  # NFS     100003
     24 "\x00\x01\x86\xa5"  # MOUNT   100005
     25 "\x00\x01\x86\xa6"  # RQUOTA  100011
     26 "\x00\x01\x86\xb5"  # NLM     100021
     27 "\x00\x01\x86\xb7"  # NSM     100024
     28 
     29 # --- NFS3 errors (RFC1813) ---
     30 "\x00\x00\x00\x00"  # NFS3_OK
     31 "\x00\x00\x00\x01"  # NFS3ERR_PERM
     32 "\x00\x00\x00\x02"  # NFS3ERR_NOENT
     33 "\x00\x00\x00\x05"  # NFS3ERR_IO
     34 "\x00\x00\x00\x0d"  # NFS3ERR_ACCES
     35 "\x00\x00\x00\x14"  # NFS3ERR_NOTDIR
     36 "\x00\x00\x00\x1c"  # NFS3ERR_NOSPC
     37 
     38 # --- NFS4 ops (the high-value ones for COMPOUND fuzzing) ---
     39 "\x00\x00\x00\x03"  # OP_ACCESS
     40 "\x00\x00\x00\x09"  # OP_GETATTR
     41 "\x00\x00\x00\x0a"  # OP_GETFH
     42 "\x00\x00\x00\x0f"  # OP_LOOKUP
     43 "\x00\x00\x00\x11"  # OP_NVERIFY
     44 "\x00\x00\x00\x12"  # OP_OPEN
     45 "\x00\x00\x00\x16"  # OP_PUTFH
     46 "\x00\x00\x00\x17"  # OP_PUTPUBFH
     47 "\x00\x00\x00\x18"  # OP_PUTROOTFH
     48 "\x00\x00\x00\x19"  # OP_READ
     49 "\x00\x00\x00\x1a"  # OP_READDIR
     50 "\x00\x00\x00\x1b"  # OP_READLINK
     51 "\x00\x00\x00\x21"  # OP_SECINFO
     52 "\x00\x00\x00\x25"  # OP_VERIFY
     53 "\x00\x00\x00\x26"  # OP_WRITE
     54 
     55 # --- NFS file types ---
     56 "\x00\x00\x00\x01"  # NF3REG
     57 "\x00\x00\x00\x02"  # NF3DIR
     58 "\x00\x00\x00\x03"  # NF3BLK
     59 "\x00\x00\x00\x05"  # NF3LNK
     60 "\x00\x00\x00\x06"  # NF3SOCK
     61 "\x00\x00\x00\x07"  # NF3FIFO
     62 
     63 # --- AUTH flavours ---
     64 "\x00\x00\x00\x00"  # AUTH_NONE
     65 "\x00\x00\x00\x01"  # AUTH_SYS
     66 "\x00\x00\x00\x06"  # RPCSEC_GSS
     67 
     68 # --- common path tokens that show up in dirpath/name strings ---
     69 "/"
     70 "/tmp"
     71 "/data"
     72 ".."
     73 "."