naabu-action
2021-06-25 05:54:31 Author: github.com(查看原文) 阅读量:108 收藏

Naabu Action makes it easy to orchestrate naabu with GitHub Action.

Example Usage

GitHub Action running naabu on list of hosts

      - name: 💥 Naabu - Port Scanner
        uses: projectdiscovery/naabu-action@main
        with:
          list: hosts.txt

GitHub Action running naabu with custom port scan

      - name: 💥 Naabu - Port Scanner
        uses: projectdiscovery/naabu-action@main
        with:
          list: hosts.txt
          ports: "80,443"

Example workflow - .github/workflows/naabu.yml

name: 💥 Naabu - Port Scanner

on:
    schedule:
      - cron: '0 0 * * *'
    workflow_dispatch:

jobs:
  naabu-scan:
    runs-on: ubuntu-latest
    steps:
      - uses: actions/checkout@v2
      - uses: actions/setup-go@v2
        with:
          go-version: 1.15

      - name: 💥 Naabu - Port Scanner
        uses: projectdiscovery/naabu-action@main
        with:
          list: hosts.txt

      - name: GitHub Workflow artifacts
        uses: actions/upload-artifact@v2
        with:
          name: naabu.log
          path: naabu.log

Available Inputs

Key Description Required
list List of hosts to perform port scan true
ports Ports to scan for (default - Top 100) false
rate Rate of port scan probes false
output File to save output result (default - naabu.log) false
json Write results in JSON format false
flags Additional naabu CLI flags to use false

文章来源: https://github.com/projectdiscovery/naabu-action
如有侵权请联系:admin#unsafe.sh