Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
48 changes: 48 additions & 0 deletions .github/workflows/build-and-publish-distfile-amass.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,48 @@
name: Build and Publish amass go-mod distfile (manual dispatch)

on:
workflow_dispatch:
inputs:
version:
description: "Amass version (e.g. 5.0.1)"
required: true

permissions:
contents: write

jobs:
deps:
runs-on: ubuntu-latest
steps:
- name: Checkout upstream amass
uses: actions/checkout@v4
with:
repository: owasp-amass/amass
ref: "v${{ github.event.inputs.version }}"
path: amass

- name: Setup Go
uses: actions/setup-go@v5
with:
go-version-file: "amass/go.mod"

- name: Generate go-mod cache
working-directory: amass
run: |
rm -rf go-mod
GOMODCACHE="${PWD}/go-mod" go mod download -modcacherw

- name: Create deps tarball
working-directory: amass
run: |
XZ_OPT='-T0 -9' tar -acf "amass-${{ github.event.inputs.version }}-deps.tar.xz" go-mod
sha256sum "amass-${{ github.event.inputs.version }}-deps.tar.xz" > "amass-${{ github.event.inputs.version }}-deps.tar.xz.sha256"

- name: Create/Update GitHub Release and upload asset
uses: softprops/action-gh-release@v2
with:
tag_name: "amass-${{ github.event.inputs.version }}"
name: "amass deps ${{ github.event.inputs.version }}"
files: |
amass/amass-${{ github.event.inputs.version }}-deps.tar.xz
amass/amass-${{ github.event.inputs.version }}-deps.tar.xz.sha256
2 changes: 2 additions & 0 deletions net-analyzer/amass/Manifest
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
DIST amass-4.2.0.gh.tar.gz 20440348 BLAKE2B b97b6079ec5d5573fab9211cbdbf9ac3c8c7c30b9324c8baa60c9f4910dc5e6c59004e649733e085b94e73356db02d91c8ced1f2a812ffe29e9290009b8925b2 SHA512 35e6731e699cb81366b190b7ed4a20b730fd33350a3ee25f7467f3a73e4d84e1e8538c1bc5ab4687cd1f034376005d92956cb2687edb3532b547330a5123bf3d
DIST amass-5.0.1-deps.tar.xz 111368596 BLAKE2B 794a02d4089474280b2ce255830d033a50e00221aaae4cbd4189ddd78c99729e37db663cf777ebd6f32ae56dbc74d6b84d0d780c1325a2d3e9a52be8f2263609 SHA512 0b573e3340cae03100a7b86d7ef4d203ca0507cd60ffd0d3a197f5fe10e759952d0baa589d7da403e5544d105c88703087e3b56381fd6c7c01666ca214ab5f4e
DIST amass-5.0.1.gh.tar.gz 277095 BLAKE2B c4abb24af56c1fb9cb4de0ba8d962675610dd424bb350228f861e0ae028760a2acf920c18be389a01dde9f5d1b4481fcbe63d0f5086e00bdcce61cc2788c4529 SHA512 af39b7ea789dd54c06a0da029d6ddf7d0dbebdc9aa6fbb22c6217629d9d6817ef73ad6030e4aba68887da667a792718aed74f2167045a2a6fbd27a530d0af44f
DIST cloud.google.com%2Fgo%2F@v%2Fv0.26.0.mod 27 BLAKE2B 814b0fa8f12d5ce6171fa629b5a7eb34e0e882cc0c5430986896bb38c243e08dc83098f271227f4ba019e78f16dc97fbb381e833aff1819833d243b08add916b SHA512 5132f3438533427c0ab0fbb7a12112a7830ea9122662ed46019ff89c71d9cf80c02edc32dd5c892da572031b5a2cce100f2602fa6a19bea6be7c02781f701273
DIST cloud.google.com%2Fgo%2F@v%2Fv0.34.0.mod 27 BLAKE2B 814b0fa8f12d5ce6171fa629b5a7eb34e0e882cc0c5430986896bb38c243e08dc83098f271227f4ba019e78f16dc97fbb381e833aff1819833d243b08add916b SHA512 5132f3438533427c0ab0fbb7a12112a7830ea9122662ed46019ff89c71d9cf80c02edc32dd5c892da572031b5a2cce100f2602fa6a19bea6be7c02781f701273
DIST cloud.google.com%2Fgo%2F@v%2Fv0.38.0.mod 1006 BLAKE2B 9d321b9bad7e881795f0215828ca23ff5753b8ca9cbe64ca085bcd2f64d36d0d5bdd5c3e80eb64e19e067748b6b23eb7837827cede0e75a840ed1cfa2b00c1a8 SHA512 8aa90e6ce7d50af3db56c8a7abdd16822f6351cabb96e6b75ac0cdefa15bb4a2d402aa84e6212fec4d599ec6f13cb1891bb37f41200e6a05a27642375a89a959
Expand Down
80 changes: 80 additions & 0 deletions net-analyzer/amass/amass-5.0.1.ebuild
Original file line number Diff line number Diff line change
@@ -0,0 +1,80 @@
# Copyright 1999-2024 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2

EAPI=8
IUSE="ae-isready amass-engine oam-assoc oam-enum oam-i2y oam-subs oam-track +oam-viz"

inherit go-module

DESCRIPTION="Subdomain OSINT Enumeration"
HOMEPAGE="https://github.com/owasp-amass/amass"

SRC_URI="
https://github.com/owasp-amass/amass/archive/v${PV}.tar.gz -> ${P}.gh.tar.gz
https://github.com/pentoo/pentoo-overlay/releases/download/amass-${PV}/amass-${PV}-deps.tar.xz
"

LICENSE="Apache-2.0"
SLOT="0"
KEYWORDS="~amd64 ~arm64 x86"

BDEPEND=">=dev-lang/go-1.24.4"

src_compile() {
einfo "Building amass"
CGO_ENABLED=0 ego build -trimpath -o amass ./cmd/amass || die "Failed to build amass"

if use ae-isready; then
einfo "Building ae_isready"
CGO_ENABLED=0 ego build -trimpath -o ae_isready ./cmd/ae_isready || die "Failed to build ae_isready"
fi

if use amass-engine; then
einfo "Building amass_engine"
CGO_ENABLED=0 ego build -trimpath -o amass_engine ./cmd/amass_engine || die "Failed to build amass_engine"
fi

if use oam-assoc; then
einfo "Building oam_assoc"
CGO_ENABLED=0 ego build -trimpath -o oam_assoc ./cmd/oam_assoc || die "Failed to build oam_assoc"
fi

if use oam-enum; then
einfo "Building oam_enum"
CGO_ENABLED=0 ego build -trimpath -o oam_enum ./cmd/oam_enum || die "Failed to build oam_enum"
fi

if use oam-i2y; then
einfo "Building oam_i2y"
CGO_ENABLED=0 ego build -trimpath -o oam_i2y ./cmd/oam_i2y || die "Failed to build oam_i2y"
fi

if use oam-subs; then
einfo "Building oam_subs"
CGO_ENABLED=0 ego build -trimpath -o oam_subs ./cmd/oam_subs || die "Failed to build oam_subs"
fi

if use oam-track; then
einfo "Building oam_track"
CGO_ENABLED=0 ego build -trimpath -o oam_track ./cmd/oam_track || die "Failed to build oam_track"
fi

if use oam-viz; then
einfo "Building oam_viz"
CGO_ENABLED=0 ego build -trimpath -o oam_viz ./cmd/oam_viz || die "Failed to build oam_viz"
fi
}

src_install() {
dobin amass

use ae-isready && dobin ae_isready
use amass-engine && dobin amass_engine
use oam-assoc && dobin oam_assoc
use oam-enum && dobin oam_enum
use oam-i2y && dobin oam_i2y
use oam-subs && dobin oam_subs
use oam-track && dobin oam_track
use oam-viz && dobin oam_viz
}

46 changes: 45 additions & 1 deletion net-analyzer/amass/metadata.xml
Original file line number Diff line number Diff line change
@@ -1,8 +1,52 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
<!DOCTYPE pkgmetadata SYSTEM "https://www.gentoo.org/dtd/metadata.dtd">
<pkgmetadata>
<maintainer type="person">
<email>unknown@pentoo.ch</email>
<name>Author Unknown</name>
</maintainer>

<longdescription lang="en">
OWASP Amass is a toolset for in-depth attack surface mapping and asset discovery, with a focus on DNS enumeration and OSINT-based subdomain discovery. This ebuild installs the main amass CLI and optionally installs additional helper binaries.
</longdescription>

<upstream>
<remote-id type="github">owasp-amass/amass</remote-id>
<doc>https://github.com/owasp-amass/amass</doc>
<bugs-to>https://discord.gg/ANTyEDUXt5</bugs-to>
</upstream>

<use>
<flag name="ae-isready">
Install the ae_isready command for performing Amass engine readiness and health checks.
</flag>

<flag name="amass-engine">
Install the amass_engine service used to run the Amass enumeration engine as a long-lived process.
</flag>

<flag name="oam-assoc">
Install the oam_assoc tool for associating related assets using the Open Asset Model.
</flag>

<flag name="oam-enum">
Install the oam_enum tool for enumerating assets using the Open Asset Model.
</flag>

<flag name="oam-i2y">
Install the oam_i2y tool for importing and exporting Open Asset Model data between formats.
</flag>

<flag name="oam-subs">
Install the oam_subs tool for subdomain discovery using Open Asset Model datasets.
</flag>

<flag name="oam-track">
Install the oam_track tool for tracking asset changes over time using the Open Asset Model.
</flag>

<flag name="oam-viz">
Install the oam_viz tool for generating visual representations of Open Asset Model data.
</flag>
</use>
</pkgmetadata>