GithubHelp home page GithubHelp logo

anthrax3 / pastego Goto Github PK

View Code? Open in Web Editor NEW

This project forked from notdodo/pastego

0.0 0.0 0.0 245 KB

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

License: GNU General Public License v3.0

Go 100.00%

pastego's Introduction

pastego Build Status Buy Me A Coffee

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

pastego.png

Installation

$ go get -u github.com/edoz90/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>]

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

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

pastego's People

Contributors

notdodo avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.