-
-
Notifications
You must be signed in to change notification settings - Fork 244
/
graudit.in.1
65 lines (65 loc) · 1.94 KB
/
graudit.in.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
.\" $Id: template.in.1,v 1.1 2010/06/02 12:15:32 kristaps Exp $
.\"
.\" (C) Copyleft Eldar "Wireghoul" Marcussen - http://www.justanotherhacker.com.
.\"
.\" See mdoc(7) for further reference.
.\"
.Dd $Mdocdate: June 2 2010 $
.\" Replace the following with the name of your utility in UPPERCASE.
.Dt GRAUDIT 1
.Os
.
.Sh NAME
.\" Replace the following two lines as indicated.
.Nm graudit
.Nd source code auditing tool
.Sh SYNOPSIS
.Nm
.\" Add your utility's flags and arguments.
.Op Fl options
.Ar /path/to/scan
.Sh DESCRIPTION
.Nm
is a simple script and signature sets that allows you to find potential
security flaws in source code using the GNU utility grep.
.\" Document its arguments first.
Its arguments are as follows:
.Bl -tag -width Ds
.It Fl A
Scan ALL files
.It Fl c Ar num
Number of lines of context to display (Default: 2; one before and one after the matching line)
.It Fl d Ar database
Signature database to use
.It Fl h
Print short help message
.It Fl i
Case in-sensitive search
.It Fl l
Lists available database
.It Fl L
Prints line numbers in a paste friendly format for vim
.It Fl v
Print version number
.It Fl x
Exclude files matching this pattern
.It Fl z
Supress colors
.It Fl Z
High contrast colors
.It Ar /path/to/scan
Directory or files to scan
.El
.Pp
By default, graudit will scan most files and directories (excluding *.gz, *.zip, *.gif, *.jpg, *.png, .svn/, .git/ and .CVS/) under /path/to/scan using the default signature database and display two lines of context using the standard grep colors. Running graudit some/dir/ is the same as running graudit -c 1 -d default some/dir/
.Sh EXIT STATUS
.\" Change this if it's not the case.
The exit status is 0 if a signature match is found and 1 otherwise. An exit status of 2 means an error occurred.
.Sh SEE ALSO
.\" What other utilities have you referred to?
.Xr grep(1) graudit(7)
.Sh AUTHORS
.Nm
was written by
.\" Enter your contact information here.
.An Eldar Marcussen - http://www.justanotherhacker.com .