File: showmount.d

package info (click to toggle)
netcat 1.10-41.1
  • links: PTS
  • area: main
  • in suites: bullseye, buster, sid
  • size: 1,740 kB
  • ctags: 2,172
  • sloc: ansic: 1,830; sh: 796; makefile: 128
file content (63 lines) | stat: -rw-r--r-- 921 bytes parent folder | download | duplicates (10)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
# UDP mountd call.  Use as input to find mount daemons and avoid portmap.
# Useful proc numbers are 2, 5, and 6.
# UDP-scan around between 600-800 to find most mount daemons.
# Using this with "2", plugged into "nc -u -v -w 2 victim X-Y" will
# directly scan *and* dump the current exports when mountd is hit.
# combine stdout *and* stderr thru "strings" or something to clean it up

000	# XID: 4 trash bytes
001
002
003

000	# CALL: 0
000
000
000

000	# RPC version: 2
000
000
002

000	# mount: 100005
001
0x86
0xa5

000	# mount version: 1
000
000
001

000	# procedure number -- put what you need here:
000	#	2 = dump  [showmount -e]
000	#	5 = exportlist [showmount -a]
xxx	# "sed s/xxx/$1/ | data -g | nc ..."  or some such...

000	# port: junk
000
000
000

000	# auth trash
000
000
000

000	# auth trash
000
000
000

000	# auth trash
000
000
000

000	# extra auth trash?  probably not needed
000
000
000

# that's it!