Pastego – Scrape/Parse Pastebin using GO and expression grammar (PEG)
pastego is a scrape/Parse Pastebin making use of GO and grammar expression (PEG).
Set up
$ go get -u github.com/notdodo/pastego
Usage
Search keyword phrases are scenario delicate
pastego -s "password,keygen,PASSWORD"
You can use boolean operators to minimize fake constructive
pastego -s "quake && ~earthquake, password && ~(php || sudo || Linux || '')"
This command will look for for bins with quake
but not earthquake
words and phrases and for bins with password
but not php
, sudo
, Linux
, terms.
use: pastego [<flags>]
Flags:
--assist Present context-sensitive support (also test --help-extensive and --aid-man).
-s, --research="pass" Strings to research, i.e: "password,ssh"
-o, --output="success" Folder to help save the bins
-i, --insensitive Lookup for circumstance-insensitive strings
Supported expression/operators:
`&&` - and
`||` - or
`~` - not
`'string with space'`
`(myexpression && 'with operators')`
Keybindings
q
, ctrl+c
: stop pastego
k
, ↑
: show earlier bin
j
, ↓
: demonstrate next bin
n
: bounce ahead by 15 bins
p
: bounce backward by 15 bins
N
: shift to the future block of results (in alphabet purchase)
P
: go to the prior block of conclusions (in alphabet order)
d
: delete the file from the file method
Household
: go to the leading
Needs
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 make the code from PEG use pigeon:
go get -u github.com/mna/pigeon
Disclaimer
You will need a Professional account to use this: pastebin will block/blacklist your IP.
Or
- enhance the time involving every single request
- generate a script to restart your router when pastebin warns you
In progress…
Insert a flag to go/go through a checklist of proxies to avoid IP ban/throttle for free end users
https://github.com/notdodo/pastego
The write-up Pastego – Scrape/Parse Pastebin making use of GO and expression grammar (PEG) appeared 1st on Hakin9 – IT Safety Magazine.