Skip to content
This repository has been archived by the owner on Mar 7, 2021. It is now read-only.

Commit

Permalink
Initial commit.
Browse files Browse the repository at this point in the history
  • Loading branch information
postmodern committed Nov 25, 2009
0 parents commit 5bfda9f
Show file tree
Hide file tree
Showing 23 changed files with 1,773 additions and 0 deletions.
9 changes: 9 additions & 0 deletions .gitignore
@@ -0,0 +1,9 @@
doc
pkg
tmp/*
.DS_Store
.yardoc
*.db
*.log
*.swp
*~
339 changes: 339 additions & 0 deletions COPYING.txt

Large diffs are not rendered by default.

4 changes: 4 additions & 0 deletions History.txt
@@ -0,0 +1,4 @@
=== 1.0.0 / 2009-11-25

* Initial release.

21 changes: 21 additions & 0 deletions Manifest.txt
@@ -0,0 +1,21 @@
COPYING.txt
History.txt
Manifest.txt
README.txt
Rakefile
lib/shodan.rb
lib/shodan/extensions.rb
lib/shodan/extensions/uri.rb
lib/shodan/extensions/uri/query_params.rb
lib/shodan/extensions/uri/http.rb
lib/shodan/host.rb
lib/shodan/page.rb
lib/shodan/has_pages.rb
lib/shodan/query.rb
lib/shodan/shodan.rb
lib/shodan/version.rb
tasks/spec.rb
spec/spec_helper.rb
spec/has_pages_examples.rb
spec/query_spec.rb
spec/shodan_spec.rb
45 changes: 45 additions & 0 deletions README.txt
@@ -0,0 +1,45 @@
= shodanrb

* http://github.com/postmodern/shodanrb

== DESCRIPTION:

A Ruby interface to SHODAN, a computer search engine.

== FEATURES/PROBLEMS:

* Supports basic queries.
* Supports +country+ search operator.
* Supports +hostname+ search operator.
* Supports +net+ search operator.
* Supports +port+ search operator.

== EXAMPLES:

== REQUIREMENTS:

* {nokogiri}[http://nokogiri.rubyforge.org] >= 1.4.0

== INSTALL:

$ sudo gem install shodanrb

== LICENSE:

shodanrb - A Ruby interface to SHODAN, a computer search engine.

Copyright (c) 2009 Hal Brodigan (postmodern.mod3 at gmail.com)

This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation; either version 2 of the License, or
(at your option) any later version.

This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.

You should have received a copy of the GNU General Public License
along with this program; if not, write to the Free Software
Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
20 changes: 20 additions & 0 deletions Rakefile
@@ -0,0 +1,20 @@
# -*- ruby -*-

require 'rubygems'
require 'hoe'
require 'hoe/signing'
require './tasks/spec.rb'

Hoe.spec('shodanrb') do
self.developer('Postmodern', 'postmodern.mod3@gmail.com')

self.extra_deps = [
['nokogiri', '>=1.4.0']
]

self.extra_dev_deps = [
['rspec', '>=1.2.8']
]
end

# vim: syntax=ruby
23 changes: 23 additions & 0 deletions lib/shodan.rb
@@ -0,0 +1,23 @@
#
# shodanrb - A Ruby interface to SHODAN, a computer search engine.
#
# Copyright (c) 2009 Hal Brodigan (postmodern.mod3 at gmail.com)
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation; either version 2 of the License, or
# (at your option) any later version.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with this program; if not, write to the Free Software
# Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
#

require 'shodan/query'
require 'shodan/shodan'
require 'shodan/version'

0 comments on commit 5bfda9f

Please sign in to comment.