Categories: Kali Linux

Pastego : Scrape/Parse Pastebin Using GO And Expression Grammar

Pastego is a 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 || '<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.

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

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

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

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
R K

Recent Posts

Starship : Revolutionizing Terminal Experiences Across Shells

Starship is a powerful, minimal, and highly customizable cross-shell prompt designed to enhance the terminal…

2 days ago

Lemmy : A Decentralized Link Aggregator And Forum For The Fediverse

Lemmy is an innovative, open-source platform designed for link aggregation and discussion, providing a decentralized…

2 days ago

Massive UX Improvements, Custom Disassemblers, And MSVC Support In ImHex v1.37.0

The latest release of ImHex v1.37.0 introduces a host of exciting features and improvements, enhancing…

2 days ago

Ghauri : A Powerful SQL Injection Detection And Exploitation Tool

Ghauri is a cutting-edge, cross-platform tool designed to automate the detection and exploitation of SQL…

2 days ago

Writing Tools : Revolutionizing The Art Of Writing

Writing tools have become indispensable for individuals looking to enhance their writing efficiency, accuracy, and…

2 days ago

PatchWerk : A Tool For Cleaning NTDLL Syscall Stubs

PatchWerk is a proof-of-concept (PoC) tool designed to clean NTDLL syscall stubs by patching syscall…

3 days ago