-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
45 changed files
with
67,986 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
--format documentation | ||
--color | ||
--require spec_helper |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
--- | ||
sudo: false | ||
language: ruby | ||
cache: bundler | ||
rvm: | ||
- 2.5.1 | ||
before_install: gem install bundler -v 1.16.3 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
source "https://rubygems.org" | ||
|
||
git_source(:github) {|repo_name| "https://github.com/#{repo_name}" } | ||
|
||
# Specify your gem's dependencies in ryo.gemspec | ||
gemspec |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,127 @@ | ||
# ryo | ||
# Ryo | ||
|
||
[![Build Status](https://travis-ci.org/ninoseki/ryo.svg?branch=master)](https://travis-ci.org/ninoseki/ryo) | ||
[![Maintainability](https://api.codeclimate.com/v1/badges/7e5f124034cd51768567/maintainability)](https://codeclimate.com/github/ninoseki/ryo/maintainability) | ||
[![Coverage Status](https://coveralls.io/repos/github/ninoseki/ryo/badge.svg)](https://coveralls.io/github/ninoseki/ryo) | ||
|
||
Ryo is a yet another website recon tool powered by Ruby. | ||
|
||
*Note*: I'm working on this just because for fun and study purposes. | ||
|
||
## Concept | ||
|
||
- JSON all the way. | ||
- No pretty output / report, just a JSON. | ||
|
||
## Features & ToDo list | ||
|
||
- [x] Directory & File brute force | ||
- [x] Subdomain discovery | ||
- By using [DNSDumpster](https://dnsdumpster.com/) and [FindSubdomains](https://findsubdomains.com/) | ||
- [x] Website's technology detection | ||
- By using [SimpleWhatWeb](https://github.com/ninoseki/SimpleWhatWeb) | ||
- [x] Whois | ||
- By using [DomainBigData](https://domainbigdata.com/) | ||
- [x] Threading support | ||
- [ ] Port scanning | ||
|
||
## Installation | ||
|
||
```sh | ||
$ gem install ryo | ||
``` | ||
|
||
## Usage | ||
|
||
```sh | ||
$ ryo | ||
Commands: | ||
ryo all URL # Run all discovery plugins against a given URL | ||
ryo dir URL # Discover directories and files belong to a given URL | ||
ryo help [COMMAND] # Describe available commands or one specific command | ||
ryo subdomain URL # Discover subdomains of a given URL | ||
ryo tech URL # Discover used technolgies of a given URL | ||
ryo whois URL # Discover whois information of a given URL | ||
``` | ||
|
||
```sh | ||
# start Webrick HTTP server | ||
# $ ruby -rwebrick -e 'WEBrick::HTTPServer.new(:DocumentRoot => "./", :Port => 8000).start' | ||
$ ryo all http://localhost:8000 | jq . | ||
{ | ||
"dir": [ | ||
"http://localhost:8000/.git/", | ||
"http://localhost:8000/.git/branches/", | ||
"http://localhost:8000/.git/COMMIT_EDITMSG", | ||
"http://localhost:8000/.git/config", | ||
"http://localhost:8000/.git/description", | ||
"http://localhost:8000/.git/FETCH_HEAD", | ||
"http://localhost:8000/.git/HEAD", | ||
"http://localhost:8000/.git/hooks/", | ||
"http://localhost:8000/.git/index", | ||
"http://localhost:8000/.git/info/", | ||
"http://localhost:8000/.git/info/exclude", | ||
"http://localhost:8000/.git/logs/", | ||
"http://localhost:8000/.git/logs/HEAD", | ||
"http://localhost:8000/.git/logs/refs/heads/master", | ||
"http://localhost:8000/.git/logs/refs/remotes/origin/HEAD", | ||
"http://localhost:8000/.git/objects/", | ||
"http://localhost:8000/.git/packed-refs", | ||
"http://localhost:8000/.git/refs/", | ||
"http://localhost:8000/.git/refs/heads/master", | ||
"http://localhost:8000/.git/refs/remotes/origin/HEAD", | ||
"http://localhost:8000/.gitignore", | ||
"http://localhost:8000/.gitignore/", | ||
"http://localhost:8000/.travis.yml", | ||
"http://localhost:8000/Bin/", | ||
"http://localhost:8000/bin/", | ||
"http://localhost:8000/Gemfile", | ||
"http://localhost:8000/Gemfile.lock", | ||
"http://localhost:8000/LICENSE", | ||
"http://localhost:8000/Rakefile", | ||
"http://localhost:8000/README.md", | ||
"http://localhost:8000/readme.md" | ||
], | ||
"subdomain": [], | ||
"tech": { | ||
"HTTPServer": [ | ||
{ | ||
"name": "server string", | ||
"string": "WEBrick/1.4.2 (Ruby/2.5.1/2018-03-29)", | ||
"certainty": 100 | ||
} | ||
], | ||
"Ruby": [ | ||
{ | ||
"regexp": [ | ||
"Ruby" | ||
], | ||
"search": "headers[server]", | ||
"certainty": 100 | ||
}, | ||
{ | ||
"regexp": [ | ||
"WEBrick" | ||
], | ||
"search": "headers[server]", | ||
"certainty": 100 | ||
} | ||
], | ||
"Title": [ | ||
{ | ||
"name": "page title", | ||
"string": "Index of /", | ||
"certainty": 100 | ||
} | ||
] | ||
}, | ||
"whois": { | ||
"globa_stats": {}, | ||
"registrant": {} | ||
} | ||
} | ||
``` | ||
|
||
## License | ||
|
||
The gem is available as open source under the terms of the [MIT License](https://opensource.org/licenses/MIT). |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
require "bundler/gem_tasks" | ||
require "rspec/core/rake_task" | ||
|
||
RSpec::Core::RakeTask.new(:spec) | ||
|
||
task :default => :spec |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
#!/usr/bin/env ruby | ||
|
||
require "bundler/setup" | ||
require "ryo" | ||
|
||
# You can add fixtures and/or initialization code here to make experimenting | ||
# with your gem easier. You can also use a different console, if you like. | ||
|
||
# (If you use this, don't forget to add pry to your Gemfile!) | ||
# require "pry" | ||
# Pry.start | ||
|
||
require "irb" | ||
IRB.start(__FILE__) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
#!/usr/bin/env bash | ||
set -euo pipefail | ||
IFS=$'\n\t' | ||
set -vx | ||
|
||
bundle install | ||
|
||
# Do any other automated setup that you need to do here |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
#!/usr/bin/env ruby | ||
# frozen_string_literal: true | ||
|
||
$LOAD_PATH.unshift("#{__dir__}/../lib") | ||
|
||
require "ryo" | ||
|
||
Ryo::CLI.start |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
# frozen_string_literal: true | ||
|
||
require "uri" | ||
require "oga" | ||
|
||
require "ryo/error" | ||
|
||
require "ryo/client" | ||
require "ryo/target" | ||
require "ryo/plugin" | ||
|
||
require "ryo/cli" | ||
|
||
require "ryo/version" | ||
|
||
module Ryo | ||
def self.discover(uri, options) | ||
target = Target.new(uri) | ||
|
||
h = {} | ||
h[:dir] = Plugin::Dir.discover(target.uri) if options[:dir] || options[:all] | ||
h[:subdomain] = Plugin::Subdomain.discover(target.fld) if options[:subdomain] || options[:all] | ||
h[:tech] = Plugin::Tech.discover(target.uri) if options[:tech] || options[:all] | ||
h[:whois] = Plugin::Whois.discover(target.domain) if options[:whois] || options[:all] | ||
h | ||
end | ||
end |
Oops, something went wrong.