Skip to content

Commit 3b25f54

Browse files
authored
Merge branch 'develop' into further-txt-mappings
2 parents 39b305e + 67ea8ec commit 3b25f54

128 files changed

Lines changed: 3593 additions & 2360 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

.github/workflows/go.yml

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ jobs:
1212
strategy:
1313
matrix:
1414
os: [ "ubuntu-latest", "macos-latest", "windows-latest" ]
15-
go-version: [ "1.25.5" ]
15+
go-version: [ "1.26.0" ]
1616
runs-on: ${{ matrix.os }}
1717
env:
1818
CGO_ENABLED: 0
@@ -42,9 +42,8 @@ jobs:
4242
- name: setup Go
4343
uses: actions/setup-go@v5
4444
with:
45-
go-version: 1.25.5
45+
go-version: 1.26.0
4646
- name: checkout
4747
uses: actions/checkout@v4
4848
- name: measure coverage
4949
run: go test -v -coverprofile=coverage.out ./...
50-

.github/workflows/goreleaser.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ jobs:
2323
name: set up Go
2424
uses: actions/setup-go@v5
2525
with:
26-
go-version: 1.25.5
26+
go-version: 1.26.0
2727
-
2828
name: run GoReleaser
2929
uses: goreleaser/goreleaser-action@v6

.github/workflows/lint.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ jobs:
1010
strategy:
1111
matrix:
1212
os: [ "ubuntu-latest", "macos-latest", "windows-latest" ]
13-
go-version: [ "1.25.5" ]
13+
go-version: [ "1.26.0" ]
1414
runs-on: ${{ matrix.os }}
1515
env:
1616
CGO_ENABLED: 0

Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
FROM golang:1.25.5-alpine AS build
1+
FROM golang:1.26.0-alpine AS build
22
RUN apk --no-cache add git
33
WORKDIR /go/src/github.com/owasp-amass/amass
44
COPY . .

LICENSE

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -190,7 +190,7 @@ License: Apache2.0
190190
same "printed page" as the copyright notice for easier
191191
identification within third-party archives.
192192

193-
Copyright 2017-2025 Jeff Foley
193+
Copyright 2017-2026 Jeff Foley
194194

195195
Licensed under the Apache License, Version 2.0 (the "License");
196196
you may not use this file except in compliance with the License.

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,6 @@ If you need help with installation and/or usage of the tool, please join our [Di
3030

3131
## Licensing [![License](https://img.shields.io/badge/license-apache%202-blue)](https://www.apache.org/licenses/LICENSE-2.0)
3232

33-
This program is free software: you can redistribute it and/or modify it under the terms of the [Apache license](LICENSE). OWASP Amass and any contributions are Copyright © by Jeff Foley 2017-2025. Some subcomponents have separate licenses.
33+
This program is free software: you can redistribute it and/or modify it under the terms of the [Apache license](LICENSE). OWASP Amass and any contributions are Copyright © by Jeff Foley 2017-2026. Some subcomponents have separate licenses.
3434

3535
![Network graph](https://raw.githubusercontent.com/owasp-amass/docs/master/images/network_06092018.png "Amass Network Mapping")

cmd/ae_isready/main.go

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// Copyright © by Jeff Foley 2017-2025. All rights reserved.
1+
// Copyright © by Jeff Foley 2017-2026. All rights reserved.
22
// Use of this source code is governed by Apache 2 LICENSE that can be found in the LICENSE file.
33
// SPDX-License-Identifier: Apache-2.0
44

@@ -12,7 +12,7 @@ import (
1212
"path"
1313
"time"
1414

15-
amasshttp "github.com/owasp-amass/amass/v5/internal/net/http"
15+
client "github.com/owasp-amass/amass/v5/engine/api/client/v1"
1616
)
1717

1818
func main() {
@@ -27,24 +27,24 @@ func main() {
2727
flag.BoolVar(&help1, "h", false, "Show the program usage message")
2828
flag.BoolVar(&help2, "help", false, "Show the program usage message")
2929
flag.StringVar(&hostname, "host", "", "Hostname or IP address of the Amass Engine")
30-
//flag.BoolVar(&version, "version", false, "Print the version number of this Amass binary")
3130
flag.Parse()
3231

3332
if (help1 || help2) || hostname == "" {
3433
fmt.Fprintf(os.Stderr, "Usage: %s %s\n\n", path.Base(os.Args[0]), "--host HOSTNAME")
3534
flag.PrintDefaults()
3635
return
3736
}
38-
/*if version {
39-
fmt.Fprintf(color.Error, "%s\n", format.Version)
40-
return
41-
}*/
4237

43-
ctx, cancel := context.WithTimeout(context.Background(), 3*time.Second)
38+
c, err := client.NewClient("http://" + hostname + ":4000")
39+
if err != nil {
40+
os.Exit(1)
41+
}
42+
defer c.Close()
43+
44+
ctx, cancel := context.WithTimeout(context.Background(), 2*time.Second)
4445
defer cancel()
4546

46-
u := "http://" + hostname + ":4000/graphql"
47-
if _, err := amasshttp.RequestWebPage(ctx, &amasshttp.Request{URL: u}); err != nil {
47+
if !c.HealthCheck(ctx) {
4848
// a failure to respond indicates that the server is not yet available
4949
os.Exit(1)
5050
}

cmd/amass/main.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// Copyright © by Jeff Foley 2017-2025. All rights reserved.
1+
// Copyright © by Jeff Foley 2017-2026. All rights reserved.
22
// Use of this source code is governed by Apache 2 LICENSE that can be found in the LICENSE file.
33
// SPDX-License-Identifier: Apache-2.0
44

cmd/amass/process.go

Lines changed: 13 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,25 +1,30 @@
1-
// Copyright © by Jeff Foley 2017-2025. All rights reserved.
1+
// Copyright © by Jeff Foley 2017-2026. All rights reserved.
22
// Use of this source code is governed by Apache 2 LICENSE that can be found in the LICENSE file.
33
// SPDX-License-Identifier: Apache-2.0
44

55
package main
66

77
import (
8+
"context"
89
"fmt"
910
"io"
1011
"os"
12+
"time"
1113

12-
"github.com/google/uuid"
13-
"github.com/owasp-amass/amass/v5/engine/api/client"
14+
client "github.com/owasp-amass/amass/v5/engine/api/client/v1"
1415
)
1516

1617
func engineIsRunning() bool {
17-
c := client.NewClient("http://127.0.0.1:4000/")
18-
19-
if _, err := c.SessionStats(uuid.New()); err != nil && err.Error() == "session not found" {
20-
return true
18+
c, err := client.NewClient("http://127.0.0.1:4000")
19+
if err != nil {
20+
return false
2121
}
22-
return false
22+
defer c.Close()
23+
24+
ctx, cancel := context.WithTimeout(context.Background(), 2*time.Second)
25+
defer cancel()
26+
27+
return c.HealthCheck(ctx)
2328
}
2429

2530
func startEngine() error {

cmd/amass/process_unix.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
//go:build !windows
22

3-
// Copyright © by Jeff Foley 2017-2025. All rights reserved.
3+
// Copyright © by Jeff Foley 2017-2026. All rights reserved.
44
// Use of this source code is governed by Apache 2 LICENSE that can be found in the LICENSE file.
55
// SPDX-License-Identifier: Apache-2.0
66

0 commit comments

Comments
 (0)