Pastenum is a text dump enumeration tool. It is designed to help find and enumerate datadumps, and doxs posted on public sites.
It currently searches sites github.com, gist.github.com, pastebin.com, pastee.org, and pastie.org.
Pastenum is a gem rewrite of nullthreat's original pastenum2 released in 2011.
Install Ruby 1.9.*
Install RubyGems
gem install pastenum
** Note: nokogiri in the gemfile requires native libxslt and libxml2 to be installed
(~)$ pastenum -h
Usage: pastenum [OPTIONS] "search string"
Sources::
--[no-]pastebin
Search Pastebin.com (Gscraper)
Default: true
--[no-]gist
Search Gist.github.com
Default: true
--[no-]github
Search github.com
Default: true
--[no-]pastie
Search pastie.org (Gscraper)
Default: true
--[no-]pastee
Search pastee.org (Gscraper)
Default: true
Report Output:: (Default output to STDOUT)
-H, --html-report Create an html iframed (report.html)
-J, --json-report Create a JSON file (report.json)
Options::
-r, --[no-]raw use 'raw' urls instead if available
Default: false
-m, --maxpages= maximum number of search results pages to iterate through
Default: 2
-x, --tos Acknowledge Google INC. 'Terms of Service'
-V, --[no-]ssl-verify Verify SSL certificates
Default: true
-v, --verbose Run verbosely
-h, --help Display this screen
Note: If generating a report iframe, it can take some time to load the "report.html" file.
Gist and Github code search for 'shadowbq' skipping ssl cert verfication
(~)$ pastenum -x --no-pastebin --no-pastie --no-pastee --no-ssl-verify "shadowbq"
https://gist.github.com/shadowbq/325430
https://gist.github.com/shadowbq/4556950
https://gist.github.com/shadowbq/2718948
https://github.com/shadowbq/matrix.dot.files/blob/8241fc219a3b4601c6c4b1a487441cf31e90916b/docs/README.vim-colors
https://github.com/shadowbq/easy-bin/blob/6237442a25777e17a869b5131f0f4f38ca62def1/easy-bin.gemspec
https://github.com/shadowbq/pastenum/blob/f1d955652a9fd2f7928d7ae84093aea4fc105f85/pastenum.gemspec
https://github.com/shadowbq/matrix.dot.files/blob/8241fc219a3b4601c6c4b1a487441cf31e90916b/home/.matrix/vim/.gitmodules
https://github.com/shadowbq/matrix.dot.files/blob/4d1519387fb7bfc1e1134c179fe372f232e30cba/home/.gitconfig
https://github.com/shadowbq/pastenum/blob/79f620a98f5d6fbb49c805e25b4206fa70429929/README.md
https://github.com/fabrizioc1/WiFu/blob/d37853fd538319317bb4e4f5d16b3255501b76d1/Gemfile
https://github.com/shadowbq/matrix.dot.files/blob/8241fc219a3b4601c6c4b1a487441cf31e90916b/home/.ssh/config
https://github.com/shadowbq/snorby_suite/blob/a5bfc872c6bc8c2691adf3041fa821dadbec233b/snorby_suite.gemspec
https://github.com/shadowbq/rothparty/blob/22a5e8847592cdc158439faef925ca2a07bb0e4d/rothparty.gemspec
Pastenum - A Corelan Team Production Written by: Nullthreat
http://redmine.corelan.be/projects/corelan-pastenum
irc.freenode.net #corelan