-
Notifications
You must be signed in to change notification settings - Fork 0
/
sambascan2.1
88 lines (88 loc) · 3.18 KB
/
sambascan2.1
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
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
.\" hey, Emacs: -*- nroff -*-
.\" sambascan2 is free software; you can redistribute it and/or modify
.\" it under the terms of the GNU General Public License as published by
.\" the Free Software Foundation; either version 2 of the License, or
.\" (at your option) any later version.
.\"
.\" This program is distributed in the hope that it will be useful,
.\" but WITHOUT ANY WARRANTY; without even the implied warranty of
.\" MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
.\" GNU General Public License for more details.
.\"
.\" You should have received a copy of the GNU General Public License
.\" along with this program; see the file COPYING. If not, write to
.\" the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA.
.\"
.TH SAMBASCAN2 1 "February 01, 2011"
.\" Please update the above date whenever this man page is modified.
.\"
.\" Some roff macros, for reference:
.\" .nh disable hyphenation
.\" .hy enable hyphenation
.\" .ad l left justify
.\" .ad b justify to both left and right margins (default)
.\" .nf disable filling
.\" .fi enable filling
.\" .br insert line break
.\" .sp <n> insert n+1 empty lines
.\" for manpage-specific macros, see man(7)
.SH NAME
sambascan2 \- This programm search windows shares (SMB, Samba) in a given network
.SH SYNOPSIS
.B sambascan2
.RI [ options ]
.SH DESCRIPTION
\fBsambascan2\fP can search for Shares in a Windows Network (networks using the SMB protocol or Unix servers running Samba). After the shares are found the script try to list the contents of any public share, or use a given login and password to list the concents of password protected shares. It generates than an index of those files.
.PP
It also can search in the indexed files and show you where you can find a given file.
.PP
The indexed files and the temporary files will be stored in ~/.sambascan2. Please note that the account and password information will be stored in plaintext in the directory. So use these option with care.
.SH OPTIONS
\fBsambascan2\fP accepts the following options:
.TP
.B \-h, \-\-help
Show summary of options.
.TP
.B \-v, \-\-version
Show version of program.
.TP
.B \-V, \-\-verbose
Sets the verbosity level of sambascan. 0=quiet/error, 1=warn, 2=info, 3=debug.
.TP
.B \-o, \-\-oldhosts
Re-scan all hosts where there were shares found.
.TP
.B \-f, \-\-file <file>
Scan hosts listed in file.
.TP
.B \-n, \-\-nohome
Don't scan the "home" shares.
.TP
.B \-H, \-\-nohidden
Don't scan the "hidden" shares.
.TP
.B \-s, \-\-sname <name>
Search in the index for a given file. May be used multiple times.
.TP
.B \-m, \-\-sizemin <size>
Found files must be at least this large (bytes).
.TP
.B \-M, \-\-sizemax <size>
Found files must be at most this large (bytes).
.TP
.B \-a, \-\-add <hostname> <user> <password> [ip] [share]
Add a login to the logins list.
.TP
.B \-g, \-\-get <hostname> [ip]
Get the login for a given host/share.
.TP
.B \-d, \-\-delete <hostname> [ip]
Delete the login information for a given host.
.TP
.B \-l, \-\-listauth
List all login information in the login-file.
.\" .SH "SEE ALSO"
.\" .BR foo (1),
.\" .BR bar (1).
.SH AUTHOR
Claudio Andr\['e] Till Clemens <[email protected]>.