Pastenum 是一个文本转储枚举工具。它旨在帮助查找和枚举发布在公共网站上的数据转储(datadumps)和 dox。
目前它搜索的网站包括 github.com、gist.github.com、pastebin.com、pastee.org 和 pastie.org。
Pastenum 是 nullthreat 原始 pastenum2(2011 年发布)的 gem 重写版本。
安装 Ruby 1.9.*
安装 RubyGems
gem install pastenum
** 注意:gemfile 中的 nokogiri 需要安装本机的 libxslt 和 libxml2
(~)$ 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
** 注意:如果生成报告 iframe,加载 "report.html" 文件可能需要一些时间。**
对 Gist 和 Github 代码搜索 'shadowbq',跳过 SSL 证书验证
(~)$ 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 - Corelan 团队作品 作者:Nullthreat
http://redmine.corelan.be/projects/corelan-pastenum
irc.freenode.net #corelan