Skip to content
KitploitKITPLOIT
ToolsBlog
Submit
ToolsBlog
Submit

Hacking, PenTest, and Cybersecurity Tools for Your Security Arsenal!

Kitploit is a directory of hacking, cybersecurity, and pentesting tools. Discover the latest project updates to find vulnerabilities, analyze systems, automate testing, and strengthen your security.

··Feeds·Contact·Privacy·© 2026 Kitploit

Tool Directory

Categories

View all categories
Loading categories
pastego — Scrape/Parse Pastebin using GO and expression grammar (PEG) | Kitploit
Tools/GitHubGitHub/notdodo/pastego
OSINT (Open Source Intelligence)Scripting & AutomationInformation GatheringCrawler
GitHubnotdodo/pastego

pastego

Scrape/Parse Pastebin using GO and expression grammar (PEG)

View Repository
9681 year agoReviewed by Kitploit

Most Popular

View all →

Discover the most used tools by our community.

Explore all tools

Browse our collection of tools

View all tools →
Share

pastego Build Status Buy Me A Coffee

Scrape/Parse Pastebin using GO and grammar expression (PEG).

pastego.png

Installation

$ go get -u github.com/notdodo/pastego

Usage

Search keywords are case sensitive

pastego -s "password,keygen,PASSWORD"

You can use boolean operators to reduce false positive

pastego -s "quake && ~earthquake, password && ~(php || sudo || Linux || '<body>')"

This command will search for bins with quake but not earthquake words and for bins with password but not php, sudo, Linux, <body> words.

root@kitploit:~
usage: pastego [<flags>]

Flags:
      --help              Show context-sensitive help (also try --help-long and --help-man).
  -s, --search="pass"     Strings to search, i.e: "password,ssh"
  -o, --output="results"  Folder to save the bins
  -i, --insensitive       Search for case-insensitive strings

Supported expression/operators:

root@kitploit:~
`&&` - and

`||` - or

`~` - not

`'string with space'`

`(myexpression && 'with operators')`

Keybindings

q, ctrl+c: quit pastego

k, ↑: show previous bin

j, ↓: show next bin

n: jump forward by 15 bins

p: jump backward by 15 bins

N: move to the next block of findings (in alphabet order)

P: move to the previous block of findings (in alphabet order)

d: delete file from file system

HOME: go to top

Requirements

goquery

go get -u "github.com/PuerkitoBio/goquery"

kingpin

go get -u "gopkg.in/alecthomas/kingpin.v2"

gocui

go get -u "github.com/jroimartin/gocui"

To create the code from PEG use pigeon:

go get -u github.com/mna/pigeon

Disclaimer

You need a PRO account to use this: pastebin will block/blacklist your IP.

pastebin PRO

Or....

  • increase the time between each request
  • create a script to restart your router when pastebin warns you

In progress...

Add flag to pass/read a list of proxies to avoid IP ban/throttle for free users

Download Tool