forked from owasp-amass/amass
-
Notifications
You must be signed in to change notification settings - Fork 0
/
snapcraft.yaml
114 lines (101 loc) · 3.78 KB
/
snapcraft.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
name: amass
version: '2.9.11'
summary: In-depth DNS Enumeration and Network Mapping
description: The OWASP Amass tool suite obtains subdomain names by scraping data sources, recursive brute forcing, crawling web archives, permuting/altering names and reverse DNS sweeping. Additionally, Amass uses the IP addresses obtained during resolution to discover associated netblocks and ASNs. All the information is then used to build maps of the target networks.
icon: images/snapcraft_icon.png
grade: stable
confinement: strict
apps:
amass:
command: bin/amass
plugs: [home, network, removable-media]
netdomains:
command: bin/netdomains
plugs: [home, network, removable-media]
viz:
command: bin/viz
plugs: [home, network, removable-media]
db:
command: bin/db
plugs: [home, network, removable-media]
tracker:
command: bin/tracker
plugs: [home, network, removable-media]
parts:
go:
source-tag: go1.11.6
amass:
after: [go]
source: https://github.com/OWASP/Amass
source-type: git
plugin: go
go-importpath: github.com/OWASP/Amass
override-build: |
echo "\nStarting override-build for amass part:"
export GOPATH=$(dirname $SNAPCRAFT_PART_INSTALL)/go
cd $GOPATH/src/github.com/OWASP/Amass
export GO111MODULE=on
go install ./...
mkdir $SNAPCRAFT_PART_INSTALL/bin
mv $GOPATH/bin/amass $SNAPCRAFT_PART_INSTALL/bin/amass
strip --remove-section=.comment --remove-section=.note $SNAPCRAFT_PART_INSTALL/bin/amass
netdomains:
after: [amass]
source: https://github.com/OWASP/Amass
source-type: git
plugin: go
go-importpath: github.com/OWASP/Amass
override-build: |
echo "\nStarting override-build for netdomains part:"
export GOPATH=$(dirname $SNAPCRAFT_PART_INSTALL)/go
cd $GOPATH/src/github.com/OWASP/Amass
export GO111MODULE=on
go install ./...
mkdir $SNAPCRAFT_PART_INSTALL/bin
mv $GOPATH/bin/amass.netdomains $SNAPCRAFT_PART_INSTALL/bin/netdomains
strip --remove-section=.comment --remove-section=.note $SNAPCRAFT_PART_INSTALL/bin/netdomains
viz:
after: [amass]
source: https://github.com/OWASP/Amass
source-type: git
plugin: go
go-importpath: github.com/OWASP/Amass
override-build: |
echo "\nStarting override-build for viz part:"
export GOPATH=$(dirname $SNAPCRAFT_PART_INSTALL)/go
cd $GOPATH/src/github.com/OWASP/Amass
export GO111MODULE=on
go install ./...
mkdir $SNAPCRAFT_PART_INSTALL/bin
mv $GOPATH/bin/amass.viz $SNAPCRAFT_PART_INSTALL/bin/viz
strip --remove-section=.comment --remove-section=.note $SNAPCRAFT_PART_INSTALL/bin/viz
db:
after: [amass]
source: https://github.com/OWASP/Amass
source-type: git
plugin: go
go-importpath: github.com/OWASP/Amass
override-build: |
echo "\nStarting override-build for db part:"
export GOPATH=$(dirname $SNAPCRAFT_PART_INSTALL)/go
cd $GOPATH/src/github.com/OWASP/Amass
export GO111MODULE=on
go install ./...
mkdir $SNAPCRAFT_PART_INSTALL/bin
mv $GOPATH/bin/amass.db $SNAPCRAFT_PART_INSTALL/bin/db
strip --remove-section=.comment --remove-section=.note $SNAPCRAFT_PART_INSTALL/bin/db
tracker:
after: [amass]
source: https://github.com/OWASP/Amass
source-type: git
plugin: go
go-importpath: github.com/OWASP/Amass
override-build: |
echo "\nStarting override-build for tracker part:"
export GOPATH=$(dirname $SNAPCRAFT_PART_INSTALL)/go
cd $GOPATH/src/github.com/OWASP/Amass
export GO111MODULE=on
go install ./...
mkdir $SNAPCRAFT_PART_INSTALL/bin
mv $GOPATH/bin/amass.tracker $SNAPCRAFT_PART_INSTALL/bin/tracker
strip --remove-section=.comment --remove-section=.note $SNAPCRAFT_PART_INSTALL/bin/tracker