Codebase list ffuf / 53e4661
small changes on debian dir Pedro Loami Barbosa dos Santos 3 years ago
11 changed file(s) with 139 addition(s) and 159 deletion(s). Raw diff Collapse all Expand all
00 Format: https://www.debian.org/doc/packaging-manuals/copyright-format/1.0/
11 Upstream-Name: ffuf
2 Upstream-Contact: Joona Hoikkala <[email protected]>
2 Upstream-Contact: https://github.com/ffuf/ffuf/issues
33 Source: https://github.com/ffuf/ffuf
44
55 Files: *
6 Copyright: 2020 Joona Hoikkala
6 Copyright: 2018-2020 Joona Hoikkala <[email protected]>
77 License: MIT
88
99 Files: debian/*
240240 \fBffuf\fP \fB-w\fP params.txt:PARAM \fB-w\fP values.txt:VAL \fB-u\fP https://example.org/?PARAM=VAL \fB-mr\fP "VAL" \fB-c\fP
241241 .PP
242242 More information and examples: https://github.com/\fBffuf\fP/\fBffuf\fP
243 .PP
244 .SH AUTHOR
245 This manual page was written based on the author's README by Pedro Loami Barbosa dos Santos <[email protected]> for the Debian project (but may be used by others).
246
+0
-26
debian/gitlab-ci.yml less more
0 # auto-generated, DO NOT MODIFY.
1 # The authoritative copy of this file lives at:
2 # https://salsa.debian.org/go-team/ci/blob/master/config/gitlabciyml.go
3
4 image: stapelberg/ci2
5
6 test_the_archive:
7 artifacts:
8 paths:
9 - before-applying-commit.json
10 - after-applying-commit.json
11 script:
12 # Create an overlay to discard writes to /srv/gopath/src after the build:
13 - "rm -rf /cache/overlay/{upper,work}"
14 - "mkdir -p /cache/overlay/{upper,work}"
15 - "mount -t overlay overlay -o lowerdir=/srv/gopath/src,upperdir=/cache/overlay/upper,workdir=/cache/overlay/work /srv/gopath/src"
16 - "export GOPATH=/srv/gopath"
17 - "export GOCACHE=/cache/go"
18 # Build the world as-is:
19 - "ci-build -exemptions=/var/lib/ci-build/exemptions.json > before-applying-commit.json"
20 # Copy this package into the overlay:
21 - "GBP_CONF_FILES=:debian/gbp.conf gbp buildpackage --git-no-pristine-tar --git-ignore-branch --git-ignore-new --git-export-dir=/tmp/export --git-no-overlay --git-tarball-dir=/nonexistant --git-cleaner=/bin/true --git-builder='dpkg-buildpackage -S -d --no-sign'"
22 - "pgt-gopath -dsc /tmp/export/*.dsc"
23 # Rebuild the world:
24 - "ci-build -exemptions=/var/lib/ci-build/exemptions.json > after-applying-commit.json"
25 - "ci-diff before-applying-commit.json after-applying-commit.json"
+0
-60
debian/patches/00-a.diff less more
0 # Author: Pedro Loami Barbosa dos Santos <[email protected]>
1 # Date: May 11 202
2 # Description: This patch removes /pkg/filter/lines_test.go
3 Index: ffuf-1.0.2/pkg/filter/lines_test.go
4 ===================================================================
5 --- ffuf-1.0.2.orig/pkg/filter/lines_test.go
6 +++ ffuf-1.0.2/pkg/filter/lines_test.go
7 @@ -1,52 +0,0 @@
8 -package filter
9 -
10 -import (
11 - "strings"
12 - "testing"
13 -
14 - "github.com/ffuf/ffuf/pkg/ffuf"
15 -)
16 -
17 -func TestNewLineFilter(t *testing.T) {
18 - f, _ := NewLineFilter("200,301,400-410,500")
19 - linesRepr := f.Repr()
20 - if strings.Index(linesRepr, "200,301,400-410,500") == -1 {
21 - t.Errorf("Word filter was expected to have 4 values")
22 - }
23 -}
24 -
25 -func TestNewLineFilterError(t *testing.T) {
26 - _, err := NewLineFilter("invalid")
27 - if err == nil {
28 - t.Errorf("Was expecting an error from errenous input data")
29 - }
30 -}
31 -
32 -func TestLineFiltering(t *testing.T) {
33 - f, _ := NewLineFilter("200,301,402-450,500")
34 - for i, test := range []struct {
35 - input int64
36 - output bool
37 - }{
38 - {200, true},
39 - {301, true},
40 - {500, true},
41 - {4, false},
42 - {444, true},
43 - {302, false},
44 - {401, false},
45 - {402, true},
46 - {450, true},
47 - {451, false},
48 - } {
49 - var data []string
50 - for i := int64(0); i < test.input; i++ {
51 - data = append(data, "A")
52 - }
53 - resp := ffuf.Response{Data: []byte(strings.Join(data, " "))}
54 - filterReturn, _ := f.Filter(&resp)
55 - if filterReturn != test.output {
56 - t.Errorf("Filter test %d: Was expecing filter return value of %t but got %t", i, test.output, filterReturn)
57 - }
58 - }
59 -}
0 # Author: Pedro Loami Barbosa dos Santos <[email protected]>
1 # Date: May 11 202
2 # Description: This patch removes /pkg/filter/lines_test.go
3 Index: ffuf-1.0.2/pkg/filter/lines_test.go
4 ===================================================================
5 --- ffuf-1.0.2.orig/pkg/filter/lines_test.go
6 +++ ffuf-1.0.2/pkg/filter/lines_test.go
7 @@ -1,52 +0,0 @@
8 -package filter
9 -
10 -import (
11 - "strings"
12 - "testing"
13 -
14 - "github.com/ffuf/ffuf/pkg/ffuf"
15 -)
16 -
17 -func TestNewLineFilter(t *testing.T) {
18 - f, _ := NewLineFilter("200,301,400-410,500")
19 - linesRepr := f.Repr()
20 - if strings.Index(linesRepr, "200,301,400-410,500") == -1 {
21 - t.Errorf("Word filter was expected to have 4 values")
22 - }
23 -}
24 -
25 -func TestNewLineFilterError(t *testing.T) {
26 - _, err := NewLineFilter("invalid")
27 - if err == nil {
28 - t.Errorf("Was expecting an error from errenous input data")
29 - }
30 -}
31 -
32 -func TestLineFiltering(t *testing.T) {
33 - f, _ := NewLineFilter("200,301,402-450,500")
34 - for i, test := range []struct {
35 - input int64
36 - output bool
37 - }{
38 - {200, true},
39 - {301, true},
40 - {500, true},
41 - {4, false},
42 - {444, true},
43 - {302, false},
44 - {401, false},
45 - {402, true},
46 - {450, true},
47 - {451, false},
48 - } {
49 - var data []string
50 - for i := int64(0); i < test.input; i++ {
51 - data = append(data, "A")
52 - }
53 - resp := ffuf.Response{Data: []byte(strings.Join(data, " "))}
54 - filterReturn, _ := f.Filter(&resp)
55 - if filterReturn != test.output {
56 - t.Errorf("Filter test %d: Was expecing filter return value of %t but got %t", i, test.output, filterReturn)
57 - }
58 - }
59 -}
+0
-52
debian/patches/01-remove-test-regex.diff less more
0 # Author: Pedro Loami Barbosa dos Santos <[email protected]>
1 # Date: May 11 202
2 # Description: This patch removes /pkg/filter/regex_test.go
3 Index: ffuf-1.0.2/pkg/filter/regexp_test.go
4 ===================================================================
5 --- ffuf-1.0.2.orig/pkg/filter/regexp_test.go
6 +++ ffuf-1.0.2/pkg/filter/regexp_test.go
7 @@ -1,44 +0,0 @@
8 -package filter
9 -
10 -import (
11 - "strings"
12 - "testing"
13 -
14 - "github.com/ffuf/ffuf/pkg/ffuf"
15 -)
16 -
17 -func TestNewRegexpFilter(t *testing.T) {
18 - f, _ := NewRegexpFilter("s([a-z]+)arch")
19 - statusRepr := f.Repr()
20 - if strings.Index(statusRepr, "s([a-z]+)arch") == -1 {
21 - t.Errorf("Status filter was expected to have a regexp value")
22 - }
23 -}
24 -
25 -func TestNewRegexpFilterError(t *testing.T) {
26 - _, err := NewRegexpFilter("r((")
27 - if err == nil {
28 - t.Errorf("Was expecting an error from errenous input data")
29 - }
30 -}
31 -
32 -func TestRegexpFiltering(t *testing.T) {
33 - f, _ := NewRegexpFilter("s([a-z]+)arch")
34 - for i, test := range []struct {
35 - input string
36 - output bool
37 - }{
38 - {"search", true},
39 - {"text and search", true},
40 - {"sbarch in beginning", true},
41 - {"midd scarch le", true},
42 - {"s1arch", false},
43 - {"invalid", false},
44 - } {
45 - resp := ffuf.Response{Data: []byte(test.input)}
46 - filterReturn, _ := f.Filter(&resp)
47 - if filterReturn != test.output {
48 - t.Errorf("Filter test %d: Was expecing filter return value of %t but got %t", i, test.output, filterReturn)
49 - }
50 - }
51 -}
0 # Author: Pedro Loami Barbosa dos Santos <[email protected]>
1 # Date: May 11 202
2 # Description: This patch removes /pkg/filter/regex_test.go
3 Index: ffuf-1.0.2/pkg/filter/regexp_test.go
4 ===================================================================
5 --- ffuf-1.0.2.orig/pkg/filter/regexp_test.go
6 +++ ffuf-1.0.2/pkg/filter/regexp_test.go
7 @@ -1,44 +0,0 @@
8 -package filter
9 -
10 -import (
11 - "strings"
12 - "testing"
13 -
14 - "github.com/ffuf/ffuf/pkg/ffuf"
15 -)
16 -
17 -func TestNewRegexpFilter(t *testing.T) {
18 - f, _ := NewRegexpFilter("s([a-z]+)arch")
19 - statusRepr := f.Repr()
20 - if strings.Index(statusRepr, "s([a-z]+)arch") == -1 {
21 - t.Errorf("Status filter was expected to have a regexp value")
22 - }
23 -}
24 -
25 -func TestNewRegexpFilterError(t *testing.T) {
26 - _, err := NewRegexpFilter("r((")
27 - if err == nil {
28 - t.Errorf("Was expecting an error from errenous input data")
29 - }
30 -}
31 -
32 -func TestRegexpFiltering(t *testing.T) {
33 - f, _ := NewRegexpFilter("s([a-z]+)arch")
34 - for i, test := range []struct {
35 - input string
36 - output bool
37 - }{
38 - {"search", true},
39 - {"text and search", true},
40 - {"sbarch in beginning", true},
41 - {"midd scarch le", true},
42 - {"s1arch", false},
43 - {"invalid", false},
44 - } {
45 - resp := ffuf.Response{Data: []byte(test.input)}
46 - filterReturn, _ := f.Filter(&resp)
47 - if filterReturn != test.output {
48 - t.Errorf("Filter test %d: Was expecing filter return value of %t but got %t", i, test.output, filterReturn)
49 - }
50 - }
51 -}
+0
-16
debian/patches/10-fix-spelling.diff less more
0 # Author: Pedro Loami Barbosa dos Santos <[email protected]>
1 # Date: May 11 2020
2 # Description: Fix spelling on /pkg/ffuf/multierror.go
3 Index: ffuf-1.0.2/pkg/ffuf/multierror.go
4 ===================================================================
5 --- ffuf-1.0.2.orig/pkg/ffuf/multierror.go
6 +++ ffuf-1.0.2/pkg/ffuf/multierror.go
7 @@ -20,7 +20,7 @@ func (m *Multierror) Add(err error) {
8 func (m *Multierror) ErrorOrNil() error {
9 var errString string
10 if len(m.errors) > 0 {
11 - errString += fmt.Sprintf("%d errors occured.\n", len(m.errors))
12 + errString += fmt.Sprintf("%d errors occurred.\n", len(m.errors))
13 for _, e := range m.errors {
14 errString += fmt.Sprintf("\t* %s\n", e)
15 }
0 # Author: Pedro Loami Barbosa dos Santos <[email protected]>
1 # Date: May 11 2020
2 # Description: Fix spelling on /pkg/ffuf/multierror.go
3 Index: ffuf-1.0.2/pkg/ffuf/multierror.go
4 ===================================================================
5 --- ffuf-1.0.2.orig/pkg/ffuf/multierror.go
6 +++ ffuf-1.0.2/pkg/ffuf/multierror.go
7 @@ -20,7 +20,7 @@ func (m *Multierror) Add(err error) {
8 func (m *Multierror) ErrorOrNil() error {
9 var errString string
10 if len(m.errors) > 0 {
11 - errString += fmt.Sprintf("%d errors occured.\n", len(m.errors))
12 + errString += fmt.Sprintf("%d errors occurred.\n", len(m.errors))
13 for _, e := range m.errors {
14 errString += fmt.Sprintf("\t* %s\n", e)
15 }
0 10-fix-spelling.diff
1 00-a.diff
2 01-remove-test-regex.diff
0 10-fix-spelling.patch
1 00-a.patch
2 01-remove-test-regex.patch
0 Test-Command: ffuf -h
1 Restrictions: allow-stderr