diff options
| author | cvs2svn <admin@example.com> | 1998-10-19 21:47:12 +0000 |
|---|---|---|
| committer | cvs2svn <admin@example.com> | 1998-10-19 21:47:12 +0000 |
| commit | 5170039cf1df2194faa85741f0733977525cd5c0 (patch) | |
| tree | c667406046ddb1efca5ed4316b02e43494241660 /src/usr.bin/nc/data/showmount.d | |
| parent | 536c76cbb863bab152f19842ab88772c01e922c7 (diff) | |
| download | openbsd-OPENBSD_2_4_BASE.tar.gz openbsd-OPENBSD_2_4_BASE.tar.bz2 openbsd-OPENBSD_2_4_BASE.zip | |
This commit was manufactured by cvs2git to create tag 'OPENBSD_2_4_BASE'.OPENBSD_2_4_BASE
Diffstat (limited to 'src/usr.bin/nc/data/showmount.d')
| -rw-r--r-- | src/usr.bin/nc/data/showmount.d | 63 |
1 files changed, 63 insertions, 0 deletions
diff --git a/src/usr.bin/nc/data/showmount.d b/src/usr.bin/nc/data/showmount.d new file mode 100644 index 0000000000..499794bc8a --- /dev/null +++ b/src/usr.bin/nc/data/showmount.d | |||
| @@ -0,0 +1,63 @@ | |||
| 1 | # UDP mountd call. Use as input to find mount daemons and avoid portmap. | ||
| 2 | # Useful proc numbers are 2, 5, and 6. | ||
| 3 | # UDP-scan around between 600-800 to find most mount daemons. | ||
| 4 | # Using this with "2", plugged into "nc -u -v -w 2 victim X-Y" will | ||
| 5 | # directly scan *and* dump the current exports when mountd is hit. | ||
| 6 | # combine stdout *and* stderr thru "strings" or something to clean it up | ||
| 7 | |||
| 8 | 000 # XID: 4 trash bytes | ||
| 9 | 001 | ||
| 10 | 002 | ||
| 11 | 003 | ||
| 12 | |||
| 13 | 000 # CALL: 0 | ||
| 14 | 000 | ||
| 15 | 000 | ||
| 16 | 000 | ||
| 17 | |||
| 18 | 000 # RPC version: 2 | ||
| 19 | 000 | ||
| 20 | 000 | ||
| 21 | 002 | ||
| 22 | |||
| 23 | 000 # mount: 100005 | ||
| 24 | 001 | ||
| 25 | 0x86 | ||
| 26 | 0xa5 | ||
| 27 | |||
| 28 | 000 # mount version: 1 | ||
| 29 | 000 | ||
| 30 | 000 | ||
| 31 | 001 | ||
| 32 | |||
| 33 | 000 # procedure number -- put what you need here: | ||
| 34 | 000 # 2 = dump [showmount -e] | ||
| 35 | 000 # 5 = exportlist [showmount -a] | ||
| 36 | xxx # "sed s/xxx/$1/ | data -g | nc ..." or some such... | ||
| 37 | |||
| 38 | 000 # port: junk | ||
| 39 | 000 | ||
| 40 | 000 | ||
| 41 | 000 | ||
| 42 | |||
| 43 | 000 # auth trash | ||
| 44 | 000 | ||
| 45 | 000 | ||
| 46 | 000 | ||
| 47 | |||
| 48 | 000 # auth trash | ||
| 49 | 000 | ||
| 50 | 000 | ||
| 51 | 000 | ||
| 52 | |||
| 53 | 000 # auth trash | ||
| 54 | 000 | ||
| 55 | 000 | ||
| 56 | 000 | ||
| 57 | |||
| 58 | 000 # extra auth trash? probably not needed | ||
| 59 | 000 | ||
| 60 | 000 | ||
| 61 | 000 | ||
| 62 | |||
| 63 | # that's it! | ||
