Deleted debian/patches/00-teste.patch, debian/patches/series, debian/source/format, debian/changelog, debian/control, debian/copyright, debian/gbp.conf, debian/gitlab-ci.yml, debian/rules, debian/watch files
Pedro Loami Barbosa dos Santos
3 years ago
0 | ffuf (1.0.2-1) UNRELEASED; urgency=medium | |
1 | ||
2 | * Initial release (Closes: 960067) | |
3 | ||
4 | -- Pedro Loami Barbosa dos Santos <[email protected]> Mon, 11 May 2020 14:43:40 -0300 |
0 | Source: ffuf | |
1 | Maintainer: Pedro Loami Barbosa dos Santos <[email protected]> | |
2 | Section: utils | |
3 | Testsuite: autopkgtest-pkg-go | |
4 | Priority: optional | |
5 | Build-Depends: debhelper-compat (= 13), | |
6 | dh-golang, | |
7 | golang-any | |
8 | Standards-Version: 4.5.0 | |
9 | Vcs-Browser: https://salsa.debian.org/debian/ffuf | |
10 | Vcs-Git: https://salsa.debian.org/debian/ffuf.git | |
11 | Homepage: https://github.com/ffuf/ffuf | |
12 | Rules-Requires-Root: no | |
13 | XS-Go-Import-Path: github.com/ffuf/ffuf | |
14 | ||
15 | Package: ffuf | |
16 | Architecture: any | |
17 | Depends: ${misc:Depends}, | |
18 | ${shlibs:Depends} | |
19 | Built-Using: ${misc:Built-Using} | |
20 | Description: Fast web fuzzer written in Go | |
21 | FFUF is a program written in go that allows GET & POST parameters fuzzing, | |
22 | virtual host discovery and typical directory discovery. |
0 | Format: https://www.debian.org/doc/packaging-manuals/copyright-format/1.0/ | |
1 | Upstream-Name: ffuf | |
2 | Upstream-Contact: Joona Hoikkala <[email protected]> | |
3 | Source: https://github.com/ffuf/ffuf | |
4 | ||
5 | Files: * | |
6 | Copyright: 2020 Joona Hoikkala | |
7 | License: MIT | |
8 | ||
9 | Files: debian/* | |
10 | Copyright: 2020 Pedro Loami Barbosa dos Santos <[email protected]> | |
11 | License: MIT | |
12 | Comment: Debian packaging is licensed under the same terms as upstream | |
13 | ||
14 | License: MIT | |
15 | Permission is hereby granted, free of charge, to any person obtaining a copy | |
16 | of this software and associated documentation files (the "Software"), to deal | |
17 | in the Software without restriction, including without limitation the rights | |
18 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell | |
19 | copies of the Software, and to permit persons to whom the Software is | |
20 | furnished to do so, subject to the following conditions: | |
21 | . | |
22 | The above copyright notice and this permission notice shall be included in all | |
23 | copies or substantial portions of the Software. | |
24 | . | |
25 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR | |
26 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, | |
27 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE | |
28 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER | |
29 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, | |
30 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE | |
31 | SOFTWARE. |
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 | Index: ffuf/pkg/filter/lines_test.go | |
1 | =================================================================== | |
2 | --- ffuf.orig/pkg/filter/lines_test.go | |
3 | +++ ffuf/pkg/filter/lines_test.go | |
4 | @@ -1,51 +1 @@ | |
5 | -package filter | |
6 | -import ( | |
7 | - "strings" | |
8 | - "testing" | |
9 | - | |
10 | - "github.com/ffuf/ffuf/pkg/ffuf" | |
11 | -) | |
12 | - | |
13 | -func TestNewLineFilter(t *testing.T) { | |
14 | - f, _ := NewLineFilter("200,301,400-410,500") | |
15 | - linesRepr := f.Repr() | |
16 | - if strings.Index(linesRepr, "200,301,400-410,500") == -1 { | |
17 | - t.Errorf("Word filter was expected to have 4 values") | |
18 | - } | |
19 | -} | |
20 | - | |
21 | -func TestNewLineFilterError(t *testing.T) { | |
22 | - _, err := NewLineFilter("invalid") | |
23 | - if err == nil { | |
24 | - t.Errorf("Was expecting an error from errenous input data") | |
25 | - } | |
26 | -} | |
27 | - | |
28 | -func TestLineFiltering(t *testing.T) { | |
29 | - f, _ := NewLineFilter("200,301,402-450,500") | |
30 | - for i, test := range []struct { | |
31 | - input int64 | |
32 | - output bool | |
33 | - }{ | |
34 | - {200, true}, | |
35 | - {301, true}, | |
36 | - {500, true}, | |
37 | - {4, false}, | |
38 | - {444, true}, | |
39 | - {302, false}, | |
40 | - {401, false}, | |
41 | - {402, true}, | |
42 | - {450, true}, | |
43 | - {451, false}, | |
44 | - } { | |
45 | - var data []string | |
46 | - for i := int64(0); i < test.input; i++ { | |
47 | - data = append(data, "A") | |
48 | - } | |
49 | - resp := ffuf.Response{Data: []byte(strings.Join(data, " "))} | |
50 | - filterReturn, _ := f.Filter(&resp) | |
51 | - if filterReturn != test.output { | |
52 | - t.Errorf("Filter test %d: Was expecing filter return value of %t but got %t", i, test.output, filterReturn) | |
53 | - } | |
54 | - } | |
55 | -} | |
56 | +# empty file |