Skip to content

Commit

Permalink
chore: -
Browse files Browse the repository at this point in the history
  • Loading branch information
enenumxela committed Aug 2, 2022
1 parent a75d55b commit aa7abb8
Show file tree
Hide file tree
Showing 8 changed files with 116 additions and 116 deletions.
19 changes: 10 additions & 9 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
@@ -1,26 +1,27 @@
name: build
name: build 🔨

on:
push:
branches:
- main
workflow_dispatch:

jobs:
build:
name: build
runs-on: ubuntu-latest
steps:
-
name: Set up Go
uses: actions/setup-go@v2
name: Check out code
uses: actions/checkout@v3
with:
go-version: 1.14

fetch-depth: 0
-
name: Check out code
uses: actions/checkout@v2

name: Set up Go
uses: actions/setup-go@v3
with:
go-version: '>=1.17.0'
-
name: Build
run: go build -v .
working-directory: cmd/sigs3scann3r/
working-directory: ./cmd/hqs3scann3r
25 changes: 12 additions & 13 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -1,27 +1,26 @@
name: release
name: release 🎉

on:
create:
tags:
- v*
- v*.*.*
workflow_dispatch:

jobs:
release:
name: release
runs-on: ubuntu-latest
steps:
-
name: Set up Go
uses: actions/setup-go@v2
with:
go-version: 1.14

-
name: "Check out code"
uses: actions/checkout@v2
name: Check out code
uses: actions/checkout@v3
with:
fetch-depth: 0

-
name: Set up Go
uses: actions/setup-go@v3
with:
go-version: '>=1.17.0'
-
name: Get dependencies
run: |
Expand All @@ -30,12 +29,12 @@ jobs:
curl https://raw.githubusercontent.com/golang/dep/master/install.sh | sh
dep ensure
fi
-
name: "Create release on GitHub"
uses: goreleaser/goreleaser-action@v2
uses: goreleaser/goreleaser-action@v3
env:
GITHUB_TOKEN: "${{ secrets.GITHUB_TOKEN }}"
with:
args: "release --rm-dist"
version: latest
distribution: goreleaser
2 changes: 1 addition & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# Excutables

cmd/sigs3scann3r/sigs3scann3r
cmd/hqs3scann3r/hqs3scann3r

# Notes

Expand Down
4 changes: 2 additions & 2 deletions .goreleaser.yaml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
builds:
-
binary: sigs3scann3r
main: cmd/sigs3scann3r/main.go
binary: hqs3scann3r
main: cmd/hqs3scann3r/main.go
goos:
- linux
- windows
Expand Down
42 changes: 21 additions & 21 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
# sigs3scann3r
# hqs3scann3r

[![release](https://img.shields.io/github/release/signedsecurity/sigs3scann3r?style=flat&color=0040ff)](https://github.com/signedsecurity/sigs3scann3r/releases) ![maintenance](https://img.shields.io/badge/maintained%3F-yes-0040ff.svg) [![open issues](https://img.shields.io/github/issues-raw/signedsecurity/sigs3scann3r.svg?style=flat&color=0040ff)](https://github.com/signedsecurity/sigs3scann3r/issues?q=is:issue+is:open) [![closed issues](https://img.shields.io/github/issues-closed-raw/signedsecurity/sigs3scann3r.svg?style=flat&color=0040ff)](https://github.com/signedsecurity/sigs3scann3r/issues?q=is:issue+is:closed) [![license](https://img.shields.io/badge/license-MIT-gray.svg?colorB=0040FF)](https://github.com/signedsecurity/sigs3scann3r/blob/master/LICENSE) [![twitter](https://img.shields.io/badge/twitter-@signedsecurity-0040ff.svg)](https://twitter.com/signedsecurity)
[![release](https://img.shields.io/github/release/hueristiq/hqs3scann3r?style=flat&color=0040ff)](https://github.com/hueristiq/hqs3scann3r/releases) ![maintenance](https://img.shields.io/badge/maintained%3F-yes-0040ff.svg) [![open issues](https://img.shields.io/github/issues-raw/hueristiq/hqs3scann3r.svg?style=flat&color=0040ff)](https://github.com/hueristiq/hqs3scann3r/issues?q=is:issue+is:open) [![closed issues](https://img.shields.io/github/issues-closed-raw/hueristiq/hqs3scann3r.svg?style=flat&color=0040ff)](https://github.com/hueristiq/hqs3scann3r/issues?q=is:issue+is:closed) [![license](https://img.shields.io/badge/license-MIT-gray.svg?colorB=0040FF)](https://github.com/hueristiq/hqs3scann3r/blob/master/LICENSE) [![twitter](https://img.shields.io/badge/twitter-@itshueristiq-0040ff.svg)](https://twitter.com/itshueristiq)

sigs3scann3r is tool to scan AWS S3 bucket permissions.
hqs3scann3r is tool to scan AWS S3 bucket permissions.

## Resources

Expand All @@ -23,46 +23,46 @@ sigs3scann3r is tool to scan AWS S3 bucket permissions.

#### From Binary

You can download the pre-built binary for your platform from this repository's [releases](https://github.com/signedsecurity/sigs3scann3r/releases/) page, extract, then move it to your `$PATH`and you're ready to go.
You can download the pre-built binary for your platform from this repository's [releases](https://github.com/hueristiq/hqs3scann3r/releases/) page, extract, then move it to your `$PATH`and you're ready to go.

#### From Source

sigs3scann3r requires **go1.14+** to install successfully. Run the following command to get the repo
hqs3scann3r requires **go1.17+** to install successfully. Run the following command to get the repo

```bash
GO111MODULE=on go get -u -v github.com/signedsecurity/sigs3scann3r/cmd/sigs3scann3r
go install -v github.com/hueristiq/hqs3scann3r/cmd/hqs3scann3r@latest
```

#### From Github

```bash
git clone https://github.com/signedsecurity/sigs3scann3r.git && \
cd sigs3scann3r/cmd/sigs3scann3r/ && \
git clone https://github.com/hueristiq/hqs3scann3r.git && \
cd hqs3scann3r/cmd/hqs3scann3r/ && \
go build . && \
mv sigs3scann3r /usr/local/bin/ && \
sigs3scann3r -h
mv hqs3scann3r /usr/local/bin/ && \
hqs3scann3r -h
```

## Usage

> **NOTE:** To use this tool awscli is required to have been installed and configured.
To display help message for sigs3scann3r use the `-h` flag:
To display help message for hqs3scann3r use the `-h` flag:

```
sigs3scann3r -h
hqs3scann3r -h
```

```
_ _____ _____
___(_) __ _ ___|___ / ___ ___ __ _ _ __ _ __ |___ / _ __
/ __| |/ _` / __| |_ \/ __|/ __/ _` | '_ \| '_ \ |_ \| '__|
\__ \ | (_| \__ \___) \__ \ (_| (_| | | | | | | |___) | |
|___/_|\__, |___/____/|___/\___\__,_|_| |_|_| |_|____/|_| v1.1.0
|___/
_ _____ _____
| |__ __ _ ___|___ / ___ ___ __ _ _ __ _ __ |___ / _ __
| '_ \ / _` / __| |_ \/ __|/ __/ _` | '_ \| '_ \ |_ \| '__|
| | | | (_| \__ \___) \__ \ (_| (_| | | | | | | |___) | |
|_| |_|\__, |___/____/|___/\___\__,_|_| |_|_| |_|____/|_| v1.1.0
|_|
USAGE:
sigs3scann3r [OPTIONS]
hqs3scann3r [OPTIONS]
OPTIONS:
-c, --concurrency number of concurrent threads (default: 10)
Expand All @@ -72,7 +72,7 @@ OPTIONS:
-v, --verbose verbose mode
```

sigs3scann3r takes buckets in the format:
hqs3scann3r takes buckets in the format:

* Name - e.g. `flaws.cloud`
* URL style - e.g. `s3://flaws.cloud`
Expand All @@ -91,4 +91,4 @@ sigs3scann3r takes buckets in the format:

## Contribution

[Issues](https://github.com/signedsecurity/sigs3scann3r/issues) and [Pull Requests](https://github.com/signedsecurity/sigs3scann3r/pulls) are welcome!
[Issues](https://github.com/hueristiq/hqs3scann3r/issues) and [Pull Requests](https://github.com/hueristiq/hqs3scann3r/pulls) are welcome!
16 changes: 8 additions & 8 deletions cmd/sigs3scann3r/main.go → cmd/hqs3scann3r/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,8 @@ import (
"github.com/aws/aws-sdk-go-v2/config"
"github.com/aws/aws-sdk-go-v2/feature/s3/manager"
"github.com/aws/aws-sdk-go-v2/service/s3"
"github.com/hueristiq/hqs3scann3r/pkg/s3format"
"github.com/logrusorgru/aurora/v3"
"github.com/signedsecurity/sigs3scann3r/pkg/s3format"
)

type options struct {
Expand All @@ -35,12 +35,12 @@ var (

func banner() {
fmt.Fprintln(os.Stderr, aurora.BrightBlue(`
_ _____ _____
___(_) __ _ ___|___ / ___ ___ __ _ _ __ _ __ |___ / _ __
/ __| |/ _`+"`"+` / __| |_ \/ __|/ __/ _`+"`"+` | '_ \| '_ \ |_ \| '__|
\__ \ | (_| \__ \___) \__ \ (_| (_| | | | | | | |___) | |
|___/_|\__, |___/____/|___/\___\__,_|_| |_|_| |_|____/|_| v1.1.0
|___/
_ _____ _____
| |__ __ _ ___|___ / ___ ___ __ _ _ __ _ __ |___ / _ __
| '_ \ / _`+"`"+` / __| |_ \/ __|/ __/ _`+"`"+` | '_ \| '_ \ |_ \| '__|
| | | | (_| \__ \___) \__ \ (_| (_| | | | | | | |___) | |
|_| |_|\__, |___/____/|___/\___\__,_|_| |_|_| |_|____/|_| v1.1.0
|_|
`).Bold())
}

Expand All @@ -60,7 +60,7 @@ func init() {
banner()

h := "USAGE:\n"
h += " sigs3scann3r [OPTIONS]\n"
h += " hqs3scann3r [OPTIONS]\n"

h += "\nOPTIONS:\n"
h += " -c, --concurrency number of concurrent threads (default: 10)\n"
Expand Down
30 changes: 24 additions & 6 deletions go.mod
Original file line number Diff line number Diff line change
@@ -1,11 +1,29 @@
module github.com/signedsecurity/sigs3scann3r
module github.com/hueristiq/hqs3scann3r

go 1.13
go 1.18

require (
github.com/aws/aws-sdk-go-v2 v1.9.0
github.com/aws/aws-sdk-go-v2/config v1.7.0
github.com/aws/aws-sdk-go-v2/feature/s3/manager v1.5.0
github.com/aws/aws-sdk-go-v2/service/s3 v1.14.0
github.com/aws/aws-sdk-go-v2 v1.16.8
github.com/aws/aws-sdk-go-v2/config v1.15.15
github.com/aws/aws-sdk-go-v2/feature/s3/manager v1.11.21
github.com/aws/aws-sdk-go-v2/service/s3 v1.27.2
github.com/logrusorgru/aurora/v3 v3.0.0
)

require (
github.com/aws/aws-sdk-go-v2/aws/protocol/eventstream v1.4.3 // indirect
github.com/aws/aws-sdk-go-v2/credentials v1.12.10 // indirect
github.com/aws/aws-sdk-go-v2/feature/ec2/imds v1.12.9 // indirect
github.com/aws/aws-sdk-go-v2/internal/configsources v1.1.15 // indirect
github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.4.9 // indirect
github.com/aws/aws-sdk-go-v2/internal/ini v1.3.16 // indirect
github.com/aws/aws-sdk-go-v2/internal/v4a v1.0.6 // indirect
github.com/aws/aws-sdk-go-v2/service/internal/accept-encoding v1.9.3 // indirect
github.com/aws/aws-sdk-go-v2/service/internal/checksum v1.1.10 // indirect
github.com/aws/aws-sdk-go-v2/service/internal/presigned-url v1.9.9 // indirect
github.com/aws/aws-sdk-go-v2/service/internal/s3shared v1.13.9 // indirect
github.com/aws/aws-sdk-go-v2/service/sso v1.11.13 // indirect
github.com/aws/aws-sdk-go-v2/service/sts v1.16.10 // indirect
github.com/aws/smithy-go v1.12.0 // indirect
github.com/jmespath/go-jmespath v0.4.0 // indirect
)
Loading

0 comments on commit aa7abb8

Please sign in to comment.