https://github.com/notdodo/pastego
Scrape/Parse Pastebin using GO and expression grammar (PEG)
https://github.com/notdodo/pastego
go osint pastebin peg scraper
Last synced: about 1 month ago
JSON representation
Scrape/Parse Pastebin using GO and expression grammar (PEG)
- Host: GitHub
- URL: https://github.com/notdodo/pastego
- Owner: notdodo
- License: gpl-3.0
- Created: 2017-05-22T05:16:22.000Z (almost 8 years ago)
- Default Branch: master
- Last Pushed: 2024-12-10T20:08:38.000Z (5 months ago)
- Last Synced: 2025-03-30T08:09:56.290Z (about 1 month ago)
- Topics: go, osint, pastebin, peg, scraper
- Language: Go
- Homepage:
- Size: 87.9 KB
- Stars: 97
- Watchers: 4
- Forks: 11
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# pastego [](https://travis-ci.org/notdodo/pastego)
Scrape/Parse Pastebin using GO and grammar expression (PEG).
## 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 || '')"`
This command will search for bins with `quake` but not `earthquake` words and for bins with `password` but not `php`, `sudo`, `Linux`, `` words.
```
usage: pastego []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:
`&&` - 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](https://github.com/PuerkitoBio/goquery)
`go get -u "github.com/PuerkitoBio/goquery"`
#### [kingpin](https://github.com/alecthomas/kingpin)
`go get -u "gopkg.in/alecthomas/kingpin.v2"`
#### [gocui](https://github.com/jroimartin/gocui)
`go get -u "github.com/jroimartin/gocui"`
To create the code from PEG use [pigeon](https://github.com/mna/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](https://pastebin.com/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