forked from inbug-team/InCloud
-
Notifications
You must be signed in to change notification settings - Fork 0
73 lines (59 loc) · 2.04 KB
/
incloud.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
name: incloud
on:
workflow_dispatch:
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout Repo
uses: actions/checkout@master
- name: Setup golang
uses: actions/setup-go@v2
with:
go-version: 1.14
- name: Setup Dependencies
run: sudo apt-get install libpcap-dev
- name: Cache Go
id: cache-go
uses: actions/cache@v2
with:
path: /home/runner/go
key: ${{ runner.os }}-go
- name: Setting up ProjectDiscovery tools
if: steps.cache-go.outputs.cache-hit != 'true'
env:
GO111MODULE: on
run: |
go get -v github.com/projectdiscovery/subfinder/v2/cmd/subfinder
go get -v github.com/projectdiscovery/dnsx/cmd/dnsx
go get -v github.com/projectdiscovery/naabu/v2/cmd/naabu
go get -v github.com/projectdiscovery/httpx/cmd/httpx
go get -v github.com/projectdiscovery/nuclei/v2/cmd/nuclei
shell: bash
- name: Running naabu to check top all ports
run: |
naabu -iL input/target.txt -rate 10000 -p - | tee output/active_ports.txt
shell: bash
- name: Running httpx for HTTP webservers probbing
run: |
httpx -l output/active_ports.txt -title
httpx -l output/active_ports.txt | tee output/active_urls.txt
shell: bash
- name: Sorting the output results
run: |
find output -type f -exec sort {} -o {} \;
shell: bash
- name: Create local changes
run: |
git add output/active_ports.txt
git add output/active_urls.txt
- name: Commit results to Github
run: |
git config --local user.email "[email protected]"
git config --global user.name "UncleZ320"
git commit -m "InCloud Report" -a --allow-empty
- name: Push changes
uses: ad-m/github-push-action@master
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
branch: ${{ github.ref }}