https://github.com/pkgforge-security/scopeview
Filters in scope and out of scope urls (subdomains) from stdin [Maintainer=@Azathothas]
https://github.com/pkgforge-security/scopeview
Last synced: about 1 year ago
JSON representation
Filters in scope and out of scope urls (subdomains) from stdin [Maintainer=@Azathothas]
- Host: GitHub
- URL: https://github.com/pkgforge-security/scopeview
- Owner: pkgforge-security
- License: mit
- Created: 2025-03-06T03:45:56.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2025-03-06T03:54:20.000Z (over 1 year ago)
- Last Synced: 2025-03-06T04:28:38.136Z (over 1 year ago)
- Language: Shell
- Homepage:
- Size: 0 Bytes
- Stars: 0
- Watchers: 0
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
### ℹ️ About
Slightly revamped vesion of TomNomNom's [scopeview](https://github.com/pkgforge-security/scopeview) in bash.
Supports `scope` in **any file**, **anywhere** without any ***Installatiion / Deps***
If you want a better tool, consider using [Inscope]((https://github.com/pkgforge-security/scopeview)) directly.
### 🖳 Installation
- This is single shell script, so it can be downloaded or piped to bash directly.
### 🧰 Usage
> - Generate a **`.scope`** file using [scopegen](https://github.com/pkgforge-security/scopegen)
> ```bash
> ➼ cat inscope-domains.txt
> example.com
> example.org
> abc.example.com
> ➼ cat outscope-domains.txt
> oos.example.com
> oos.abc.example.org
> ```
> Then,
> ```bash
> ➼ scopegen -t inscope-domains.txt -in && scopegen -t outscope-domains.txt -os | tee -a .scope
> ```
> ```bash
> ➼ cat .scope
> .*\.example\.com$
> .*\.example\.org$
> .*\.abc\.example\.com$
> !.*oos\.example\.com$
> !.*oos\.abc\.example\.org$
> ```
- #### Once you have a `.scope`
```bash
!# Without using any options
!# This assumes there is a **`.scope`** file in your working directory or cwd's parent.
cat your-data-to-be-filtered.ext | scopeview
!# Or Via STDIN
cat your-data-to-be-filtered.ext | bash <(curl -qfsSL "https://raw.githubusercontent.com/pkgforge-security/scopeview/main/scopeview.sh")
!# Using -s
cat your-data-to-be-filtered.ext | scopeview -s .scope-file
!# Or Via STDIN
cat your-data-to-be-filtered.ext | bash <(curl -qfsSL "https://raw.githubusercontent.com/pkgforge-security/scopeview/main/scopeview.sh") -s .scope-file
```