Slightly revamped vesion of TomNomNom's scopeview in bash.
Supports scope in any file, anywhere without any Installatiion / Deps
If you want a better tool, consider using Inscope directly.
- This is single shell script, so it can be downloaded or piped to bash directly.
- Generate a
.scopefile using scopegen➼ cat inscope-domains.txt example.com example.org abc.example.com ➼ cat outscope-domains.txt oos.example.com oos.abc.example.orgThen,
➼ scopegen -t inscope-domains.txt -in && scopegen -t outscope-domains.txt -os | tee -a .scope➼ cat .scope .*\.example\.com$ .*\.example\.org$ .*\.abc\.example\.com$ !.*oos\.example\.com$ !.*oos\.abc\.example\.org$
!# 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