Skip to content

Commit 46010b2

Browse files
authored
Merge pull request #300 from edoardottt/devel
Devel
2 parents 336fc47 + 8860749 commit 46010b2

File tree

8 files changed

+20
-23
lines changed

8 files changed

+20
-23
lines changed

.github/workflows/codeql.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -37,14 +37,14 @@ jobs:
3737
- name: Checkout repository
3838
uses: actions/checkout@v4
3939
with:
40-
go-version: '1.24'
40+
go-version: '1.25'
4141

4242
# Initializes the CodeQL tools for scanning.
4343
- name: Initialize CodeQL
4444
uses: github/codeql-action/init@v3
4545
with:
4646
languages: ${{ matrix.language }}
47-
go-version: '1.23'
47+
go-version: '1.25'
4848
# If you wish to specify custom queries, you can do so here or in a config file.
4949
# By default, queries listed here will override any specified in a config file.
5050
# Prefix the list here with "+" to use these queries and those in the config file.
@@ -58,7 +58,7 @@ jobs:
5858
- name: Autobuild
5959
uses: github/codeql-action/autobuild@v3
6060
with:
61-
go-version: '1.23'
61+
go-version: '1.25'
6262

6363
# ℹ️ Command-line programs to run using the OS shell.
6464
# 📚 See https://docs.github.com/en/actions/using-workflows/workflow-syntax-for-github-actions#jobsjob_idstepsrun
@@ -73,5 +73,5 @@ jobs:
7373
- name: Perform CodeQL Analysis
7474
uses: github/codeql-action/analyze@v3
7575
with:
76-
go-version: '1.23'
76+
go-version: '1.25'
7777
category: "/language:${{matrix.language}}"

.github/workflows/go.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ jobs:
1919
- name: Set up Go
2020
uses: actions/setup-go@v5
2121
with:
22-
go-version: 1.24
22+
go-version: 1.25
2323

2424
- name: Build
2525
run: go build -v ./...

.github/workflows/golangci-lint.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -18,13 +18,13 @@ jobs:
1818
steps:
1919
- uses: actions/setup-go@v5
2020
with:
21-
go-version: 1.24
21+
go-version: 1.25
2222
- uses: actions/checkout@v4
2323
- name: golangci-lint
24-
uses: golangci/golangci-lint-action@v8
24+
uses: golangci/golangci-lint-action@v9
2525
with:
2626
# Optional: version of golangci-lint to use in form of v1.2 or v1.2.3 or `latest` to use the latest version
27-
version: v2.3.0
27+
version: v2.11.3
2828
args: --timeout=5m
2929

3030
# Optional: working directory, useful for monorepos

.github/workflows/release-binary.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ jobs:
1818
- name: "Set up Go"
1919
uses: actions/setup-go@v5
2020
with:
21-
go-version: 1.24
21+
go-version: 1.25
2222

2323
- name: "Create release on GitHub"
2424
timeout-minutes: 10

.github/workflows/release-test.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ jobs:
1919
- name: Set up Go
2020
uses: actions/setup-go@v5
2121
with:
22-
go-version: 1.24
22+
go-version: 1.25
2323

2424
- name: release test
2525
uses: goreleaser/goreleaser-action@v6

go.mod

Lines changed: 7 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,25 +1,17 @@
11
module github.com/edoardottt/pphack
22

3-
go 1.24.0
3+
go 1.25.0
44

55
require (
66
github.com/chromedp/chromedp v0.14.2
77
github.com/edoardottt/golazy v0.1.4
88
github.com/projectdiscovery/goflags v0.1.74
99
github.com/projectdiscovery/gologger v1.1.68
10-
github.com/projectdiscovery/utils v0.9.0
10+
github.com/projectdiscovery/utils v0.10.0
1111
github.com/stretchr/testify v1.11.1
1212
go.uber.org/ratelimit v0.3.1
1313
)
1414

15-
require (
16-
github.com/djherbis/times v1.6.0 // indirect
17-
github.com/logrusorgru/aurora/v4 v4.0.0 // indirect
18-
github.com/mikelolasagasti/xz v1.0.1 // indirect
19-
github.com/minio/minlz v1.0.1 // indirect
20-
github.com/spf13/afero v1.15.0 // indirect
21-
)
22-
2315
require (
2416
github.com/STARRY-S/zip v0.2.3 // indirect
2517
github.com/andybalholm/brotli v1.2.0 // indirect
@@ -33,6 +25,7 @@ require (
3325
github.com/chromedp/sysutil v1.1.0 // indirect
3426
github.com/cnf/structhash v0.0.0-20201127153200-e1b16c1ebc08 // indirect
3527
github.com/davecgh/go-spew v1.1.2-0.20180830191138-d8f796af33cc // indirect
28+
github.com/djherbis/times v1.6.0 // indirect
3629
github.com/dsnet/compress v0.0.2-0.20230904184137-39efe44ab707 // indirect
3730
github.com/go-json-experiment/json v0.0.0-20250725192818-e39067aee2d2 // indirect
3831
github.com/gobwas/httphead v0.1.0 // indirect
@@ -44,10 +37,13 @@ require (
4437
github.com/json-iterator/go v1.1.12 // indirect
4538
github.com/klauspost/compress v1.18.2 // indirect
4639
github.com/klauspost/pgzip v1.2.6 // indirect
40+
github.com/logrusorgru/aurora/v4 v4.0.0 // indirect
4741
github.com/mattn/go-isatty v0.0.20 // indirect
4842
github.com/mholt/archives v0.1.5 // indirect
4943
github.com/microcosm-cc/bluemonday v1.0.27 // indirect
5044
github.com/miekg/dns v1.1.63 // indirect
45+
github.com/mikelolasagasti/xz v1.0.1 // indirect
46+
github.com/minio/minlz v1.0.1 // indirect
5147
github.com/modern-go/concurrent v0.0.0-20180306012644-bacd9c7ef1dd // indirect
5248
github.com/modern-go/reflect2 v1.0.2 // indirect
5349
github.com/nwaples/rardecode/v2 v2.2.2 // indirect
@@ -57,6 +53,7 @@ require (
5753
github.com/projectdiscovery/blackrock v0.0.1 // indirect
5854
github.com/saintfish/chardet v0.0.0-20230101081208-5e3ef4b5456d // indirect
5955
github.com/sorairolake/lzip-go v0.3.8 // indirect
56+
github.com/spf13/afero v1.15.0 // indirect
6057
github.com/tidwall/gjson v1.18.0 // indirect
6158
github.com/tidwall/match v1.1.1 // indirect
6259
github.com/tidwall/pretty v1.2.1 // indirect

go.sum

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -161,8 +161,8 @@ github.com/projectdiscovery/goflags v0.1.74 h1:n85uTRj5qMosm0PFBfsvOL24I7TdWRcWq
161161
github.com/projectdiscovery/goflags v0.1.74/go.mod h1:UMc9/7dFz2oln+10tv6cy+7WZKTHf9UGhaNkF95emh4=
162162
github.com/projectdiscovery/gologger v1.1.68 h1:KfdIO/3X7BtHssWZuqhxPZ+A946epCCx2cz+3NnRAnU=
163163
github.com/projectdiscovery/gologger v1.1.68/go.mod h1:Xae0t4SeqJVa0RQGK9iECx/+HfXhvq70nqOQp2BuW+o=
164-
github.com/projectdiscovery/utils v0.9.0 h1:eu9vdbP0VYXI9nGSLfnOpUqBeW9/B/iSli7U8gPKZw8=
165-
github.com/projectdiscovery/utils v0.9.0/go.mod h1:zcVu1QTlMi5763qCol/L3ROnbd/UPSBP8fI5PmcnF6s=
164+
github.com/projectdiscovery/utils v0.10.0 h1:E3nMm0h3LWt2bbnpRd8Whyj/y0DrMJKYx2zV8gqFDF0=
165+
github.com/projectdiscovery/utils v0.10.0/go.mod h1:FL0cQdg3oBMtJdmbBrfLd5i73syNxpkbKO9tivQ0+rI=
166166
github.com/prometheus/client_model v0.0.0-20190812154241-14fe0d1b01d4/go.mod h1:xMI15A0UPsDsEKsMN9yxemIoYk6Tm2C1GtYGdfGttqA=
167167
github.com/rogpeppe/go-internal v1.3.0/go.mod h1:M8bDsm7K2OlrFYOpmOWEs/qY81heoFRclV5y23lUDJ4=
168168
github.com/rwcarlsen/goexif v0.0.0-20190401172101-9e8deecbddbd/go.mod h1:hPqNNc0+uJM6H+SuU8sEs5K5IQeKccPqeSjfgcKGgPk=

pkg/exploit/fingerprint.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ func GetProductInfo(name string) (Product, error) {
1818

1919
// GetReferences returns the references for certain products.
2020
func GetReferences(fingerprint []string) []string {
21-
result := []string{}
21+
result := make([]string, 0, len(fingerprint))
2222

2323
for _, f := range fingerprint {
2424
result = append(result, exploits[f].Reference)

0 commit comments

Comments
 (0)