Skip to content

Latest commit

 

History

History
44 lines (41 loc) · 1.63 KB

File metadata and controls

44 lines (41 loc) · 1.63 KB

ℹ️ About

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.

🖳 Installation

  • This is single shell script, so it can be downloaded or piped to bash directly.

🧰 Usage

➼ cat inscope-domains.txt
       example.com
       example.org
       abc.example.com
➼ cat outscope-domains.txt
       oos.example.com
       oos.abc.example.org

Then,

➼ 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$
  • Once you have a .scope

!# 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