summaryrefslogtreecommitdiff
path: root/src/usr.bin/nc/data/showmount.d
diff options
context:
space:
mode:
authorcvs2svn <admin@example.com>1998-10-19 21:47:12 +0000
committercvs2svn <admin@example.com>1998-10-19 21:47:12 +0000
commit5170039cf1df2194faa85741f0733977525cd5c0 (patch)
treec667406046ddb1efca5ed4316b02e43494241660 /src/usr.bin/nc/data/showmount.d
parent536c76cbb863bab152f19842ab88772c01e922c7 (diff)
downloadopenbsd-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.d63
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
8000 # XID: 4 trash bytes
9001
10002
11003
12
13000 # CALL: 0
14000
15000
16000
17
18000 # RPC version: 2
19000
20000
21002
22
23000 # mount: 100005
24001
250x86
260xa5
27
28000 # mount version: 1
29000
30000
31001
32
33000 # procedure number -- put what you need here:
34000 # 2 = dump [showmount -e]
35000 # 5 = exportlist [showmount -a]
36xxx # "sed s/xxx/$1/ | data -g | nc ..." or some such...
37
38000 # port: junk
39000
40000
41000
42
43000 # auth trash
44000
45000
46000
47
48000 # auth trash
49000
50000
51000
52
53000 # auth trash
54000
55000
56000
57
58000 # extra auth trash? probably not needed
59000
60000
61000
62
63# that's it!